To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > Linux/Unix Help

Linux/Unix Help Help with server-side Linux and Unix issues

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-24-2002, 07:00 AM   #1
feifeifei
Member
 
Join Date: Sep 2002
Posts: 45
Unhappy Disaster! My hard disk seems dead!!!!! Please help me! Thank you!

Hi All,

My web server is dead. It is a disaster for me.

Yesterday I heard big noise from the machine. Then I tried to login and reboot it. However, I am not allowed to login as the hard disk light was always on. The noise continued. After switching off the power, the machine could not be booted.

The error was quoted as follow:

Every thing is fine before these errors:

/home:
Error reading block 270061 (Attempt to read block from filesystem resulted in short read) while reading indirect blocks of inode 6353.

/usr: unexpected in consistency, RUN fsck MANUALLY
(ie – without –a or –p options)

***An error occurred during the file system check
***Dropping you to a shell. The system will reboot
***When you leave the shell
Give root password for maintenance

Anyone can help me? It is so important for me to recover this hard disk.

Thank you very very very much!!!
feifeifei is offline   Reply With Quote
Old 10-24-2002, 05:29 PM   #2
dotwebbie
Expert at something . . .
 
Join Date: Aug 2002
Posts: 287
Don't feel bad, you aren't the only person to have that happen to. It happened to me too. For future reference, some signs that may exist when the hd is going bad are:
  • excessive access times
  • unusual error messages
  • hd scans (in windows, scandisk is an example) return too many errors
  • files start disappearing/cannot be opened
When these start happening, never shut it down and try to back up as much data as possible and try to find a replacement hd if possible.

Okay. I used to know where to get a long list of recovering options but here are the ones off of my head.
  • put the hd in a ziplock bag and stick it in the freezer. That's right, you heard me, stick it in the freezer. After a few hours, try and boot it up.
  • Take the hard drive firmly in your hand and give it a good flick of the wrist. Immediately hook it up and attempt to boot. Give that no more than 3 tries. (Note: this is a last resort!)
  • Gently *spank* the hard drive a few times. Sometimes that can free up locked platters.
I'll try and dig up my list and give you some more options. Of course, none of these will repair any damage done. This will give you only a short time to back up data.
dotwebbie is offline   Reply With Quote
Old 10-25-2002, 08:00 AM   #3
feifeifei
Member
 
Join Date: Sep 2002
Posts: 45
Thanks very much for your suggestion!

I am going to try later.
feifeifei is offline   Reply With Quote
Old 10-25-2002, 10:29 AM   #4
nashirak
Senior Member
 
Join Date: Jul 2001
Posts: 305
Hey how about this:

Quote:
/usr: unexpected in consistency, RUN fsck MANUALLY
(ie ? without ?a or ?p options)
Do what the machine tells you! Just run fsck manually. I have been doing hardrive intinsive stuff, and have gotten the computer to crash like this a couple of times. There is just some inode that (6353) that is so bad that the computer cant fix its own filesystem. Not to worry! When the computer drops you into a shell just type

fsck /dev/hda (or whatever)

usually when this program runs automatically (like when you turn the power off on you machine and it has to check for filesystem integrity) it runs like this (which is hidden to you)

fsck -a -p /dev/hda

This tells the computer, -a: fix the file system automatically, and -p is dont prompt the user with the question "Would you like to fix node ....". Sometimes though, fsck relizes its not got enough information to put the system completely back together. So it fails with that error and says run the thing manually. So when you run it as above it will ask if you want to fix .... . Answer yes. After you are done, it should put a bunch of garbage files in /tmp (i think). Which are data from the hardisk that the filesystem doesnt know where it went previously. Dont worry, these are usually just parts of log files.
To prevent this from happening? Try a kernel compile, and enable ext3 journaling. Journalling keeps a record of everything open and then when the system dies, it knows exactly what to fix. You might see an extra 2 seconds in boot, and thats it. So you could almost say it was safe (although still not recommended) to just turn your computer off and on.
What dotwebbie talked about are if your HD is bad. I would try this before doing that. IMHO it would be bad if after the BIOS boot the computer came up with " NO OPERATING SYSTEM FOUND", this means that it couldnt find an OS on the boot sector of the disk ie the disk is bad cause it cant read from it. But you can boot to a certain point (ie your HD is working) but its just a couple of inodes that are screwed up.

Hope this Helps!
nashirak is offline   Reply With Quote
Old 10-25-2002, 10:56 AM   #5
dotwebbie
Expert at something . . .
 
Join Date: Aug 2002
Posts: 287
Well, I said what I said because of this:
Quote:
After switching off the power, the machine could not be booted.
If he can get it booted, by all means do what you suggested.
dotwebbie is offline   Reply With Quote
Old 10-25-2002, 12:30 PM   #6
nashirak
Senior Member
 
Join Date: Jul 2001
Posts: 305
He should be able to because the error that he is getting is after the Kernel is decompressed and loaded into memory. THe next step (or mabye the step after next) would be to check the filesystem. So this is Linux throwing an error not the BIOS (thats an even scarier message ). The kernel is going to be nice, and before the machine begins to load the partition on the disk (I think thats correct) its going to allow you to login to the machine (Ie. "give root passwd for maintince"). After he does this he should have a basic SH shell, where he can execute a couple of commands, one of which is fsck.

Hmmm... Hardriver in the freezer, I havent tried anything thing that drastic since I used to "blow" in my 8bit nintindo machine to get the game to work.
nashirak is offline   Reply With Quote
Old 10-25-2002, 12:51 PM   #7
dotwebbie
Expert at something . . .
 
Join Date: Aug 2002
Posts: 287
Quote:
Originally posted by nashirak
He should be able to because the error that he is getting is after the Kernel is decompressed and loaded into memory. THe next step (or mabye the step after next) would be to check the filesystem. So this is Linux throwing an error not the BIOS (thats an even scarier message ). The kernel is going to be nice, and before the machine begins to load the partition on the disk (I think thats correct) its going to allow you to login to the machine (Ie. "give root passwd for maintince"). After he does this he should have a basic SH shell, where he can execute a couple of commands, one of which is fsck.
True. And yes, that message is quite the scary message. Especially when you muck up the MBR *looks around nonchalantly*
Quote:
Hmmm... Hardriver in the freezer, I havent tried anything thing that drastic since I used to "blow" in my 8bit nintindo machine to get the game to work.
Yeah, I have never tried it myself but I do hear it works quite well. As for blowing in the nes, those were the good old days.
feifeifei: are you still there? Just a note that if your hd is indeed bad (which it does sound like it is to me), you have a small timeframe to work in.
dotwebbie is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 10:06 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.