So, I have this disk setup:

# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/sd0a     49.2G    1.6G   45.2G     3%    /
/dev/sd0g      181G    2.0K    172G     0%    /backup
/dev/sd0f      167G    549M    158G     0%    /home
/dev/sd0e      9.8G   12.0K    9.3G     0%    /tmp
/dev/sd0d     49.2G    5.9G   40.8G    13%    /var
# disklabel sd0
...
16 partitions:
#             size        offset  fstype [fsize bsize  cpg]
   a:     104857537            63  4.2BSD   2048 16384  323 # Cyl      
0*- 51199
   b:       8388608     104857600    swap                   # Cyl  
51200 - 55295
   c:     980451328             0  unused      0     0      # Cyl      
0 -478735
   d:     104857600     113246208  4.2BSD   2048 16384  323 # Cyl  
55296 -106495
   e:      20971520     218103808  4.2BSD   2048 16384  323 # Cyl  
106496 -116735
   f:     356515840     239075328  4.2BSD   2048 16384  323 # Cyl  
116736 -290815
   g:     384855782     595591168  4.2BSD   2048 16384  323 # Cyl  
290816 -478733*

So far, I have nothing on /backup, nothing particularly interesting  
on /home and /tmp is unused.  I want to make /var a bit bigger, but I  
don't want to rebuild the entire machine from scratch, so could I:

1. Backup all data in /var, /home and /
2. Using disklabel, remove /backup, /home, /tmp, expand /var a bit,  
recreate /backup, /home and /tmp again
3. Use growfs to push /var up to it's new size
4. Restore the data into /home

Is it really that easy to expand a partition?  Have I missed  
something here?  Is it a safer/simpler bit to wipe the disk and start  
again?

Gaby

--
Junkets for bunterish lickspittles since 1998!
http://www.playr.co.uk/sudoku/
http://weblog.vanhegan.net/

Reply via email to