How to Undelete Files from the System Disk
Windows, Mac OS X, and most popular distributions of Linux feature a “Recycle” or “Trash” bin that allows you to recover accidentally deleted files. But once the files are emptied from the trash, they can’t be retrieved quite as easily. The good news is that all or most of your deleted file may still be on your system disk. Using data recovery software, you can undelete files from your system disk with just a few clicks..
Before We Begin
If you are still using the computer where your deleted files resided, stop. Turn off your computer immediately and come back to this page on a secondary computer.
In its simplest terms, a file system consists of two parts. The first part is the data itself. The other part is information about how the data and files are organized. When a file is deleted, the data remains intact, but the information about the data is removed from the file table or index. But the data won’t stay there forever. As soon as the system needs more disk space, it’ll overwrite that old data, rendering it completely irrecoverable.
When you are dealing with system disks, there are some special considerations when compared to undeleting files from an SD card or any logical disk other than the one where your operating system is installed. Operating systems are constantly writing data to the disk, even when you’re not downloading files or saving work. Even when your computer appears to be idle, it may writing data to the disk, such as browser history, system logs, temporary files, etc. or running background processes that affect the disk.
For that reason, you should avoid using the disk altogether.
The solution: dismount the disk and analyze it with read-only access. We’ll explain how to do this in the steps below.
Step 1: Turn Off the ComputerPower down your computer immediately. Don’t save any work (unless it’s equally as crucial as your deleted file) and don’t shut down or restart your computer. These processes cause even more read/write activity than idle use.
While pulling the plug on your machine isn’t a good habit for everyday use, when you want to control the damage by stopping all write activity, a hard shut down is the way to go.
Step 2: Mount the Drive without Booting ItMount your drive without starting the operating system installed on it. How is that possible? There are a few ways:
Step 3: Run a File Recovery ScanThis is a basic undelete scan that searches a disk for recognizable files. This is the quickest option and, if the deletion was recent and the file had a common file type (such as JPG, AVI, MOV, DOCX, XLSX, and PST), a basic file search/undelete works very reliably on FAT, NTFS, exFAT and ext2/ext3/ext4 file systems. In these cases, a basic file undeletion utility can find remnants of the file’s meta data and quickly restore the file in its entirety. Most free programs will be limited to this feature.
Step 4: Run a RAW File SearchIf a basic file search doesn’t work, you’ll need to do a raw data analysis. This is a more detailed search that looks for a file’s digital signature. If found, the software can restore the file even if the meta data—such as file length, file type, and file location—are permanently deleted. In some file systems, such as HFS and HFS+ (used in Mac OS), a raw file search is the only way to undelete a file.
A raw file search will look for a digital file signatures of common file types. The success of the software depends on the breadth of its “known file types.” Advanced software will let you add custom digital file signatures, essentially “teaching” the software how to find the specific type of file you are looking for. R-Studio, mentioned above, has this feature.
ConclusionThese steps are the best practices for file undeletion. Note that these steps vary a bit from file recovery from a damaged or corrupted disk. In that case, you would want to avoid both write and read activity on the disk by creating an image of the disk.
Also note that these steps are very conservative. If the file deletion was very recent, the file size was relatively small, and the disk is very large with ample amount of free space, then you can likely skip Step 1 and Step 2. But if you want to maximize your chances for a successful file recovery, take the conservative route—especially if your system disk is nearing capacity.