Find directory/file with inode number

2013-09-10 1 min read Fedora Linux

Couple of days back, I was getting the following error:

Directory inode 2362521 has an unallocated block #245823.  Allocate?

And this continued for hours together and I was in a hurry. Did not really care about the error and all I wanted was to get rid of the error but for that I needed to get to the file/directory with inode number  mentioned in the error and finally “find” command came to rescue:

find . -inum

This gave me the directory with the inode number in the error and all I had to do was delete that directory 🙂

Enhanced by Zemanta
comments powered by Disqus