LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-13-2005, 02:55 PM   #1
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Rep: Reputation: 40
Help: Its fallen and it can't get up (HD errors)


My Slack 9.1 box hung hard yesterday. The mouse was hung, I couldn't ping it... I powered off and on and during boot up I received a bunch of errors. After several reboots, i logged in at the prompt and ran fsck. There were several hard errors and i responded to copy the bad blocks.

When the box was finally accessible, during boot up this odd thing would happen - half-way through, instead of normal kernel messages, I started seeing what can only be described as code (it really look like C code) and after pages of that, the terminal emulation gets screwed up (all upper ascii codes - no alpha/numeric).

I switched to console 2 and was able to login. Some services were not started so I assumed the startup sequence was trashed.

I went about copying all the config files from /etc to my data drive (which appears healthy! and is mounted as /usr).

So - now the linux question. My assumption is that there was a minor head crash and several files including the kernel were trashed. How best to recover.

Do I even try to rebuild this drive? Is it worth replacing the kernel and trying a reboot? If so, are there linux tools to surface scan the drive??

Do you have any links to good linux recovery docs?

\\Greg
 
Old 01-13-2005, 03:05 PM   #2
barryman_5000
Member
 
Registered: Jan 2005
Distribution: Gentoo/Vector/Debian
Posts: 95

Rep: Reputation: 15
boot up in single user mode and do

badblocks -n /dev/MyHardDrive

Thats the non-writing test . . . if your system is as borked as it sounds then this will probably work.
 
Old 01-13-2005, 09:26 PM   #3
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Original Poster
Rep: Reputation: 40
It reported no bad blocks. But (and this is a big but), I accidentally started 'badblocks -w' which I now understand overwrites data. So now running fsck gives me an error"couldn't find ext2 superblock" and recommends using e2fsck -b 8193. This returns the same error.

I then tried dumpe2fs and get: "Bad magic number..." Couldn't find valid filesystem superblock.

So now I'm thinking the root drive is really dead.


\\Greg
 
Old 01-13-2005, 09:35 PM   #4
barryman_5000
Member
 
Registered: Jan 2005
Distribution: Gentoo/Vector/Debian
Posts: 95

Rep: Reputation: 15
actually it sounds like you have overwritten most of your harddrive . . . I guess if you can't fsck or dump then you need to just fdisk the whole drive clear and start over.
 
Old 01-13-2005, 09:43 PM   #5
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Original Poster
Rep: Reputation: 40
One more question on this. If badblocks returned 0, should I assume the hard drive is OK? Or just replace it?
 
  


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
install problem, fallen at the first hurdle ill_c Linux - Newbie 11 10-28-2005 01:19 AM
QMAIL errors errors.. YourForum Linux - Software 0 11-27-2003 12:30 PM
HELP!!! I"ve fallen into lunix and can't get out jbeezy Linux - Newbie 16 11-06-2003 04:05 AM
RH 7.2 cdrom has fallen and cant get up! h3li0s Linux - General 11 03-21-2002 08:35 AM
Help Me I've fallen and can't get up! elizabetheanera Linux - Software 9 06-22-2001 11:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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