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

It’s hard to find your blog in google. I found it on 19 spot, you should build quality
backlinks , it will help you to increase traffic. I know how to help you, just search in google – k2 seo

July 13th, 2014 at 10:12 am

Finally i quit my day job, now i earn decent money on-line you
should try too, just search in google – bluehand roulette system

July 15th, 2014 at 3:04 am

Even if you have a business that is trustworthy
and reputable, you might face problem in being able to find potential buyers.
The Authority – Any one who has legal power over you is the
Authority. Much of what we take for granted today results from
technology that has been developed only within the last century.

August 19th, 2014 at 6:37 pm

I read a lot of interesting posts here. Probably you spend a lot of time writing, i know how to save you a lot of work,
there is an online tool that creates high quality, google friendly posts in minutes,
just search in google – laranitas free content source

August 28th, 2014 at 7:36 pm

I do not know whether it’s just me or if everybody else experiencing
issues with your website. It seems like some of the text
on your contebt are running off tthe screen. Can someone else please comment and let me know if
this is happening too them as well? This may be a problem with my weeb
broowser because I’ve had thjs happen previously. Appreciate it

September 4th, 2014 at 4:39 am

First of all I want to say excellnt blog! I had a qjick question that I’d like to askk if you do not mind.
I was interested to know how you center yourself and cleaar your thohghts prior too
writing. I hae had trouble clearing my mind in getting my thoughts out there.
I do enjoy writing however it just seems like the first 10 to 15 minutes are lost sjmply just trying to figure outt how to
begin. Any ideas or hints? Many thanks!

September 11th, 2014 at 4:33 am

If you would like to improve your knowledge only keep
visiting this web page and be updated wijth the most recent
news updatte possted here.

September 12th, 2014 at 2:10 am

Leave a reply

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