Click to See Complete Forum and Search --> : Urgent! Help needed after power outage.
stack
11-20-2000, 08:08 PM
Background: Running Debian 2.2 with Helix Gnome/sawfish.
We had a quick (1 sec.) power outage a little while ago. When my box came back up, I got the following message:
/dev/hda1: UNEXPECTED INCONSISTENCY; run fsck MANUALLY
(i.e., without -a or -p options)
fsck failed. Please repair manually and reboot. Please note that the root filesystem is currently mounted read-only. To remount it read-write:
#mount -n-o remount,rw /
CONTROL-D will exit from this shell and REBOOT the system
Give root password for maintenance
(or type Control-D for normal startup):
---------------------------------------
If I give the root password, I get to a prompt [ (none):~# ]
If I try "fsck -****" (or any fsck command), I get "Parallelizing fsck version 1.18 (11-Nov-1999)
If I try and mount the drive, I get:
"Ext2-fs warning: mounting unchecked fs: running e2fsck is reccommended
..then a buch of:
"Wrong free blocks (or inodes) count for group (or sometimes super block) 86 (or 87), stored=(a number), counted=(a different number)
Control-D will restart whe whole process again.
Any help?
H. M. Murdock
11-20-2000, 08:40 PM
do just as it says, enter the root password, and when you get the prompt do this:
#fsck /dev/hda1
let it run and fix everything and then reboot. hopefully no key files got messed up during the power outage.
Murdock
------------------
In 1972, a crack commando unit was sent to prison by a military court for a crime they didn't commit. These men promptly escaped from a maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune. If you have a problem, if no one else can help, and if you can find them, maybe you can hire the A-Team.
stack
11-20-2000, 08:53 PM
Thanks Murdock,
That's the first time I've had to run fsck...
Went through a bunch of checks, but it looks like everything's OK.
"I ain't gettin' on no plane."
DodgeTrucs
11-20-2000, 09:33 PM
I love that... The exact thing happened to me as well, power just flickered enough to reboot the computer, I was/am a newbie and was trying to figure out how to fsck. The thing I love about it is I used to be a pro at the improper shutdown scandisk in Windows... in Linux you can go ages without ever having to learn that skill, so far I have only seen it twice, both do to freak power outages.
------------------
Quoth the Penguin: "Pay no more!" The Penguin - Brian Richardson
drmbb
11-20-2000, 09:59 PM
Hey stack, sorry about your current troubles, but seriously - get a UPS! These things are cheap for the 500-700Va range these days. I've got an IBM 700Va Office Pro, running PaPlus in Linux, and it's great. Tripp-Lite's software works with a ton of UPS's (don't like APC, just had major problems with them in the past), but a UPS and shutdown software is great for the peace of mind thing.
stack
11-21-2000, 09:35 AM
drmbb,
Yeah, we've got those at work, but I'd never really had a problem at home prior to this.
Lessons learned, though...and that's definitely something I'll take a look at.
I think this is a pretty old thread, but I'm having problems with this, too. I'm on a UPS. The power flickered last night, and now booting in to Linux provides the same problems as stated above, except fsck /dev/hdaN or anything wont help. I think it said something about a corrupt superblock. I used to get the same error on my laptop all the time, but that's cuz it's years beyond warrenty or life expectancy. The HDD in the laptop is RIGHT next to the battery, and I don't think the whole heat thing goes over too well like that.
For the record, Windows has never had this problem. Please no flames, I'm just saying my hardware's probably not dying.
Syntaxis
06-16-2003, 07:03 PM
You're right, this is an old thread. :D
I'm having problems with this, too. If you're still running on ext2 as these other guys are/were when they posted 3 years ago, then seriously consider upgrading to a journalled filesystem, which will go an awfully long way towards protecting against filesystem corruption. You can upgrade from ext2 to ext3 without even having to re-partition. It's not the best, but it's certainly the most convenient upgrade path.
Shoulda mentioned-
Some of these partitions are Reiser, some XFS, some ext3 :)