PDA

View Full Version : [ubuntu] [SOLVED] df reports root partition is 100% in use



wjp.reg
September 15th, 2008, 09:47 AM
Can someone tell me how to investigate the reasons why my /dev/sda1 filesystem is reported to be 100% in use??




wolf@ubuntu-desktop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 14G 14G 0 100% /
varrun 506M 224K 506M 1% /var/run
varlock 506M 0 506M 0% /var/lock
udev 506M 116K 506M 1% /dev
devshm 506M 12K 506M 1% /dev/shm
lrm 506M 39M 467M 8% /lib/modules/2.6.24-19-generic/volatile
/dev/sda6 38G 2.3G 34G 7% /home
/dev/sda5 24G 2.6G 21G 12% /mnt/shared
overflow 1.0M 80K 944K 8% /tmp
gvfs-fuse-daemon 14G 14G 0 100% /home/wolf/.gvfs
/dev/sdd1 299G 46G 253G 16% /media/Elements_


Not sure how to proceed. Only discovered the "problem" after the latest update and the update manager reporting that it could not write some files because of a lack of space. Suggested I run dpkg --configure -a, but this failed also.

I checked fstab and noticed a second /swap partition on a different drive (sdc) I have installed, and commented it out (worth a try, no? :-)). After rebooting I again tried dpkg --configure -a and this time it was suggested I reinstall smbfs, which was part of the failed upgrade. This worked, but I still don't know why my filesystem on /dev/sda1 is reported to be full.

My fstab reads as follows:

wolf@ubuntu-desktop:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=20645c10-948e-4871-9de9-693f2b39e545 / ext3 relatime,errors=remount-ro 0 1
# /dev/sda6
UUID=b1c03e77-af4d-41c5-a5f1-317815cf0fde /home ext3 relatime 0 2
# /dev/sda5
UUID=608E-25F6 /mnt/shared vfat utf8,umask=007,gid=46 0 1
# /dev/sda2
UUID=b065a9fc-463b-43a5-9a19-a1031f4357f1 none swap sw 0 0
# /dev/sdc3
# UUID=ac6180c2-a0c1-42ee-9b3e-9f9442bdf3e1 none swap sw 0 0
/dev/scd1 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/scd0 /media/cdrom1 udf,iso9660 user,noauto,exec,utf8 0 0


Thanks in advance,

P.S. FWIW, this is not my laptop config as listed in my signature below, but my main desktop config.

iaculallad
September 15th, 2008, 09:53 AM
You could try using the Disk Usage Analyser to check your / directory if it helps.
Applications—>Accessories—>Disk Usage Analyser

wjp.reg
September 15th, 2008, 02:03 PM
Thanks for your reply iaculallad;

I have run the disk usage gui and it looks great, but I didn't get any clues as to the cause for my filesystem showing no available free space.

I can't imagine having used 14Gs for /.

Any idea how I might proceed?

Thanks

tuxxy
September 15th, 2008, 02:19 PM
Just a thought but have you checked your trash, i know the root trash can be a problem on occasions

Open a terminal and type


sudo find / -type d -iname *Trash* | grep Trash


You should now have a list of trash folders, you can use nautilus now if you want to check the contents, for example to view the roots trash you could type this


gksu nautilus /root/.local/share/Trash

drs305
September 15th, 2008, 02:26 PM
You can check your trash situation. Refer to the tutorial in my signature line to find all your system trash. If you haven't emptied it in a while that could be the reason your disk is full.

wjp.reg
September 15th, 2008, 03:23 PM
Thanks to all who replied.

drs305's link helped me identify the root trash being the cause of my disk usage.

NOTE: Funny thing is Disk Analyser gui still reports 100% usage even after a refresh, while df -h reports only 22% usage, which is what I might have expected - I prefer to believe the change reported by the df command ;-)


wolf@ubuntu-desktop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 14G 2.9G 11G 22% /
varrun 506M 228K 506M 1% /var/run
varlock 506M 0 506M 0% /var/lock
udev 506M 108K 506M 1% /dev
devshm 506M 72K 506M 1% /dev/shm
lrm 506M 39M 467M 8% /lib/modules/2.6.24-19-generic/volatile
/dev/sda6 38G 2.3G 34G 7% /home
/dev/sda5 24G 2.6G 21G 12% /mnt/shared
overflow 1.0M 80K 944K 8% /tmp
gvfs-fuse-daemon 14G 2.9G 11G 22% /home/wolf/.gvfs
wolf@ubuntu-desktop:~$

tuxxy
September 15th, 2008, 04:21 PM
Yes, you are best to stick with df for drive information

drs305
September 15th, 2008, 04:29 PM
NOTE: Funny thing is Disk Analyser gui still reports 100% usage even after a refresh, while df -h reports only 22% usage, which is what I might have expected - I prefer to believe the change reported by the df command ;-)

The top folder of Disk Usage Analyser can be pretty confusing in that it will always show 100% usage after a 'Scan Filesystem'. Like tuxxy, I rely on the CLI for getting my disk usage information in a format which is accurate and understandable. For gui-based information, the gnome-system-monitor 'File System' tab is generally fairly good (System, Administration, System Monitor).