With deadlines looming towards the end of term, everyone's racing to make sure their coursework gets done. But what happens when you go to open up that epic essay and it's not there!? Or if you accidentally delete something you shouldn't have? Most people will panic but what can you do to find it again?
Hopefully, you'll have a backup (
tips for backing up later on in this guide), but if you don't then what can you do about it?
Step 1
Stop what you're doing!
When you create a file, the computer looks for free space on your computer. It then writes the information about where that file is located to something called the Master File Table (MFT) and then writes the data to the main part of the hard disk. When the file is deleted, all your computer does is overwrite the information in the MFT to say that the space where the file sits is actually free. The actual data remains on the disk, but the computer allows the data to be overwritten as if it was just empty space.
Because of this,
you must stop what you're doing. Anything you do on your computer could be potentially overwriting this deleted data! If you want any hope of getting it back, you need to reduce the usage of your computer to a minimum. Browsing the internet, shutting down and powering on your computer, it all writes things to the hard disk.
A worthwhile note...
The techniques discussed here will apply to not only hard drives, but also USB sticks and memory cards.
First things to try:
NOT SYSTEM RESTORE!
System restore is a largely useless feature that only rolls back a windows installation to a previous time. It will NOT recover files and will probably do untold damage to any deleted files, due to it being a very read/write intensive process.
If you're using Microsoft Office, the first thing you'll want to do is have a quick look to see if the autosave feature has saved a copy of your work. You can do this by going to
C:\Documents and Settings\[your username]\Application Data\Microsoft, and then having a browse through any sub folders.
Or:
C:\Documents and Settings\[your username]\Local Settings\Temp"
Or:
C:\Users\<Username>\AppData\Roaming\Microsoft\Word and
C:\Users\[your username]\AppData\Local\Temp in Vista
(Thanks to SpikeyMike and AWSLC)
Note: You may have to show hidden files to see the contents of these folders.
You'll be looking for .tmp or .wbk files that look like
~wra####.tmp (where those hashes will be numbers)
This style of filename relates to Word documents which will be the most common. Powerpoint documents will look like
~ppt####.tmp. Excel doesn't autosave by default.
If you draw a blank there, the file has probably been deleted and you'll need to download some file recovery software to see if the original file can be recovered.
File Recovery
You need to do the downloading on another computer, really, as otherwise you could again be overwriting data. I've personally got very little experience with the following tools, however, they do tend to crop up quite frequently in discussions on here.
Just to be clear: I make no warranty of the suitability or effectiveness of the following software packages.
Recuva
http://www.recuva.com/
Recuva is a freeware file recovery tool and seems pretty decent. It's got no limitations on its use, unlike some packages that you can download and it's been tried and tested by a number of people on TSR with a fairly decent level of success. It's compatible with a wide range of Windows file systems making it ideal for recovery from hard disks or flash drives.
NTFSUndelete
http://ntfsundelete.com/
Another good, this time open source tool. Not sure of its compatibility with other file systems like FAT16/FAT32, however. This package has the benefit of being downloadable in .zip format, allowing you to copy the program onto a USB stick and run it from there.
If anyone has any experience with alternative packages, then please let me know and I'll include them here.
Another worthwhile note...
When using this kind of software, you should try and install it to a partition other than the one you're trying to recover from. You should also recover the files to a different partition or drive.
If recovery software cannot find the files, then the file may be wholly or in part destroyed and that will require forensic techniques that I won't cover here, to effect a partial recovery if indeed there is anything left of the file at all.
DIY solutions can only get you so far. If your storage device completely dies or is physically damaged (especially with hard disks) then your only realistic hope of recovery will be with professional data recovery specialists and this is
expensive. There are a few examples where you can try and improvise a bodge e.g. with USB sticks, but I would advise asking our advice before you start breaking out the toolbox!
What if I've saved over the file?
It's probably gone. Once you overwrite the data on the disk, the overwritten data is PERMANENTLY gone. The theory into you being able to recover the previously held data using a magnetic force microscope put forward by Peter Gutmann in the mid 90's is unfounded. It's not possible to recover it. Partial recovery may be possible if the file that overwrote the original data was not completely overwritten, but you need forensic tools to recover that and it won't be very pretty to look at. In the main, the file will be gone.
If you have any questions, start a thread and we'll see what we can do to help. Also, if have anything you think would be worthwhile adding to this guide, just post and I'll add it.