1

I just finished a project and rebooted my computer. It didn't want to boot anymore so I had to use the Windows 7 system repair option. It ran for a minute and then booted up. Now most of my source code from the last 4 days of work is gone!

Background: sometimes (most often after installing new software) my notebook won't boot up anymore. It will just show the little Windows 7 flag, but not read from the hard disk anymore. If I hard-abort and reboot then, it asks me whether to start Windows normally (which won't work) or to run "Windows startup repair". If I run it, it does some stuff for about two or three minutes and then I can boot Windows again. Usually after this, .exe files I added to the computer during previous days are gone - but other files so far were not touched.

But now, after this happened, a whole bunch of ".as" (ActionScript source files) from my project are gone!

Does anyone know where and whether there's a way to recover them?

soandos
  • 24,600
  • 29
  • 105
  • 136
Mat
  • 11

4 Answers4

3

AFAIK there's no way to recover your data without using "forensic tools" like TestDisk assuming that

  • you did not use version control (SVN, GIT, etc)
  • you don't have a (recent) backup

Just a few tips for the future:

  1. If you work on critical data always assure that you have a recent backup! Always!
  2. Use a version control tool!
  3. If your machine begins to show errors or behave strangely: Fix the problems immediately. If you must: reinstall your OS and recover your data from a backup but never work with a clearly broken OS.

[edit no. 1] Another urgent hint: If you really want to recover data stop using the partition in question immediately!

Boot from a LiveCD and use dd or some equivalent tool do create a disk image of your partition. Otherwise you can accidentally overwrite the data you might want to recover, just by using your disk. When you boot your OS it usually writes data to the disk (logs, etc.) so it may overwrite your data.

If you try to recover the missing data, use a copy of that disk image. Just to be sure.

lajuette
  • 4,852
1

You should check and see if "Restore Previous Versions" shows anything on the folders in question.

Mark Sowul
  • 3,088
1

If you're fortunate, the restore did not write over your existing data. Maybe I've been lucky in the past, but I've found Windows to write to empty sectors of the disk. This means that even though a file is deleted, its not really deleted; just the pointer to the file is deleted.

I've had great success in recovering files using a couple of file recovery resources. Most recently I used Reuva to recover several years worth of photos for a friend when her hdd crashed. Recuva is free. There are some commercial file restore applications as well.

Whatever you do, do not install any file recovery program onto your existing disk. You'll either want to find one that will boot from a USB device or simply attach the hdd to another machine that has the file recovery program installed.

0

It unlinks the references, your best guess is to go for a free combiantion of TestDisk and Photorec or a paid forensics solution like WinHEX. See my nearly finished recovery post here, and set up version control and incremental back-ups next time to secure yourself... ;-)

Also, as your notebook sometimes doesn't boot; check your hard drive with above link and your other hardware too, or you might meet a more serious problem later these days.