[ Thanks to linuxconfig for this link.
]
“1. Introduction
“Although FAT32 or FAT16 are very old file systems, which
reflects on their poor performance in comparison with other file
system alternatives they are still widely used by many electronic
devices. Usually, these devices include USB stick’s, digital
cameras , camcorders and etc. Chances are that you own and store
personal data on a device with FAT flesystem is very high as is a
likelihood of an accidental deletion of your important data. In
this article we will use testdisk utility to undelete files from
FAT file system.“OOPS.. I have accidentally removed a video file from my
camcorder ! The first thing before we start panic is to unmount USB
device and create a low level backup of the device partition with a
dd command.“If from any reason you cannot unmount your device, remount it
with read-only permissions:# mount -o remount,ro /dev/sdX
“Any data written or file manipulation after accidental file
removal will weaken our chances for deleted file recovery. On the
other hand creation of a low level backup with dd command gives us
an opportunity for unlimited recovery attempts since we are always
able to put the entire partition back bit by bit exactly as it was
right after accidental file deletion.”