Skip to content

Instantly share code, notes, and snippets.

@voxxit
Created December 20, 2015 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voxxit/30cc7ed6f858914c9b4d to your computer and use it in GitHub Desktop.
Save voxxit/30cc7ed6f858914c9b4d to your computer and use it in GitHub Desktop.
HOW-TO: Free up disk inodes

First, run the following as root to find out which folder is using the most disk inodes:

# for i in `ls -1A`; do echo "`find $i | sort -u | wc -l` $i"; done | sort -rn | head -5
94520 usr
40694 proc
39851 mnt
39845 srv
34830 home

Continue to recurse through folders until you are able to find the offending files/directories causing the high inode usage, and delete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment