This question already has an answer here:
- Find where inodes are being used 7 answers
I'm using Ubuntu 14.x, and recently attempting to create files failed with some kind of disk is full message.
I had more than 2gb spaces and that's not possible, but I heard that it can causes if inode is full.
I'm not skilled linux user, so I don't get it how to remove them. First what I do was typing this above command as root to see how many inodes were used:
$ df -i -h Filesystem Inodes IUsed IFree IUse% Mounted on udev 248K 414 248K 1% /dev tmpfs 250K 467 250K 1% /run /dev/xvda1 512K 512K 0 100% /
Yeah, it's 100%. Then I found the command that shows how much inodes were used in current system:
# for i in /*; do echo $i; find $i |wc -l; done
It prints this:
/bin 172 /boot 353 /dev 416 /etc 1971 /home 21808 /lib 17720 /proc 43272 /sys 36453 /tmp 5134 /usr 423458 /var 10117 ...
So I deleted some files in /home/dev, and I got some free inodes back, but not much:
Filesystem Inodes IUsed IFree IUse% Mounted on /dev/xvda1 512K 464K 49K 91% /
Besides, when I re-install the files that I needed, it takes inodes again, so this actually not solved.
I saw that /usr directory takes almost of inodes: 423458, but I don't know which files can I remove that doesn't affect other system or programs.
How do I find "unnessecary" inodes to delete? Any advice will very appreciate it.