LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (http://www.linuxquestions.org/questions/general-10/)
-   -   dead flash drive (http://www.linuxquestions.org/questions/general-10/dead-flash-drive-4175437151/)

newbiesforever 11-14-2012 02:15 PM

dead flash drive
 
My USB flash drive has failed, after about two years. Is there any way I can revive it long enough to recover the data?

smallpond 11-14-2012 02:54 PM

Depends on the failure mode. Usually with flash a block has failed error recovery so can no longer be read. Since the FAT filesystem is not journalled it might be the case that most of your data is there but the drive is not mountable because metadata is corrupted. Try:

Code:

ddrescue /dev/sdd1 /tmp/mylateflash /tmp/rescue.log
but replace sdd1 with your actual device name. See if you can read any raw blocks from the drive. There are tools available (mostly on Windows) for examining and fixing a raw FAT image. You may need to install ddrescue if it isn't installed automatically by your distro.

If you can't read anything I don't know of any tricks to revive a flash drive. I once recovered data from a hard drive that was failing when it warmed up by putting it in the freezer, but I doubt that flash drives have the same failure modes.

newbiesforever 11-14-2012 04:11 PM

Well, this is peculiar. I didn't have ddrescue, so I installed it. But the terminal doesn't recognize the command "ddrescue."

smallpond 11-14-2012 05:31 PM

hmm. In Fedora its installed in /usr/bin, which is normally on your path.


All times are GMT -5. The time now is 05:26 AM.