How to install grub2 in windows 10/UEFI laptop
Emily Wong
I'm trying to install openSUSE Leap 42.3 on my Lenovo Y600 laptop, dual boot with windows 10. It insists on booting windows, even after trying to re-install grub2. Perhaps the complicating factor is that I have a small SSD as the primary boot for windows, and Linux is installed on the hard drive.
Details:
1. Fiddle with bios to allow boot from DVD.
- Boot mode: UEFI
- Fast Boot: Disabled
- USB Boot: Enabled
- Move USB boot to occur before hard drive.
2. Install openSUSE (windows boots, no grub appears)
3. Follow guides at section 16.6.2.3 to boot the system, and 16.6.2.4 to re-install grub.
When Linux is booted, I see that the SSD entries in /dev are nvme0, nvme0n1, and nvme0n1p1 through nvme0n1p4. The hard drive is the standard sda1 through sda7, with the root at sda7. Thus, I believe the correct command to install grub isgrub2-install /dev/nvme0n1
Doing this, windows boots after I exit.
If I boot the installation DVD and select "Boot from Hard Disk", I geterror: not a valid boot device.
What next?
Edit: uefi boot not showing ubuntu / GRUB seemed like it might be helpful, but no. efibootmgr seemed to create a new entry, but it did nothing. And the entry was gone next time I booted to Linux.
Edit: I gave up. To install and boot Linux, I modify the bios to turn off UEFI. To get back to windows, I modify the bios again to enable UEFI.
4 Reset to default