Background: My / partition was at 93%, but I had some unallocated space so I created a new home for /usr . After the move the space usage looks like:
>df -k
Filesystem 1K-blocks Used Available Use% Mounted on
//dev/sda1 15747484 6822736 8124800 46% /
udev 1954244 4 1954240 1% /dev
tmpfs 786052 1040 785012 1% /run
none 5120 0 5120 0% /run/lock
none 1965124 512 1964612 1% /run/shm
cgroup 1965124 0 1965124 0% /sys/fs/cgroup
/dev/sda5 62993332 30014168 29779216 51% /home
/dev/sda7 26540640 32 26540608 1% /windows
/dev/sda8 10320184 7156516 2639432 74% /usr
Now the system runs but when I allowed a normal software update, the kernel headers portion produced an error:
dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-55_3.2.0-55.85_all.deb (--unpack):
unable to create `/usr/src/linux-headers-3.2.0-55/arch/arm/mach-pxa/include/mach/eseries-irq.h.dpkg-new' (while processing `./usr/src/linux-headers-3.2.0-55/arch/arm/mach-pxa/include/mach/eseries-irq.h'): No space left on device
This "space" complaint and the df output above seem to contradict one another.
I get the same error when I try fixing the repository (sudo apt-get -f install). Thinking I had too many old kernel versions I tried removing some (sudo apt-get remove linux-headers-3.2.0-38 linux-headers-3.2.0-38-generic linux-image-3.2.0-36-generic ... ) but this produces an error and a suggestion that I try apt-get -f install .
Some system information:
> uname -a
Linux <hostname> 3.2.0-55-generic-pae #85-Ubuntu SMP Wed Oct 2 14:03:15 UTC 2013 i686 i686 i386 GNU/Linux
> cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.3 LTS"
I'm afraid I won't be able to update any software until I get this headers issue resolved. I hope someone out there can help.
/boot
?df -i
? You may not be out of raw data capacity, but out of inodes.