Hi Haines, Am Dienstag, 29. Juli 2014, 09:22:02 schrieb Haines Brown: > This is such a classic problem that I hesitate to raise the > question. The df below shows that the usual suspects for root partition > being full are broken out. The / partition is 500 Mb. In the past I have > only used about 50 Mb.
Why so little? I just make a 20-30 GB for the system (including /usr and /var) and be done with it. On the desktop. I only put /boot extra to be independent of bootloader requirements for /. And well of course /home for user data. On the server I´d never split out /usr and /usr/local. The more very little partitions you have, the more administrative overhead you create for yourself. /var and /var/log may make sense to separate on the server, as well as /srv and /home. > > # df > Filesystem 1K-blocks Used Available Use% Mounted on > rootfs 474440 474440 0 100% / > udev 10240 0 10240 0% /dev > tmpfs 830924 1572 829352 1% /run > /dev/disk/by-uuid/d3a2... 474440 474440 0 100% / > /dev/sdb5 48062440 10165348 35455616 23% /home > /dev/sdb6 28834716 4261020 23108972 16% /usr > /dev/sdb7 38448276 2372784 34122392 7% /var > /dev/sdb8 19228276 994260 17257268 6% /tmp > /dev/sdb9 38448276 12808004 23687172 36% /usr/local > /dev/sdb12 96124904 11577356 79664596 13% /info > /dev/sdb13 192243928 58177436 124300984 32% /storage > > I verified that root is indeed full by trying to copy a file to it. > > I ran: > # find / -type f -size +100M -exec ls -lh {} \; | awk '{ print $9 ": " $5 > }' > > All files that were over 100 Mb were located in broken out directories > except this: > > /sys/devices/pci0000:00/0000:00:06.0/0000:01:00.0/resource1: 256M > /sys/devices/pci0000:00/0000:00:06.0/0000:01:00.0/resource1_wc: 256M You found some memory area of a PCI card. I am quite a bit puzzled: On one hand you make a mind-blowing partitioning but on the other hand you don´t know /sys? Its a virtual filesystem. Nothing of which is in it is on your harddisk. At all. > This is peculiar and a suspicious size. So I go its directory to > verify: > > # ls -la | grep resource1 > -rw------- 1 root root 268435456 Jul 29 08:13 resource1 > -rw------- 1 root root 268435456 Jul 29 08:13 resource1_wc > > but: > > # file resource1 > resource1: ERROR: cannot read `resource1' (Input/output error) > > I ran $ du -h on all the directories mounted on / and not broken out, > and their total came to 350 Mb. This strikes me as big, but still is not > greater than the partition size. I suggest something like merkaba:~> du -d 1 -hx / | sort -rh | head -10 20G / 16G /usr 2,7G /var 1,2G /opt 747M /lib 57M /root 21M /bin 19M /sbin 19M /etc 12K /lib64 and go from there. Make it -d 2 and remove head -10 for another level of dirs. Or try something like ncdu once you are able to install it again. Ciao, -- Martin 'Helios' Steigerwald - http://www.Lichtvoll.de GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/9910177.lY1Af1Xuek@merkaba