[SOLVED] Can I use Linux to recover files from corrupted hard drive?
Linux - HardwareThis 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.
what does 'dmesg' show when you connect the disk ? In case the drive is detected, you can consider 'debugfs' to recover lost data. This can work in most cases.
Here---and everywhere......
First you have to chose a distribution---I would start with anything in the top ten on the "hit list" at http://distrowatch.com
You might try searching Google for a distro that includes testdisk and photorec and comes in a LiveCD
ok so When i go to disk management it tells me the drive is unnallocated.
-------
Im using "testdisk" from the link that @Linux.tar.gz gave me and i chose Intel? [i dont remeber what it asked me] then i chose to analize it, but it couldn't find a partiotion so i chose "deeper search" [it took HOURS]
now it tells me:
structure: Ok.
Use left/Right arrow keys to CHANGE partition characteristics:
*=primary bootable P=Primary L=Logical E=extended D=deleted
KEYS A:add partition, L= Load Backup, T= Change Type, P:List files
ENTER to continue
NTFS found using backup sector!, 1000GB/931GiB
I do not what to do to start I dont know what's the difference between the characteristics...
I want to choose 'list files' but i don't know if I should..
so far everything's gone smooth =]
I recovered the most important files but i still got some left in the drive but can't copy them because my computer doesn't have enough space..
hopefully i'll find a way to get to another hard drive and copy them.
but today I woke up, turned on my computer.. and the pc recognized my drive again! just like before.. unbelieveble almost a month after the last time I was able to open it.
thanks everyone, you all should work fixing computers lol..
I had a similar problem. Upgraded a fine working Mandriva 2007 system to 2010 version and it decided to clear the data from /home despite not being asked to format it. I used testdisk from a Gparted live CD (actually a multi-mini-distro cover DVD from Linux Magazine, December 2009) very successfully last evening. It wasn't a completely intuitive experience but I soon worked out how to tell the photorec program to find what it could and save the results on an external HD. I now have several directories full of files to sift through for the few I actually wanted to recover (sigh!). If I can make time, will repeat the exercise and write a quick "how to" for the benefit of others. Btw, from the testdisk readme (I think it was), I obtained a list of live distros that include it - Knoppix is also a carrier.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.