Recommended hard drive diet?

David Armour d.f.armour at
Mon Dec 18 02:32:01 UTC 2006

Eberhard Roloff <tuxebi <at>> writes: 
> David Armour wrote: 
> > Hello list!
> > They Thought It Would Never Happen Dept.:
> > Incredibly, my 30G hard drive has less than 1G remaining free space! 
> > As always, any responses greatly appreciated.
> I would try to tackle this from the bottom up.
> df -h 

Thank you for your response. I believe I followed the install ins-
tructions when I initially created a swap and a large root parti-
tion, but it would certainly not be the first time I have misunder-
stood directions. In any case, df -h produces:

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1              36G   34G  400M  99% /
varrun                237M   92K  236M   1% /var/run
varlock               237M  4.0K  237M   1% /var/lock
procbususb             10M  104K  9.9M   2% /proc/bus/usb
udev                   10M  104K  9.9M   2% /dev
devshm                237M     0  237M   0% /dev/shm
lrm                   237M   18M  219M   8% /lib/modules/2.6.17-10-\

... and as you mention in a subsequent message in this thread, "that 
means that you are running out of space in /  ;-)" heh. no kidding. 
see below. running:

sudo du -h --max-depth=1 /   ...produces:      

48K     /lost+found
43M     /etc
16K     /media
26G     /var
774M    /lib
3.6G    /usr
4.6M    /bin
87M     /boot
216K    /dev
2.7G    /home
4.0K    /mnt
du: `/proc/4837/task': No such file or directory
du: `/proc/4837/fd': No such file or directory
484M    /proc
3.0M    /root
9.2M    /sbin
100K    /tmp
0       /sys
4.0K    /srv
120M    /opt
4.0K    /initrd
4.0K    /debootstrap
34G     /

sudo du -h --max-depth=1 /var

210M    /var/lib
118M    /var/cache
6.7M    /var/backups
4.0K    /var/local
4.0K    /var/lock
9.4M    /var/log
92K     /var/run
1.1M    /var/spool
1.7M    /var/tmp
4.0K    /var/opt
272K    /var/mail
280K    /var/games
26G     /var/backup
4.0K    /var/crash
27G     /var

... something doesn't seem to add up, and I'm wondering what I should 
look for?

I thought I'd seen an item in one of the ubuntu guides (official/unof-
ficial) that explained how to migrate (?) stuff to a /home partition 
but a quick look this afternoon hasn't turned it up.

Thanks again, and to everyone else who has participated so far. Sorry 
for the delay in my own participation; we've been experiencing atypical
power-outages due to unusual weather patterns here on the left coast of 
Canada. Edgy's been great, apart from the full / partition!

More information about the ubuntu-users mailing list