How do I install Windows7 into the boot menu of grub2 on a dual boot system with both Windows7 and a 64-bit openSUSE-13.1 ? This is an EFI/GPT system. Normally this is done by default by the openSUSE installer, but in this case, the installer did not find the MS-Win7.
As part of my failed effort to figure this out, I spent a small amount of time trying to add Windows7 by using the YaST boot menu item, and even tried the updateGrub2 script (which added a 05_menu_colour theme that caused worse boot problems, until file removed).
os-prober does not detect windows7. But if I press F12 upon booting, select windows7 in the firmware boot menu, then windows7 boots fine.
I manually created the EFI partition myself , prior to the win7 install, which ‘may’ have caused the problem < not sure >
The PC has an HD which is sda and an SSD which is SSD. All executeables are on SSD. The EFI partition is locate /sdb1 . The MS-Windows is sdb3. The openSUSE-13.1 is sdb5.
Some info supporting the above words:
4770:/home/oldcpu # gdisk /dev/sdb -l
GPT fdisk (gdisk) version 0.8.7
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 500118192 sectors, 238.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): B4EBD075-E09E-4F8D-92A7-39903D1A5DB8
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 500118158
Partitions will be aligned on 2048-sector boundaries
Total free space is 154727021 sectors (73.8 GiB)
Number Start (sector) End (sector) Size Code Name
1 2048 534527 260.0 MiB 0700
2 534528 796671 128.0 MiB 0C01
** 3 796672 140060671 66.4 GiB 0700 Basic data partition**
4 140060672 140593151 260.0 MiB 0700
** 5 140593152 242993151 48.8 GiB 8300 **
6 242993152 294193151 24.4 GiB 8300
7 294193152 345393151 24.4 GiB 8300
I note this from efibootmgr -v :
4770:/home/oldcpu # efibootmgr -v
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0004,0003,0005,0009,000A,0002,0001,0000
Boot0000* TSSTcorp CDDVDW SH-222BB BIOS(3,0,00)AMBO
Boot0001* ST2000DM001-1CH164 BIOS(2,0,00)AMBO
Boot0002* SanDisk SD6SB1M256G1022I BIOS(2,0,00)AMBO
**Boot0003* opensuse HD(1,800,82000,4fc1f61d-b032-4cbd-9eda-3dc1a71c5908)File(\EFI\opensuse\grubx64.efi)
Boot0004* opensuse-secureboot HD(1,800,82000,4fc1f61d-b032-4cbd-9eda-3dc1a71c5908)File(\EFI\opensuse\shim.efi)
Boot0005* Windows Boot Manager HD(1,800,82000,4fc1f61d-b032-4cbd-9eda-3dc1a71c5908)File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
**Boot0009* UEFI: ST2000DM001-1CH164 ACPI(a0341d0,0)PCI(1f,2)03120a000000ffff0000HD(1,800,80000,cde86124-7fda-4269-bb4d-ccc36efdf3b9)AMBO
Boot000A* UEFI: SanDisk SD6SB1M256G1022I ACPI(a0341d0,0)PCI(1f,2)03120a000100ffff0000HD(4,8592800,82000,a7f589cf-be23-44a2-9725-0738d992c876)AMBO
By default the desktop PC boots to openSUSE.
But there is no Win7 entry in the grub2 menu. I currently can only boot to win7 if I press F12 immediately upon booting, to obtain the UEFI boot menu, and select from win7 there.
I note win7 does not show up when os-prober is run. In that case all I get is:
4770:/home/oldcpu # os-prober
No volume groups found
where nominally I think I should expect to see something under the “No volume groups found” entry. I’m wondering if my custom FAT32 as EFI hack caused this hiccup ?
I don’t know enough about grub2 to fix this. This is also definitely NOT a ‘drama’ as I rarely boot to windows. Rather its more a point of curiousity and also my wanting to learn, and to better tune the system.
.