# Windows – How to recover the accidentally-deleted Windows 7 boot partition

boot-partitiondata-recoveryUbuntuwindows 7

I had Ubuntu and Windows 7 installed, but since I never used Ubuntu and it used 130GB of space I decided to delete it. I deleted two partitions and completely wiped the one with the data. The other one – which I believe had the startup – wasn't wiped. By the way, my CD drive doesn't work.

At first I got "error: no such partition" in GRUB. Eventually I managed to put the Windows Recovery Disk on a USB stick and made it bootable using PowerISO. Windows Repair couldn't fix the problem automatically.

I then read some forums and asked somewhere else and they said to download GParted and put that on a USB stick, boot from it, and edit my partitions there. I downloaded GParted and tried to set it up the same exact way I got Windows Repair to work (with PowerISO), but it didn't work.

I formatted it as FAT, FAT32 and NTFS (but exFAT didn't work, that's the only one I haven't tried). I tried a program they recommended called Tuxboot, too, but that didn't work. I always got "error: no such partition". I've tried all the USB slots.

How can I recover the Windows 7 boot partition?

For me, bootsect wasn't there, so I typed in Bootrec.exe /FixBoot and then Bootrec.exe /FixMbr like a link in that link says. Then I restarted my computer and it worked.