Ubuntu melden falsche Festplattennutzung auf /

1756
qkhhly

Auf meinem Ubuntu 11.10 ist / dev / sda3 (150GB) auf / und / dev / sda1 (80GB) auf / home montiert. Meine gesamte Festplatte hat 250 GB und das System meldet, dass mir der Festplattenspeicher ausgeht. Hier ist die Ausgabe von df -h:

Filesystem Size Used Avail Use% Mounted on /dev/sda3 149G 141G 0 100% / udev 3.9G 4.0K 3.9G 1% /dev tmpfs 1.6G 860K 1.6G 1% /run none 5.0M 0 5.0M 0% /run/lock none 3.9G 508K 3.9G 1% /run/shm /dev/sda1 74G 15G 56G 21% /home 

Ubuntu Disk Usage Analyzer berichtet dasselbe. Aber das ist seltsam, weil ich glaube, ich habe nie so viel Platz auf / genutzt. Ich habe auch jedes einzelne Verzeichnis unter / (exclude / home) geprüft, und es wird nicht so viel Speicherplatz benötigt:

8.8M bin 4.0K dev 0 initrd.img 0 initrd.img.old 828M lib 15M lib32 4.0K lib64 4.0K media 0 proc 9.2M sbin 0 sys 1.1G var 108M boot 18M etc 4.0K mnt 40K root 4.0K selinux 72K tmp 0 vmlinuz 0 vmlinuz.old 16K lost+found 133M opt 1004K run 4.0K srv 5.9G usr  

Jeder könnte mir ein paar Ideen geben, was den Platz verbraucht? Danke im Voraus.

4
Eine Sache, die ich hinzufügen sollte, ist, dass ich das ufw-Protokoll auf voll eingestellt habe und dann extrem große Protokolldateien bemerkte. Aber ich löschte die Protokolldateien und stellte das ufw-Protokoll wieder auf niedrig. Nicht sicher, ob das das Problem ist qkhhly vor 11 Jahren 0
Cross geschrieben am Ask Ubuntu - http://askubuntu.com/questions/163350/wrong-disk-usage-report-on jokerdino vor 11 Jahren 0

1 Antwort auf die Frage

1
lornix

Why did you exclude your home directories from the 'du' output?

You're getting out of space with approx 7G showing remaining because you're a user, and root reserves (by default) 5% of drive space. This allows root to perform maintenance when the drive is "full". 5% of 149G is ~7.5G. (This can be changed and checked with tune2fs)

Something has used the space, and based the output you show, it's obviously in your home directory.

du -scm /home/* 

Will show the usage for each user's home directory, (probably just yours though).

Once in your home directory, try this to get an idea of where the space is:

shopt -s dotglob # makes * include the .dot files/dirs too du -scm * | sort -n # gathers the info, sorts so biggest at end of list 

That will show you what's being used in your home directory. The shopt command is important, as it makes the * (wildcard) include the hidden dot files. Without it, you wouldn't be shown the hidden files and folders. (my .kde is approx 350M, mostly because of nepomuk (which I disable file searching after it's done with initial scans) )

Midnight Commander (type mc at a prompt) is good to run around the filesystem with to see what's there. Press ALT+. to toggle hidden files on and off (there's a menu option too, but this is easier)

Er scheint / home auf einer separaten Partition zu haben. Michael Hampton vor 11 Jahren 0
Doh! Du hast recht! Mein Fehler. Er könnte versuchen, die zwei Befehle auszuführen, die ich als root im Stammverzeichnis (/) angegeben habe. (shopt + du) lornix vor 11 Jahren 0
danke für die vorschläge. Ich ließ die Maschine laufen und ich kam heute ins Büro und stellte fest, dass "df -h" jetzt eine richtige Festplattennutzung meldet: / dev / sda3 149G 8.3G 133G 6% / Ich denke, das Problem wird durch die Protokolldateien verursacht. Aber wie gesagt, ich habe sie dann gelöscht. Ich weiß nicht wirklich was los ist. qkhhly vor 11 Jahren 0
Seltsam! Das ist also eine 'Mondphase' Sache? ... mal sehen, "pom" gibt "11% der abnehmenden Mondsichel" ... also passiert es kurz vor dem Neumond. Nächsten Monat? Viel Glück. lornix vor 11 Jahren 0