Thursday, August 18, 2011

Recover back booting problem with Windows 7 after removing Ubuntu

Hi all,

Another thing I would share here based on my recent experience. I have installed Ubuntu 11.04 earlier using boot cd long ago and it was installed in a different partition in a different disk. Yesterday I thought of uninstalling it but based on my search, if it is installed using boot cd, we need to delete the partition where the Ubuntu is installed. So i proceed to delete the partition with disk management utility in Windows 7. After that, when i reboot the machine, it is unable to boot to Windows 7, it shows some error and "grub rescue>" DOS command. Tried some commands but didn't work.

So at last i inserted my Windows 7 dvd to the dvd drive, boot the machine using the cd and try to repair it. In the first screen that appear, there is an option to install windows, below it there is options to "repair your computer". Click on "repair your computer". Once clicked, it will go to another screen with options to repair such as memory recovery, startup recovery and so on. Click on open command prompt. Once a command prompt is opened, type in "bootrec.exe" without the quotes and press enter. It will show the options you can use under that command to fix issues and descriptions about it. For me, i did all of it. Example, the first option that is displayed there is /FixMbr to fix the master boot record. So type in "bootrec.exe /FixMbr" without the quotes and press enter. There will be a result of the command execution displayed at the command prompt screen itself. Do the same thing by changing the term after / with the other 3 option that is displayed. Example the next one would be "bootrec.exe /FixBoot". After all command is executed, you can reboot your machine and see that it will boot fine with Windows 7.

Hope I can share this tips to everyone out there!

No comments: