-   Linux - Software (
-   -   how do I find names of files affected by fsck ? (

jtmoon 03-07-2009 02:10 PM

how do I find names of files affected by fsck ?

I would like to know the names of files affected by fsck.ext3 .
It seems like this is an important feature entirely missing from fsck.

Currently, the only information fsck shows is block numbers and inode numbers.

Is there a way to find out file names affected by an fsck repair (specifically fsck.ext3)?
Is there a different program that can lookup block numbers to file names?


btw, this is also posted here:

tredegar 03-07-2009 02:32 PM

fsck has a number of options. See man fsck for the full details, but perhaps you need to use the -V option, and maybe tee or redirect the output to a logfile.

If you have already run fsck without these options, the repairs will have already been made, as best fsck can (and it's pretty robust in my experience).

jtmoon 03-07-2009 04:09 PM

I looked at command line options in 'man fsck' and 'man fsck.ext3'.
I have tested the verbose option.
-v (lowercase) for verbose, does not print any file name information.

tredegar 03-08-2009 06:44 AM

ls -i file or stat file will give you the inode of the file and find -inum number will find filenames associated with that inode.

All times are GMT -5. The time now is 08:35 PM.