So me and my friend were installing Arch Linux on my external hard drive. My external hard drive had no data on it, ready to roll. My friend had partitioned my external hard drive (I am positive that there was no error in this part of the process), but after he had exited out of cfdisk, he had accidentally typed
mkfs.ext4 /dev/sda2 # my *internal* hard drive
instead of
mkfs.ext4 /dev/sdc2 # the drive he was supposed to format
I asked, "Hey, isn't my external hard drive sdc, not sda?"
Then he starts freaking out, and he shut down the Arch Live CD and tried to reboot into Windows (on my internal hard drive). This screen came up:
Windows Boot Manager
Windows failed to start. A recent hardware or software change might be the cause. To fix the problem: 1. Insert your Windows installation disc and restart your computer. 2.Lo and behold, t Choose your language settings, and then click "Next." 3. Click "repair your computer." If you don't have this disc, contact your system administrator or computer manufacturer for assistance. Status: 0xc000000f Info: The boot selection failed because a required device is inaccessible.
I immediately held the power button until it turned off, and haven't turned it on since, in fear of doing something worse to my computer.
My questions:
C:
partition wiped, or is it just my boot partition? I suspect it was the C:
driveā¦C:
drive before I perform any rescue attempt, so I can do more than 1 attempt to recover my data. Is this even possible, and can I actually use this to actually do multiple rescue attempts?C:/Users/MyName/Libraries/Documents/Compositions
folder. These files have a weird extension (.mscz
), which I doubt certain file extension-sensitive data recovery tools can find. Can some tools find files with unknown extensions?C:/Stuff
.C:
drive? If not, can I use these to reinstall Windows 7 after my data is (hopefully) recovered?Specs and other information:
My computer is an HP laptop with Windows 7 64-bit (single boot) a 750GB hard drive (~200 GB unused, 6% fragmented last time I checked. I only need to recover around 2GB of data; the rest I can easily replace). My friend has a fully functioning computer, and I have an external hard drive (1TB) that I can use in the recovery procedure. We both have a couple of USBs that we can use as Live USBs.
Windows doesn't use a separate boot partition, so it probably is C:. It isn't exactly wiped, though - it's just that the filesystem metadata has been overwritten. Most of the contents of the files are probably still there, but inaccessible.
Yes, it's possible and it's a good idea. If it's a 750 GB drive, though, keep in mind that the image will be 750 GB. You'll need a lot of space to do this.
Run dd if=/dev/sda of=<output_filename> bs=16M
(the block size doesn't matter that much, except that it should be a multiple of the disk sector size - I've seen it suggested that it should be set equal to the size of your drive's cache). This will produce a binary copy of exactly what's on the drive. You can, with a bit of fiddling, generate a VMware or VirtualBox image from that, which you can run recovery tools on.
The extension matters not at all. Some file-recovery programs work on certain file types by detecting the structure of the file itself (or maybe just magic numbers in the headers) - obviously if the program isn't written to recognize a certain file type, it won't work regardless of the extension.
This is unlikely to make any difference.
Try TestDisk.
The System Restore points may or may not be intact, but you won't be able to recover a full OS installation from those. You'll probably have to find actual installation media.
These might allow you to to restore the OS, or they might not (recent recovery disks tend to only be helpful in recovering drivers and whatever bloatware the manufacturer installed). In any event, don't try to use them until you've recovered all the data you can.
Best free apps for this:
I have used both many times. Connect your hard disk in another system and try to recover lost partition.
User contributions licensed under CC BY-SA 3.0