I still haven’t figured out whether it happened because of pure stupidity, temporary brain malfunction or low caffeine concentration in the blood, but a week ago, by mistake, I wiped the MBR of my primary desktop’s hard disk and also (because, you know, the MBR alone is never enough!) the boot sector of the first NTFS partition, where all my personal data was, while messing around with the install-mbr utility early in the morning.
My last full backup had been done 8-9 months ago, just before switching to Windows 7 RC. Even after such a criminally insane mistake, my partition could still be recovered relatively easily using Testdisk, but I, still for unknown reasons, decided to use the Windows utility Bootrec.exe with the /fixboot and /fixmbr switches to do that job. Unfortunately, not only did it not work as expected, but, after using Testdisk to browse my data, I noticed that entire directories were missing from the list. I’m not sure if I should blame bootrec. Maybe it’s not meant to do such things. I don’t know. I should have used the tool I knew it would work in the first place.
From that point on, I tried several utilities. The only program that could still read the exact size of the NTFS partition was gparted (through ntfsprogs). After several hours, having tried Testdisk, ntfsprogs and the Windows Recovery Console tools and being extremely careful so that I did not touch the contents of the partition (my data!!!) in any way, just before trying PhotoRec as a last resort for raw file recovery, a deep partition scan with Testdisk revealed the NTFS partition. The size was wrong, but all files were listed properly. I can tell you that I did not miss the opportunity; I mounted a SAMBA share and copied everything there.
Fortunately, data is safe now. I spent a week checking it and cleaning it up and everything is there.
There are a couple of things I’d like to say to everyone:
- Never use utilities that can destroy critical parts of your partitions by instinct. RTFM!
- Never mess with the partition table or the partition’s boot sector etc early in the morning. I am serious! There are numerous great things you can do in the morning! Stick to those great things, unless it is your daily routine to recover data or recover boot sectors and unless you always know what you are doing.
- Backup data regularly. Your desktop computers and servers are equally important. Schedule daily backups of critical data. There are many great open source backup tools, like rdiff-backup, rsync, unison, BackupPC to name a few. Also Windows includes a backup tool that is very convenient to setup and use. There is no excuse for not doing frequent data backups.
They say that it is the idiots who learn from their own mistakes. Smart people learn from the mistakes of others. Stick to that principal.
The The importance of regular data backups by George Notaras, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.