I have a Dual Boot boot system Running Ubuntu 12.04(LTS) and Windows & Home Premium(x64).
The other day i was booted into ubuntu and had to use gparted to partition and format a flash drive to use with my Pogoplug-B01. And i by-mistake formatted the windows boot partition . Oops. I restarted my system and could not boot into windows! For me Windows is like a necessary Evil . Its where all my games reside! All for the other programming related stuff i use ubuntu. So i needed to get the windows partition up and running.
Also before you go ahead i would recommend you take a backup just in case anything goes wrong by booting into the system by a ubuntu live CD.
This can only be used to repair a system where the boot partition is either formatted or is corrupted. This would not work if the main system partition containing the OS itself is damaged.
Starting Windows Vista Microsoft made the boot partition a separate partition (generally 100MB)from the partition containing the actual OS files.
Step 1 Get the appropriate WIN 7 recovery Image from here.
Step 2 Create the CD/DVD or the USB stick(Skip to Method 2 in this Link )
Step 3 Without the boot sector When you turn on your computer u will get a ‘no Operating system Found’ error . So you will need to set your boot drive to the DVD or the USB drive Depending upon whta media you are using.
Step 4 Once you Boot into the Repair Disk Hit Startup Repair. If that fixes the issue. you are all set! But for me that was not so Easy. I Selected the Command Prompt Option the type in the following commands and hit enter after each command
select disk (followed by the number of the OS disk; most likely 0)
select partition (followed by the number of the Boot partition; most likely the 100-200Mb partition)
Step 5 Now again type
select disk(followed by the number of the OS disk; most likely 0)
make Sure there’s a star(*) against the selected boot partition
then type format and hit enter. This will format the boot partition to NTFS.
Step 6 Now to repair the boot partition make the boot partition active by repeating the STEP 4
next enter following commands and hit enter after each command.
Step 7 Now restart the computer with the recovery media plugged in.
now in the recovery options select the ‘Startup Repair’ option. It should b able to fix any other issue with the boot sector and restore it to the optimal state.
Now Restart the computer and this time remember to unplug the media when the system shuts down.
Let me know how i goes in the comments below! 🙂
Best of Luck!
These Posts Were really helpful:
select partition (followed by the number of the OS partition; most likely the largest partition)