LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-10-2007, 11:42 PM   #1
Bernard Swiss
LQ Newbie
 
Registered: Sep 2007
Location: Just outside Vancouver, Canada
Distribution: Debian (for now)
Posts: 27

Rep: Reputation: 24
booting problems -- bad hard-disk? or fixable?


How can I figure-out the actual cause of the kernel panic that's preventing a successful boot -- I'm hoping it's something I can fix, but concerned I may really need to buy a new hard-drive.

I'm running Debian Etch /Stable
According to dmesg :Linux version 2.6.18-5-686 (Debian 2.6.18.dfsg.1-13etch4) (dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21))


Lately this box has sometimes had trouble booting, and might just freeze up, even while not in active use. At least once it seemed to turn itself off. I first really noticed this after a recent power-fluctuation about a week or two ago. (Attempts to CTRL-ALT-Fx did not succeed, so brute-force power-off was required.

Sometimes restarting would take two or three tries, and I think I saw messages about initrd or initrd-img or something like that flash by, but the automatic fsck and ext3 seemed to deal with this -- so I put it down to "bad" shutdowns.

After the last lock-up though, I have had to resort to Knoppix. Before booting into Knoppix though, I hand-copied this from the monitor.

Code:
Begin: Mounting root file system ... ...
Begin: Running /scripts/local-top ...
Done.
Begin: Running /scripts/local/premount ...
kinit: name_to_dev (dev/hdb2) = hdb2(3,66)
kinit: trying to resume from /dev/hdb2
Attempting manual resume
kinit: no resume image, doing normal boot...
Done.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom ...
Done.
Done.
Begin: Running /scripts/init-bottom ...
Done.
/bin/init: error while loading shared libraries: /lib/tls/i686/cmov/libc.so.6:
cannot read file data: Invalid argument
Kernel panic - not syncing: Attempted to kill init!
Trying to follow up on this, I have no idea why it would look for a "resume image" -- this is not a lap-top. Trying to verify in /etc/fstab my recollection that hdb2 is my swap partition, I discovered that my /etc file has apparently been replaced with a supposed (broken) link to 'librt-2.3.6.so'.

I am suspecting that my hard drive was damaged in the power fluctuation that I mentioned, which was sharp and brief enough that it shutdown my computer though nothing else was greatly affected. Previous incidents either rebooted (rather than shutdown) the computer, or also reset VCR's, clocks, etc.

But as I may be jumping to conclusions, I thought I'd seek informed opinions and advice on what I can/should try or do about figuring this out.

Last edited by Bernard Swiss; 11-11-2007 at 12:39 AM. Reason: clarity
 
Old 11-11-2007, 04:52 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Issue and read "man fsck.ext3" and choose which options you want to use.

Backup any data you don't want to lose before you begin.

Another method is to get the utility from your hard drive manufacturer to test your disk, i.e., SeaTools from Seagate.
 
Old 11-11-2007, 04:53 PM   #3
Bernard Swiss
LQ Newbie
 
Registered: Sep 2007
Location: Just outside Vancouver, Canada
Distribution: Debian (for now)
Posts: 27

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by Bruce Hill View Post
Issue and read "man fsck.ext3" and choose which options you want to use.

Backup any data you don't want to lose before you begin.
Did that before posting.
Quote:
Another method is to get the utility from your hard drive manufacturer to test your disk, i.e., SeaTools from Seagate.
That's aa interesting idea, thanks! (Though the last few times I looked for a manufaturer's utility (eg. BIOS flasher/updater?) it was only available in Windows version. And last time I tried looking up HD info, the site was Windows-only. But I'll do some looking.

I was assuming that there would be some pertinent tool available in Knoppix, but all I found was hdparm and bonnie -- which don't seem what I'm looking for.

My (non-techie) working assumption is that this is a failing hard-drive, but was hoping for some guidence about either confirming this or about what else could account for the symptoms.
 
Old 11-11-2007, 04:56 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
What brand is your hard drive? I'll give you a link ...
 
Old 11-11-2007, 06:23 PM   #5
Bernard Swiss
LQ Newbie
 
Registered: Sep 2007
Location: Just outside Vancouver, Canada
Distribution: Debian (for now)
Posts: 27

Original Poster
Rep: Reputation: 24
It's a Maxtor 5T040H4.

I found that the relevent link appears to be the one you already supplied, but the tools listed appear to be DOS or Windows specific.
 
Old 11-13-2007, 05:18 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally Posted by Bernard Swiss View Post
...but the tools listed appear to be DOS or Windows specific.
They are not. There is something called Max<whatever> 4.n.m (sorry, I forgot the exact name, but it is a tool you can download from the Maxtor site, it has a version number of 4.something like 4.1.3 or 4.2.5). Copy to a floppy and boot from there...
 
Old 11-13-2007, 05:54 AM   #7
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Seagate bought Maxtor ... just go to the link and download the iso image, check the md5sum, burn a CD, boot your computer with it and following the bouncing balls.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HARD DISK BAD SECTOrS zoetrope87 Linux - Hardware 7 03-02-2007 05:16 PM
Bad hard disk? Anything I can try? jnsg Slackware 10 08-21-2006 01:28 AM
HARD DISK BAD SECTOrS zoetrope87 Linux - Software 2 01-12-2006 03:54 AM
Hard Disk not spinning down (is that bad?) l00zer Linux - Laptop and Netbook 2 11-05-2004 11:15 PM
Bad BLocks on Hard disk... hpnadig Linux - Hardware 0 03-10-2004 11:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:10 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