Block# to File Mapping?

Ed Skinner ed at flat5.net
Tue Jul 12 11:17:01 MST 2005


On Tuesday 12 July 2005 10:50, Alan Dayley wrote:
> Ed Skinner said:
> >      Given bad block numbers, how can I find out what file(s) are
> > affected?
>
> This requires knowledge of the data structures and values used by the
> filesystem in question.  Such knowledge can be very difficult to grasp in
> a rapid manner.
> What filesystem are we talking about here?
> Alan

Hi Alan,
     The disk is failing in the EXT3 (/) partition. I'm planning to use either 
myrescue or dd_rhelp (and dd_rescue) to suck out the data to a file, (make a 
copy of that file, then) mount the file via -o loop and fsck -Y to repair it. 
That *should* restore the integrity of the partition's image but the data in 
the "repaired" file(s) will still be NFG. I'd like to determine the affected 
files and then pull just those from the backups. When the replacement disk 
arrives it'll be quick to just dump the now-good data (partitions) back onto 
it (including the boot sectors) and be up-and-running again.
     Suggestions would be most welcome. (Second time this Dell notebook has 
had the disk fail in a year. Grrr...)

-- 
Ed Skinner, ed at flat5.net, http://www.flat5.net/



More information about the PLUG-discuss mailing list