So, I
Code:
emerge --sync
to update my install; then:
Code:
emerge --update --newuse --deep world
to bring me up todate. One of the items to update was gcc and during the compiliation of that I maxed out the number of inodes to my /dev/mnt/sda2. Basically I can not add any more files which is effectively running out of disk space even though I have 30% supposedly available.
Here's my partition information that I chose base upon the Gentoo Efika install How to:
Code:
localhost ~ # fdisk -l
Disk /dev/sda: 8012 MB, 8012390400 bytes
255 heads, 63 sectors/track, 974 cylinders, total 15649200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00083a07
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 67583 32768 83 Linux
/dev/sda2 67584 15649199 7790808 83 Linux
localhost ~ #
I have traditionally monitoring my disk usage with "df" and kept an eye on the percentage of blocks used. So here I am with:
Code:
localhost ~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 7668336 4558044 2720752 63% /
/dev/root 7668336 4558044 2720752 63% /
devtmpfs 232948 100 232848 1% /dev
rc-svcdir 1024 40 984 4% /lib/rc/init.d
shm 233020 0 233020 0% /dev/shm
localhost ~ #
and thinking I've got enough room to update me system before I embark on rerouting portions of the disk to other spaces (USB disk or external hard drive). But, then my attempt to compile is broken by an error message "No space left on device." I have now learned that "inodes" play an important part in the design of what file system you create. I've never had this problem before, but it sure has bitten me now:
Code:
localhost ~ # df -hi
Filesystem Inodes IUsed IFree IUse% Mounted on
rootfs 477K 477K 0 100% /
/dev/root 477K 477K 0 100% /
devtmpfs 57K 561 57K 1% /dev
rc-svcdir 57K 46 57K 1% /lib/rc/init.d
shm 57K 1 57K 1% /dev/shm
localhost ~ #
As you can see, I have used up all my inodes, so I cannot create any more files despite the fact that I have 30% space available.
Ouch. I looks like I'll have to start over and re-image the partition with a file system and use more inodes. I've never run into this type of problem before, so anyone else venturing into the area is warned -- learn about what inodes are and consider a strategy that will not leave you in a predicament such as I am in: a disk only 70% utilized in blocks, but 100% utilized in inodes.
I guess, I could add another USB drive, copy everything over, then reboot to an SD Card, install a new file system with more inodes and then copy my tree back over to the newly formatted (and more accomdating) /dev/sda2.