Mounting free space

Robert Fitzpatrick robert at webtent.com
Sun Jan 25 06:31:52 PST 2004


On Sun, 2004-01-25 at 06:03, Matthew Seaman wrote:
> You need to edit that, using the command:
> 
>     # bsdlabel -e aac0s1
> 
> which will put you into the editor specified in your $EDITOR
> environment variable (defaults to: vi(1)) with that text in there.
> Edit the text so that it looks like:
> 
> 8 partitions:
> #        size   offset    fstype   [fsize bsize bps/cpg]
>   c: 71681967        0    unused        0     0        
>   h: 71681967        0    4.2BSD     1024  8192    16
> 
> [ie. copy the 'size' value that your system automatically puts into
> the c: partition entry]
> 

This is what I have below, I added the labels to the right of how I'm using them now and they were setup during install. The whole disk is used for FreeBSD. I know that I have 100GB of free space left on the c: partition. What I'd like to do is take 20GB of that free space only and make mount it. That 100MB is for remote backup of some clients, I have one now that will be sending up to 20GB. Next week, I may create another 5GB for another customer. I like the idea of having a separate partition for each customers data.

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  4096000        0    4.2BSD     2048 16384 28552    # /      2000MB
  b:  4139008  4096000      swap
  c: 312448122        0    unused        0     0         # "raw" part, don't edit
  d: 40960000  8235008    4.2BSD     2048 16384 28552    # /usr  20000MB
  e: 20480000 49195008    4.2BSD     2048 16384 28552    # /var  10000MB
  f:  2048000 69675008    4.2BSD     2048 16384 28552    # /tmp   1000MB
  g: 35923968 71723008    4.2BSD     2048 16384 28552    # /home 17541MB

Anyway, I just want to take part of the free space, not all of it, right now, and want to be sure about what I'm doing. How do I get just that 20GB setup? Using your example, is this what I need to do in the editor:

#        size   offset    fstype   [fsize bsize bps/cpg]
>   c: 71681967        0    unused        0     0        
>   h: 40960000        0    4.2BSD     1024  8192    16

Thanks for the great instructions.

--
Robert



More information about the freebsd-questions mailing list