[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: unmountable ext3 root recovery



On Aug 20, 2002  19:50 -0400, James H. Cloos Jr. wrote:
> >>>>> "Andreas" == Andreas Dilger <adilger clusterfs com> writes:
> Andreas> Well, you could use "echo ^needs_recovery | debugfs -w
> Andreas> /dev/foo" to remove this flag, and then use tune2fs to remove
> Andreas> the journal.
> 
> I forgot about debugfs.
> 
> Does removing the needs_recovery and then the has_journal flags then
> leave a fs essentially identical to a dump(8)/mke2fs(8)/restore(8)
> sequence?  (In this particular case, there would not have been any
> changes to the fs, other than access_time updates, in the journal.)

Pretty much, yes.  Restore may have layed out your files differently,
and in particular may have overwritten the "bad spots" on your disk.
Note that newer disks are "magical" with their block recovery, in that
they only ever give read errors.  If you try to write to a bad block,
it will be automatically remapped, so overwriting the bad sectors with
data will have fixed the bad sectors and "badblocks" will likely not
show any problems.

Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]