What is the best tool for recovering deleted data from a flash drive (pen drive)?
find lost partitions and data for External and Internal Drive for all of these file systems, ext2, ext3, ext4 and encrypted partition. for windows FAT12/FAT16/FAT32 and NTFS boot sector.
For Recovering data from external Hard drive
testdisk on your terminal and follow this well written step TestDisk Step-By-Step
For Recovering files from internal and External hard drives there is PhotoRec which comes with TestDisk.
photorec on your terminal
Select your drive and hit enter to proceed and follow the instruction.
extundelete is a utility that can recover deleted files from an ext3 or ext4 partition
The Ubuntu Wiki has an excellent page on Data recovery.
I've recently used the command line tool
foremost for recovering 9000 photos off a SD card.
- Install foremost:
sudo apt-get install foremost
- Mount and create the target directory for storing recovered data, make sure it's large enough to hold the data. I assume it's located at
Assuming your flash drive to be named
sudo foremost -i /dev/sdb -o /media/backup/recover
- Do something else, it might take a while to read and recover the data over USB.
(source: DataRecovery - Foremost)
recoverjpeg works perfectly for a formatted USB disk / thumb drive.
- Install recoverjpeg: sudo apt-get install recoverjpeg -y
Recover the pics
$ sudo recoverjpeg /dev/sdc -o ~/recover_usb/
Restored 1056 pictures
protected by Community♦ Dec 17 '13 at 9:13
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?