Click to See Complete Forum and Search --> : power out, bad block can't boot!! help asap!!


flippantfig
05-08-2002, 12:51 PM
so I pulled the wrong plug out and my RH7.2 box died.

I powered up again only to get to the 'verify DMI pool' and at which point the PC reboots. Inserting the boot disk gets me to a forced file system check which I cannot bypass. This fails on a bad block error and requests that I reboot or log in as root to fix it using fsck. HOW??

tried fsck /dev/hda and fsck /dev/hd2 (and hd1 just in case) but no luck. How do I get out of this pickle with out a format and reinstall? A FAST answer would be gratefully received!! (I wrote down the details of the exact error but now I get to the cybercafe they have gone walkabout..)

:)

flippantfig
05-08-2002, 02:28 PM
*hangs head in shame*

fsck -B ext2 /dev/hda1

was what got me back after much googling and book flipping through in the bookshop...

apologies for the panic I just suffered!

mdwatts
05-08-2002, 05:29 PM
Just saw your post.

Yes... You have to specify the actual partition (i.e. hda1 or hda2) and not the entire HD (hda).

Just in case this ever happens again (hope it doesn't), try searching Google ( www.google.com/linux (http://www.google.com/linux) ) for fsck or e2fsck or fsck.ext2 and you will find lots of documentation on the usage.