I found an old hard drive of mine yesterday and found that it fits into my current laptop. When I started it up, however, it got to the Win XP loading screen and then restarted.

Then I thought, if I run some Linux distro off a flash drive, then maybe I could browse the hard drive somehow and recover as many files as I can.

I think there exists some program that reads raw data off damaged drives and then pulls out all the undamaged files that it can.

If this program exists, what is it called and where can I find it? Or is there a Linux distro designed for this purpose?

I'm sure I could write something myself to do the job but it would take forever, would involve a massive list of file headers to scan for, and I don't want to reinvent the wheel.

  • I'd try to boot from a modern linux live cd and mount the disk readonly and pull the data to an usb device. – ott-- Dec 4 '12 at 17:01

First, consider that the Windows install might be broken (rather than the hard drive) or just configured for a different set of hardware, thus Windows is rebooting (or BSOD'ing but set to automatically reboot) since it is not recognizing your machine's hardware. (Windows doesn't take too kindly to hardware changes) - it might not be a hardware problem.

If you can get the hard drive recognized and mounted by a Linux system, then just copy data off it; otherwise, try ddrescue, TestDisk and Photorec.

ddrescue is a raw disk imaging tool that "copies data from one file or block device to another, trying hard to rescue data in case of read errors." The application is developed as part of the GNU project and has written with UNIX/Linux in mind.

TestDisk is powerful free data recovery software! It was primarily designed to help recover lost partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software, certain types of viruses or human error (such as accidentally deleting a Partition Table). Partition table recovery using TestDisk is really easy.

PhotoRec is file data recovery software designed to recover lost files including video, documents and archives from hard disks, CD-ROMs, and lost pictures (thus the Photo Recovery name) from digital camera memory. PhotoRec ignores the file system and goes after the underlying data, so it will still work even if your media's file system has been severely damaged or reformatted.

If the hard drive is faulty, you probably will want to create a disk image and operate on it instead of directly operating on the hard drive.

  • 1
    Thanks! Turns out it was readable directly from a CrunchBang flash. No recovery necessary :) – Korgan Rivera Dec 2 '12 at 16:14

You could try Mondo Rescue by following the instructions here and use a USB flash drive for using it on the laptop to recover data.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.