Subject: 105% capacity??
To: NetBSD-mac68k list <port-mac68k@netbsd.org>
From: Daniel Parks <danielparks@bigfoot.com>
List: port-mac68k
Date: 08/01/2000 12:37:06
I was just checking to see how I was doing on disk space... and I got a
little surprise. /usr was at 105% capacity!!??!!??

I included the output of df, du, and disklabel. Note the differences
between df -k and du -skx.

Is this correct? Is there some way to resize the partitions without doing a
full re-install... or some way of backing it all up?

Are my partition sizes good? (Do I need 40 MB swap?) I want to use this
computer as a firewall... have it connected to a DSL "modem" and my home
network. I also have it set up as an IMAP server... I was hoping to store
mail in user's home directories (So that they can access any of their
mailboxes from any computer on my network.)

moria# df -k
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/sd0a       39263    16499    18837    46%    /
/dev/sd0f      166909   157981    -7763   105%    /usr
/dev/sd0h      211052   173161    16785    91%    /var
/dev/sd0g       78526    39812    30861    56%    /home
kernfs              1        1        0   100%    /kern
procfs              4        4        0   100%    /proc

moria# du -skx / /home /var /usr
16498   /
549     /home
6252    /var
79455   /usr

moria# disklabel /dev/sd0
# /dev/sd0c:
type: SCSI
disk: LPS270S
label: fictitious
flags:
bytes/sector: 512
sectors/track: 96
tracks/cylinder: 2
sectors/cylinder: 192
cylinders: 2740
total sectors: 528808
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

8 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  a:    81920     6848     4.2BSD        0     0     0   # (Cyl.   35*- 462*)
  b:    81630   447168       swap                        # (Cyl. 2329 - 2754*)
  c:   528808        0     unused        0     0         # (Cyl.    0 - 2754*)
  d:      512      192    unknown                        # (Cyl.    1 - 3*)
  e:     6144      704        HFS                        # (Cyl.    3*- 35*)
  f:   184320   170688     4.2BSD        0     0     0   # (Cyl.  889 - 1848)
  g:    81920    88768     4.2BSD        0     0     0   # (Cyl.  462*- 888)
  h:    92160   355008     4.2BSD        0     0     0   # (Cyl. 1849 - 2328)
disklabel: boot block size 0
disklabel: super block size 0

The sizes for each partiion are:
/	40 MB
/home	40 MB
/var	45 MB
/usr	90 MB
swap	40 MB

TIA,
Daniel