I recently installed debian 7 after booting it from my pen drive. Then i did some mistake while installing it. Well, Debian is not installed. And when I rebooted my system it says- No boot device found.
Then I installed ubuntu 12, after installing it on my second separate partition, I rebooted after I installed ubuntu in it.
After rebooting, boot manager of ubuntu opened up, option of windows7 also came up, i selected that option and my windows 7 opened up successfully, and I formated my whole drive which contained ubuntu. My question is- How to delete ubuntu boot manager and install windows boot manager?
11 Answer
All you need — repair Windows boot loader.
Boot From the Windows Installation Disc
The first thing you’ll need to do is boot off the install disc, and then click through until you see the "Repair your computer" link in the lower left-hand corner.
You’ll need to choose the correct installation of Windows and then click the Next button.
And then you’ll get to the System Recovery Options screen.
Choose "Startup repair. Automatically fix problems..." option and click Continue
Choose your Windows installation drive’s letter (usually C:) and click on Automated Repair
Easy Recovery Essentials will now begin to fix the error automatically.
If start-up repair cannot repair your computer automatically return to 4 - You need manually repairing the Master Boot Record
Choose "Command Prompt" options.
You need restore the master boot record. Simply type in the following command:
bootrec /fixmbr
Then you need write a new boot sector onto the system partition with this command (which is often more useful):
bootrec /fixboot
And then
bootrec.exe /rebuildbcd
And of course, if you just use bootrec /? you’ll be able to see all the options.