I've installed ubuntu, but now i can't boot to windows. Here is my boot repair output.
How can i solve this problem?
I've installed ubuntu, but now i can't boot to windows. Here is my boot repair output.
How can i solve this problem?
try this solution:
First boot on your Windows installation DVD and navigate to the section repair your computer
if it finds your Windows installation, make sure it is unselected
before clicking next, then click on Command prompt
and run:
bootrec.exe /fixboot
bootrec.exe /fixmbr
then reboot and remove your installation DVD
if you don't have the installation DVD you can get Windows repair disk (Win7 example) manually created.
Just in case if after all facing any issues yet check on this
You've got a mixed-mode (BIOS/EFI) installation: Windows is installed in BIOS/CSM/legacy mode on /dev/sdb
and Ubuntu is installed in EFI/UEFI mode on /dev/sda
. (Most such mixed-mode installations go the other way around.) Getting dual-boot working with OSes installed in differing modes is awkward at best and impossible at worst.
Given that Windows is less flexible that Linux on this score, my recommendation is to install a BIOS-mode version of GRUB for Linux. Try it this way:
parted
, or gdisk
, create a ~1MiB partition at the very end of the disk. If you use GParted or parted
, give it a bios_grub
flag. If you use gdisk
, give it a type code of EF02. It's possible that GParted and/or parted
will balk at creating such a small partition, but gdisk
will definitely do it.At this point, you should be able to boot into both Linux and Windows in BIOS mode, with GRUB controlling the boot process. You might need to fiddle with your boot options to get a BIOS/CSM/legacy-mode boot to work as the default, though.
Unfortunately, some EFIs have bugs that can complicate matters with BIOS/CSM/legacy-mode booting from GPT disks. Check this Web page if you have problems getting GRUB to come up in BIOS/CSM/legacy mode. In a worst-case scenario, you might need to convert /dev/sda
from GPT to MBR.
The alternative to this is to convert Windows to boot in EFI mode. This will require converting /dev/sdb
from MBR to GPT and installing an EFI-mode Windows boot loader. This process is described here, in case you want to pursue it.