LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how do I find names of files affected by fsck ? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-find-names-of-files-affected-by-fsck-709867/)

jtmoon 03-07-2009 01:10 PM

how do I find names of files affected by fsck ?
 
Hi,

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?


-J_Tom_Moon_79


btw, this is also posted here: http://forums.fedoraforum.org/showthread.php?t=216053

tredegar 03-07-2009 01: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 03: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 05: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 03:35 PM.