LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-23-2005, 04:51 PM   #1
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Rep: Reputation: 31
Did my drive just die?


My box was acting funny so I decided to reboot it. When it started coming up I get about 20 lines of this:


Buffer I/O error on device hda2, Logical block 0
Buffer I/O error on device hda2, Logical block 1
Buffer I/O error on device hda2, Logical block 2
Buffer I/O error on device hda2, Logical block 3
Buffer I/O error on device hda2, Logical block 4
Buffer I/O error on device hda2, Logical block 5
Buffer I/O error on device hda2, Logical block 6
Buffer I/O error on device hda2, Logical block 7
Buffer I/O error on device hda2, Logical block 0
Buffer I/O error on device hda2, Logical block 1
Buffer I/O error on device hda2, Logical block 2
Buffer I/O error on device hda2, Logical block 3
Buffer I/O error on device hda2, Logical block 4
Buffer I/O error on device hda2, Logical block 5
Buffer I/O error on device hda2, Logical block 6
Buffer I/O error on device hda2, Logical block 7

mkrootdev: label / not found
mount:error 2 mounting ext3

pivotroot: pivot_root (/sysroot,/sysroot,init) failed :2
umount /initrd/proc failed :2
kernel panic: no init found. Try passing Init= option to kernel



It looks like it can't read my fstab file or something. Is there any way to get the fstab working if that's the case? When I try and load the Fedora 3 rescue disk it says that it can't find any partitions. The BOIS isn't reporting it as a bad drive or anything and if I do a badblocks test it spins the drive with no errors.

Any suggetions?

Last edited by mijohnst; 11-23-2005 at 05:34 PM.
 
Old 11-23-2005, 05:37 PM   #2
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
Have you fscked it yet? Might not be possible, if the partitions are gone. If that is the case, you need more local help.

Last edited by tuxdev; 11-23-2005 at 05:39 PM.
 
Old 11-23-2005, 05:41 PM   #3
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31
I did try and fsck and an e2fsck and they both fail saying something about possible zero lenth or something. I'm starting to doubt myself now because I made a change to the FSTAB file earlier and starting to wonder if that change broke it. Are there tools to recover or create a new FSTAB file?

Last edited by mijohnst; 11-23-2005 at 05:42 PM.
 
Old 11-23-2005, 06:52 PM   #4
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31
I think I know what my problem is. I found somewhere that if you're getting a pivotroot: pivot_root (/sysroot,/sysroot,init) failed :2 error, then it's because the 'initrd' is not there.

If I boot up to the rescue disk, I can mount /dev/hda1 which is my boot directory. If I try and mount /dev/hda2 though it says"


mount: Mounting /dev/hda2 on /mnt/system failed: Input/output error
 
Old 11-24-2005, 12:02 AM   #5
slantoflight
Member
 
Registered: Aug 2005
Distribution: Smoothwall
Posts: 283
Blog Entries: 3

Rep: Reputation: 35
Any easy to tell if you harddrive is physically damaged is to pull it out of its bay and listen to it. Does it sound any different than before? Is it consistent or does rapidly spin up and then abruptly spin down?

It sounds like atleast one of your partitions is corrupted. This doesn't easily happen on a journaling file system.
 
Old 11-24-2005, 09:06 AM   #6
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31
Yikes... Corrupt journaling doesn't sound good. I've pulled the drive and it sounds normal. How would I fix that one partition? I've tried e2fsck and it fails. Seems like I've had this problem before a long time ago and I got it fixed...
 
Old 11-24-2005, 10:34 PM   #7
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31
I can't figure this out... When I try to do fsck or e2fsck it fails saying that it's possibly a zero-length partition or something. How to I force it to check the partition? I'm running out of ideas... lol
 
Old 11-24-2005, 11:16 PM   #8
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Can you post the output of fdisk -l?
 
Old 11-24-2005, 11:35 PM   #9
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31
When I run that command, I get this:

Code:
Device          Boot          Start          End          Blocks                ID          System
/dev/hda1       *              1               13           104391             83          Linux
/dev/hda2                      14           29496        236822197+     83          Linux 
/dev/hda3                      29497     30515        8185117+         82          Linux Swap
When I boot to the rescue disk and try and mount /dev/hda2 using 'mount /dev/hda2 /mnt/system' I get this:

Code:
Mount: mounting /dev/hda2 on /mnt/system failed: Input/Output error.
When I try and run a e2fsck I get this error:

Code:
e2fsck: Attempt to read block from file system resulted in short read while trying tro open /dev/hda2
 
Old 11-25-2005, 10:35 AM   #10
slantoflight
Member
 
Registered: Aug 2005
Distribution: Smoothwall
Posts: 283
Blog Entries: 3

Rep: Reputation: 35
I hate to say it, but you may just have to reformat your partition. Sounds like your fscked out of options.
 
Old 11-25-2005, 11:38 AM   #11
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31
Don't say that! lol
 
Old 11-25-2005, 11:44 AM   #12
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Rep: Reputation: 30
Try running the proprietary disk tools that come with your drive. Seatools for Seagate, Data Lifeguard for WD, Power Max for Maxtor. They usually have a drive test tool to see if your drive is physically failing.
 
Old 11-25-2005, 02:10 PM   #13
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31
Something interesting to add... I just downloaded Tom's boot disk and booted another machine of mine that's working just fine and tried to do an fsck and e2fsck and I get the same exact "superblock might be corrupt" message.
 
Old 11-25-2005, 03:21 PM   #14
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You are fscking /dev/hda{1,2,3}, not just /dev/hda, right? That often gets "superblock might be corrupt" messages.
 
Old 11-25-2005, 04:21 PM   #15
mijohnst
Member
 
Registered: Nov 2003
Location: Huntsville, AL
Distribution: RHEL, Solaris, OSX, SuSE
Posts: 419

Original Poster
Rep: Reputation: 31
I am doing /dev/hda2. I can mount hda1 just fine. Anyway, as a last ditch effore I've run a "mke2fs -S /dev/hda2" followed with "e2fsck -f /dev/hda2" and I'm seeing lots being changed and lots being removed from the tree. I hope that very little of this is the data I need off that partition...

Seems like I've had to do this before and I was able to get my data by looking through lostandfound directories. Is this a common problem with e2fs? Should I be moving all my partitions to e3fs?

Thanks for the help!
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Die Miva, Die! Apache Woes, Cannot kill Miva linchat Linux - Software 3 09-16-2005 08:03 PM
Die, lotus notes, die (sorry for ranting) slackist General 10 01-10-2005 10:42 AM
mtink won't die orbiteleven Linux - Software 2 12-29-2004 11:29 AM
Die Caps lock Die! tfdml37 Linux - General 1 06-26-2004 02:00 AM
old kernels never die? r.stiltskin Red Hat 3 01-12-2004 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration