I have finally installed Ubuntu on my second drive. When I start my computer GRUB only offers me to boot Ubuntu, not Windows 7. What needs to be done so that I can choose between Ubuntu and Windows in GRUB?
When I press F12 for boot menu at startup and I choose Windows Boot Manager
it boots into Windows 7.
I ran command sudo fdisk -l
and here is log (http://pastebin.com/Cgv1igHc):
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xc3ffc3ff
Device Boot Start End Blocks Id System
/dev/sda1 1 1953525167 976762583+ ee GPT
Partition 1 does not start on physical sector boundary.
Boot Ubuntu and mount your Windows partition (simply open the disk on Nautilus)
Run the following on the command line (Ctrl+Alt+t):
If your Windows installation was found, you can run:
Note that step 2 is just for your convenience. You could just mount the Windows 7 partition and then run
update-grub
.Related question
If the
os-prober
method above doesn't work try adding a custom grub menu entry. Documented here.First two steps are for finding your
<UUID>
.lsblk
and find the name of the row with/boot/efi
Example output (here the answer is sda2):
sudo blkid /dev/sdaX
wheresdaX
is the answer from previous step (sda2
in my case).Example output (here the answer is 58E4-427D):
/etc/grub.d/40_custom
:sudo update-grub
and reboot.I had Windows 10 running and then tried dual boot. Once Ubuntu was installed, Win 10 wasn't showing up in my GRUB loader. I tried the following --
Worked out pretty well. Was able to find both Windows and Ubuntu in GRUB after that.
I solved a similar problem following steps of Boot-Repair
Install boot-repair
Push "Recommended repair" And put in a terminal some commands as it suggested.
I think my Grub doesn't recognize windows due to a bad shutdown, and it solved the problem.
Slightly different method as I copied from a working example on another computer, posting for my own records.
Append the following to
/etc/grub.d/40_custom
:where
<boot_efi_uuid>
is the UUID of your/boot/efi
partition. To find this:Then of course, once you're saved the file, run:
Reboot, you should now be able to successfully start up Windows.
If you have previously had a RAID installed that may be causing issues. In my case, I built my desktop in 2010, and I installed two 1.5 TB with a striped RAID. User gracemercy54 mentions here that this is left over metadata from the former RAID configuration.
When I originally tried the steps by Hermes I got an error specifying "wrong number of devices in a RAID set." So, if this happens to you open a terminal and run:
That fixed this for me.
I had the same problem with Windows 10. I installed Linux Mint 18.1 Cinnamon 64-bit on my laptop for dual boot with WIN10. After the installation GRUB only offered to boot Linux but not Windows.
I found the video solution for windows 10 missing from grub menu and the forum thread Grub not recognizing Win10 after Update/Repair, but unfortunately neither worked for me so I used a combination of these two to resolve my problem.
Open your terminal and follow these commands and open the file named 40_custom:
Add these lines to the end of the file and then save and exit:
After you save the file update your GRUB with this command:
Then restart your machine to see if it works.
Hope this will work for others too!
I had issues like here above and the solution was just to add manual entry as below:
where UUID above (688E...) was taken from boot windows disk via
blkid /dev/sdb1
.ATTENTION: the additional line
refers to
sda
which is visible under Ubuntu as/dev/sdb
even actually it is the first disk in sata bus while/dev/sda
is in fact second drive mounted as root/
.Maybe that is why grub scripts could not work properly. I had no time to change the physical order of disks but it is quite possible it would help to resolve the issue, too.
I had the same problem and had spent 2 days figuring it out. But today I had this sudden idea in the morning and it worked out.
You should review your bios/uefi settings. In my case I had to let Uefi boot first. Otherwise I wasn't able to detect windows from ubuntu. What I had to set was ubuntu > Windows Boot Manager > DISK1 > DISK2 > DISK3. Insted DISK1 > ubuntu > Windows Boot Manager > DISK3.
I had 2 ubuntu installations one on hdd and one on ssd. Apparently ssd installation wasn't showing as UEFI for some reasone but I wanted boot faster disk first.
I wasn't expecting that order of boot can influence grub in detecting systems. So it is worth to review that.
I had the same issue after I installed the updates from ubuntu. The following commands worked for me perfectly:
First install os-prober to detect windows and then update grub: