I just installed Ubuntu alongside to Windows 7, and now Windows 7 will not boot.
When the system starts, it shows me entry for Windows 7 in the boot menu, when I click on the Windows 7 option in the boot menu, after few seconds it will show me the boot menu again and Windows will not boot. It shows me no error message. Windows 7 option is available in the boot menu but it just does not boot.
Here are my boot info results http://pastebin.com/ga9xjQYh
update - 30/01/2012 I tried windows recovery - fix startup issues - that showed no problems but issues were not resolved
Then I tried the widnows recovery console and run following commands
bootrec /fixboot
bootrec/ fixmbr
bootrec /RebuildBCD
But that does not help, Now neither ubuntu nor windows will boot. When I boot from windows CD it shows me a valid windows installation in c:\ drive.
update After a lot of help I got from #ubuntu channel and trying out different things, ultimately I can now boot both windows and ubuntu, still, the issue is not completely resolved though.
Here's what made it work
Boot using ubuntu live CD and then run the testdisk utility as steps mentioned here Restart system and I was able to see the boot menu and boot into Ubuntu, then put the following code in boot/grub/custom.cfg. Restart and now I can see one more entry to boot win7, clicking on it boots windows.
menuentry "Windows 7 (loader) with grub ntldr workaround" --class windows --class os
{
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root FAF0F57DF0F54085
ntldr /bootmgr
}
It will make windows boot probably but now windows have a dependency on Ubuntu and I can not remove Ubuntu or else windows will stop working.
Credit goes to 'Jordan_U' on #ubuntu channel.
update Here are the win7 boot details I got from EasyBCD
Windows Boot Manager
--------------------
identifier {9dea862c-5cdd-4e70-acc1-f32b344d4795}
device partition=C:
path \bootmgr
description Windows Boot Manager
locale en-US
default {04fe8f95-4b17-11e1-a45c-909d3d25f938}
displayorder {04fe8f95-4b17-11e1-a45c-909d3d25f938}
timeout 30
Windows Boot Loader
-------------------
identifier {04fe8f95-4b17-11e1-a45c-909d3d25f938}
device partition=C:
path \Windows\system32\winload.exe
description Windows 7 Home Premium
locale en-US
osdevice partition=C:
systemroot \Windows
resumeobject {8d25a443-4b0a-11e1-a835-806e6f6e6963}
Note Still, I am looking for how can I have everything clean and how can I boot windows without having a dependency on Ubuntu. so that if ever I have to remove ubuntu, windows will keep booting file without ubuntu.