Tag Info

New answers tagged

4

Files are inodes. However, you can create files that are not linked to any directory and still use an inode. For instance: zsh -c 'repeat 1000 ((repeat 1000 {exec {fd}> file; rm file} exec sleep 1000 >&-) | cat)' would (eventually) use up 1,000,000 inodes. Those inodes would be of deleted files that have not been reclaimed yet since ...


3

This script will create as many files as you have inodes available on your / filesystem: while [ $(df --output=iavail / | tail -n1) -gt 0 ]; do touch $((i++)); done As far as I know, there is no way to take up inodes without using files or directories, that's what they're for after all. Node that the inodes will remain in use after the script is ...


6

Yes you can consume all the inodes of a system. They are a limited resource just like diskspace is, and they're pre-allocated when you perform a mkfs.ext4, for example. You can use tools such as tune2fs -l <device> or df -i <path> to see how many are allocated and used. Example $ df -i / Filesystem Inodes IUsed IFree IUse% ...



Top 50 recent answers are included