Linux - GeneralThis 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
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.
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.
I have a friend's hard drive, a WD WD5000AAVS 500GB hard drive. One day it failed, hardware not seen by OS, and she hadn't made backups of 5 years worth of data. Ouch. Don't worry, I've coached her on importance of backing up.
She happened to have another hard drive of the same model available. I took the breadboard from the working hard drive and installed. Now the PC sees the hardware, but no partition data. I realize the data may be corrupt, but I still want to do my best.
Here are the parameters from various utilities from the working drive, which I'm guessing the nonworking drive should match:
Code:
#hdparm -g sdb
geometry = 60801/255/63, sectors = 976773168, start = 0
#gpart -i sdb
Possible partition(DOS FAT), size(476937mb), offset(0mb)
#testdisk /dev/sdb
Disk /dev/sdb - 500 GB / 465 GiB - WD 5000AAV External
#fdisk -l sdb
Disk sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x44fdfe06
Device Boot Start End Blocks Id System
sdb1 1 60801 488384001 c W95 FAT32 (LBA)
You might of damaged the controller board when swapping units, the drives are not 100% compatible, or it is fragged. There are companies that specialize in data recovery but they are very expensive. Can you tell if the drive is spinning?
Hi, data recovery is expensive if you go to the profesionals.
But with GNU/Linux the tools are available.
Theres a couple I have used for different jobs.
Testdisk/photorec
and dd_rhelp/dd_rescue.
Aside from that, Have you just tried to scandisk/fsck the disk to find the parameters of the data and write them to the filesystem table?
IMHO, the board from one drive may be a different firmware revision, but you may be able to copy the data off to another drive with dd_rhelp.
web-search these tools. They're really popular. (ie, sourceforge)
regards Glenn
ps, you do need to be aware of static discharge when hacking stuff.
did you know, if you can feel a static discharge, it's over 2500 volts? No current, but it's more than enough to blow 12 and 5 volt zenner diodes (used for voltage regulation) Meaning you can damage electronics (cmos) with out realising it.
Last edited by GlennsPref; 02-23-2010 at 04:47 AM.
The sizes don't look right, so it's probably a bad drive, but I suggest you try to make an image using ddrescue, then use testdisk or foremost to recover whatever you can. That's the best you can do without professional equipment.
Thanks guys. I know it's not a bad controller because I can put it back on the good drive and use it. And while I was "hacking" I took precautions against static. Any damage happened before I got it.
Firmware ... I'll have to check that as a possibility.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.