GNU+Linux command memo

Restore lost files from disk, cdrom or camera with PhotoRec

Récupérer des fichiers perdus sur tout support avec PhotoRec

# photorec /dev/<device> (1)
1 Follow photorec’s simple instructions…
testdisk can also undelete files from FAT, NTFS, exFAT and ext2 filesystem.
TestDisk and PhotoRec can be installed on a rooted Android system, using this binary file compiled for ARMv7. To install it, one must # mount -o rw,remount /system and the copy the file to /system/xbin/. Source and more binaries, local copy.