Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I tried to install Windows 8 on my MacBook using Boot Camp. Because the normal installer did not recognize the partition that was made by Boot Camp, I opened up the command promt and ran DISKPART. I selected my drive, selected my partition and entered CLEAN – and boom, my entire hard drive shows up as being totally empty. I do have a 1 week old backup and rolling back to it would not be too terrible, but I wonder: is there a way to restore my files?

share|improve this question

2 Answers 2

Repartitioning a disk like that is, unfortunately, a fatal operation for the data on it. There's an outside chance you may be able to take advantage of a data recovery service to extract some of the data from the drive but this is an expensive way to go.

Good thing you have that backup.

As a general rule, before I do anything on my machines at the OS level (upgrade, reinstall, cross-grade, etc.) I take a snapshot of my drive using Carbon Copy Cloner and I test to make sure I can boot the Mac from that copied drive. Once I've confirmed the clone is stable, I proceed with the work on the main drive. If I goes wrong, I just clone the external drive back to my main drive and it's like I never messed it up in the first place.

share|improve this answer
    
Thanks for your answer. I think I managed to recover my files so easily (see my answer) because only the data drive was damaged, and the system was still intact. I am making a snapshot right now though :) –  fabian789 Oct 17 '12 at 15:09

Ok, I managed to fix it myself! What I did was:

  1. Put TestDisk on a USB Stick
  2. Boot into Single User Mode (by holding down CMD-S). This worked because I have two hard drives, a SSD and an old HD, and the System on the SSD still worked
  3. Run TestDisk on the damaged volumne
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.