Subject: need room on /
To: netbsd-help <netbsd-help@netbsd.org>
From: James K. Lowden <jklowden@schemamania.org>
List: netbsd-help
Date: 02/06/2003 18:27:56
Hello, 

My disk is shrinking.  

The last few days, I've had (small) trouble with my box because the root
partitition is full.  In desperation, I moved all of /var/db to /usr, and
made a symlink to it.  That barely got my head out the water.  

Time was, I'd get this problem and have to truncate my apache logs.  Now,
I'm down to ... not much, really.  I don't know where to make room, what
to move.  AFAICT, my root partition is something like 95% binaries.  And
that's the weird part: the system has been more or less happy since 1999. 


What would you do?

$ df -k;  pwd; ls  |grep -Ev 'usr|mnt' |xargs sudo du -xskc |sort -rn 
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/wd0a       84327    78768     1342    98%    /
/dev/wd0e     9319453  5742359  3111121    64%    /usr
/dev/wd0f     9904956  1605674  7804034    17%    /usr/local/play
kernfs              1        1        0   100%    /kern
/dev/wd1e     9319453  5745232  3108248    64%    /mnt
/
14660   total
6304    sbin
3393    bin
3120    netbsd
1178    var
517     etc
77      root
34      boot
28      dev
2       tmp
2       tftpboot
1       stand
1       floppy
1       emul
1       cdrom
1       altroot
0       sys
0       play
0       kern
0       home

I'm getting ready to repartition the disk as part of moving to 1.6, and
I've developed the opinion that small roots are a pain in the neck.  If
you were looking at this, how big would you make 'a'?  

$ disklabel wd0
# /dev/rwd0d:
...
8 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  a:   174321       63     4.2BSD     1024  8192    16   # (Cyl.    0*-
172)
  b:   264096   174384       swap                        # (Cyl.  173 -
434)
  c: 40188897       63     unused        0     0         # (Cyl.    0*-
39869)
  d: 40188960        0     unused        0     0         # (Cyl.    0 -
39869)
  e: 19269936   438480     4.2BSD     1024  8192    16   # (Cyl.  435 -
19551)
  f: 20480544 19708416     4.2BSD     1024  8192    16   # (Cyl. 19552 -
39869)

Thanks for your advice.  

--jkl