Ubuntu – Grub2 and os-prober not detecting the Windows 7

dual-bootgrub2windows 7

I erased my old Elementary OS and replaced it with Ubuntu 14.04.

I also have a Windows 7 install on a different drive, which was working fine under Elementary OS (which is based on Ubuntu 12.04) . However, the drive didn't get detected upon install and it is still not being detected.

I tried other similar responses but couldn't find a solution. This is the output of bootinfoscript http://paste.ubuntu.com/12179868/

So far, I tried:

Uninstalling and installing os-prober. Still same problem, no output when running it.

Creating a manual entry on /etc/grub.d/40_custom

menuentry "Windows 7" {  
     insmod ntfs  
     set root='(hd0,1)'  
     search --no-floppy --fs-uuid --set 94A47FB5A47F9906  
     chainloader +1  

Is the configuration correct? I run update-grub after editing the file but I get the error "Invalid EFI file path" when trying to boot it.

Best Answer

I finally found a solution to my problem that didn't involve deleting my Windows partition. As other pointed out, the problem was that my Windows install was a legasy BIOS startup, while Ubuntu was now using UEFI, which is incompatible.

The solution was to convert Windows install to UEFI. The only required things were the Windows install dvd (or a booteable UEFI pendrive) and a working Ubuntu.

First, convert your Windows partition to GDP

sudo gdisk /dev/sdX
Command (? for help): w

where sdX is the windows drive.

Then, boot your Windows install disk and, from a Command Prompt, run the steps detailed on this link starting from step 7. This will replace the existing BIOS boot partition with a UEFI boot partition.

After these steps are done, you can run

sudo update-grub

to update your startup menu.

Related Question