Others will probably offer better advice but ...
Boot from a CD/Flash and run fsck on the corrupt drive.  If the
corruption is not catastrophic then you may well be able to recover from
there.
If recovery is not easy, then I'd be inclined to put a new disk in (hey
- the old one is already 4yrs old), reinstall the O/S and restore from
backups.
If you really want to get the old drive working again, at least image
the contents to another disk (use 'dd' or similar) in case you end up
making it worse during recovery (it's happened to me).

To insure against similar problems in the future:
Install a UPS (APC 1k is under $200)
Use a journalling fs (ext3)

Hope that helps at least a bit.


On Tue, 2009-01-20 at 14:06 -0700, Juan Alberto Cirez wrote:
> Good day Friends,
> I got a message from one of by bodies in BC with the following problem:
> "...I've run into a problem I'm not sure how to fix. I have a server set 
> up at a school, for file sharing and authentication. It's a SME server, 
> based on CentOS. It's been working great for them for 4 years now, but 
> recently they had some power issues where the power had been 
> disconnected from the server suddenly. Now as it boots, it gets to the 
> part where it loads the filesystem and passes it to the kernel, then it 
> errors on reading the 1st file (a config file or library, can't 
> remember) and it gets a Kernel Panic message, and an error 21. I think 
> the disk is corrupt, but not sure how to fix. Is there some kind of disk 
> check utility for linux to check the disks integrity, and hopefully 
> repair it, or am I barking up the wrong tree, and it's something else?..."
> 
> Here is my reply. I know. Not very helpful...
> "...You have to be more specific. Can you get the text of the error.
> Depending on the file system you're using Ext2, Ext3, ReiserFS, etc. the 
> file system may or may not get corrupted when the server is not shutdown 
> properly. It may also be a case of a single or multiple files being 
> corrupted or the kernel itself being corrupted...bottom line: need more 
> info..."
> 
> Anything you guys can add will be appreciated.
> Thanks
> 


_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to