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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-06-2006, 10:51 PM
|
#1
|
Member
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460
Rep:
|
recovering a potentially fried hard disk?
hello,
my friend's computer likely suffered a lightning strike (his computer was fine, there was a storm, the computer no longer boots), and i am trying to recover the data on his hard disk. the disk is now hooked up in my box on IDE1 master and is enumerated as /dev/hdc.
none of the disk utilities that i am familiar with are being helpful. for example:
Code:
# sfdisk -V /dev/hdc
read: Input/output error
sfdisk: read error on /dev/hdc - cannot read sector 0
/dev/hdc: unrecognized partition table type
sfdisk: no partition table present.
# fdisk /dev/hdc
Unable to read /dev/hdc
however, i can coerce some information (global drive info) out
Code:
# sfdisk -s /dev/hdc
29316672
# sfdisk -l /dev/hdc
Disk /dev/hdc: 58168 cylinders, 16 heads, 63 sectors/track
read: Input/output error
sfdisk: read error on /dev/hdc - cannot read sector 0
/dev/hdc: unrecognized partition table type
No partitions found
and finally, this is what i see via dmesg
Code:
# dmesg
.
.
.
hdc: task_in_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
hdc: task_in_intr: error=0x10 { SectorIdNotFound }, LBAsect=0, sector=0
hdc: task_in_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
hdc: task_in_intr: error=0x10 { SectorIdNotFound }, LBAsect=0, sector=0
hdc: task_in_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
hdc: task_in_intr: error=0x10 { SectorIdNotFound }, LBAsect=0, sector=0
hdc: task_in_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
hdc: task_in_intr: error=0x10 { SectorIdNotFound }, LBAsect=0, sector=0
ide1: reset: success
hdc: task_in_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
hdc: task_in_intr: error=0x10 { SectorIdNotFound }, LBAsect=0, sector=0
end_request: I/O error, dev hdc, sector 0
Buffer I/O error on device hdc, logical block 0
i've tried using both LBA and Large mode in the BIOS as well as the "noapic" kernel option, but have made no progress.
does anyone have any suggestions on what else i might try to breath life into this half-dead disk? thank you so much for any assistance.
mike
|
|
|
08-06-2006, 11:20 PM
|
#2
|
Member
Registered: Jul 2006
Location: Paraná, Argentina
Distribution: Frugalware 0.6 (Terminus) - Kubuntu 7.04 (Feisty Fawn Herd 5)
Posts: 217
Rep:
|
Quote:
i am trying to recover the data on his hard disk.
|
Well, as you must know, forensic recovery is no laughing matter unless you laugh at engineers work or at something very boring, sort of same thing at last :-p
Here in Helix site: http://www.e-fense.com/helix/ you have forums, links to docs you _have_ to read, and a CD containing GPL and freeware to forensics and incident response tasks.
You need: good luck.
|
|
|
08-07-2006, 12:26 AM
|
#3
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
The big question is: is there noise? If there's noise, the head's likely fubared and the data is toast. If it sounds like a 'normal drive' (no scratching, clicking, etc.) the drive controller could be dead, which is the better of the two. It would require finding an IDENTICAL (model number identical) hard drive and swapping the controller boards. Most just plug right in and are held down by a few torx screws.
|
|
|
08-07-2006, 10:55 PM
|
#4
|
Member
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460
Original Poster
Rep:
|
thanks for the thoughts. i'm not hearing bad noises. it sounds like the disk is spinning up normally actually. so each hard drive controller is specific to that hard drive model? so there's no way to just go out and get a replacement controller by itself?
i was hoping for something like fsck that operates on entire disks rather than just partitions (or the likes of scandisk from the good ol' days of win9x). is there anything like that? any other links to useful tools?
i'm not going to spend too much time on this, nor spend much money. so i'm really only looking for software suggestions.
thanks again.
mike
Last edited by zero79; 08-07-2006 at 11:04 PM.
|
|
|
08-07-2006, 11:33 PM
|
#5
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
Quote:
Originally Posted by zero79
i was hoping for something like fsck that operates on entire disks rather than just partitions (or the likes of scandisk from the good ol' days of win9x). is there anything like that? any other links to useful tools?
|
Even scandisk operated only on a single partition. But that aside, if the partition table is all that is fubar, you could try 'testdisk'.
|
|
|
08-08-2006, 01:09 AM
|
#6
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep: 
|
I suggest either using reverse dd to try to make an image of the drive or use gparted to guess where the partitions starts and ends. At the last resort use the hard drive manufacture's utility to repair the sectors. My hard drive recently (about a week ago) had problems like this but the first sector was not damaged. I just ran the hard drive utility from the manufacture to check and repair the sectors. Some files got corrupted and others were badly damage that they vanished. The files that vanished were not valuable, so I did not care.
Matir, nobody has a clean room and the patience to open up a hard drive to replace the heads. Most people will just faint if they attempt to do this. The heads will likely to hit the platters when removing and putting new headss in.
Note to everybody:
Back up, back up, back up your data. Plan backing up the data every week or every month. Use Norton Ghost for Windows and dar for Linux. Also Ghost for Linux can be replacement for Norton Ghost that can be use for both Windows and Linux.
|
|
|
08-08-2006, 01:35 AM
|
#7
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
You could try to copy an image of the drive using dd_rescue.
|
|
|
All times are GMT -5. The time now is 05:16 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|