Linux USB Flash Drive Recovery!!!

Hi Betty!, and to all those LinuxChix and LinuxGuys who need to recover files
or partitions off dead flash drives, usually fried by Windows, or any hard drive
or removable media :-)

Here is the website for the TestDisk and PhotoRec software that
was used to recover your flash drive in Linux at our last LinuxChixLa meeting at

It is also available for Windows and Mac OSX.

To install and run TestDisk and PhotoRec In Ubuntu Linux:

“sudo apt-get install testdisk” from a terminal and then run
“sudo testdisk” or “sudo photorec”
Both the photo recovery program and test disk are included in the
debian package.
The PhotoRec software is what was used to recover the files off your
dead flash drive.  It will recover many types of files, not just multimedia :-)

The detailed instructions for running PhotoRec are demonstrated on the
PhotoRec main site:

TestDIsk/PhotoRec is usually faster at data recovery than Ddrescue, but
Ddrescue is more thorough and efficient:
Ddrescue and fdisk is what I always used to use until Chad gave us the heads-up
on TestDisk :-)

Knoppix Linux Live CD has TestDisk/PhotoRec and Ddrescue already installed!
Here are the instructions for using these utilities in Knoppix:

The Ubuntu Rescue Remix Live CD ( is also a great option.  It includes TestDisk and Ddrescue as well.

And the Ultimate Boot CD (, one of my favorite
boot cds, includes TestDisk as well.

Have fun recovering files :-)


This entry was posted by on Wednesday, April 22nd, 2009 at 5:11 pm and is filed under And You Did What? Where?, Sharing What Have I Learned, System Administration, Useful Applications. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.



A Big thanks to Jill and Chad for recovering the usb stick and Jill thank again for your blog.

April 24th, 2009 at 8:29 am
jo mama:

thank you saved the info thanks to this blog you fuckin rock

February 5th, 2012 at 2:59 pm

Hi, this Blog was the first hit while searching for “linux flash card recovery”. I installed testdisk on my ubuntu-system and photorec did a charming job! Saved me from an embarrasing situation & a lot of work – Thx a lot for posting!

December 15th, 2012 at 4:34 am

Leave a reply

Name (*)
Mail (will not be published) (*)