Dual Boot RHEL 7.4 and Windows 10
I bought a new laptop. I wanted to dual boot Windows 10 and linux although it is unsupported. I installed CentOS 7 which worked but didn't allow me to boot into Windows 10. So I did a clean reinstall of Windows 10 then installed RHEL 7.4. The RHEL installation seemed to go well. I chose default to get automatic partitioning and entered other values as required. It seemed to install but upon boot I don't get a grub menu offering a choice of linux or win 10. I booted into the rescue environment and ran grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg. It shows 5 lines saying that it has found everything but still no grub menu upon reboot. I'm lost. Would a reinstall of RHEL work? Any help would be appreciated.
Responses
Hi Richard,
Say, please examine this other discussion https://access.redhat.com/discussions/2908301 where some info on this might be useful.
From what I recall in the times (in the distant past) when I did dual boot, that I did install windows first as you did, then Linux. I'll see if I can come up with any more, but hopefully something in that other discussion might help
Regards,
-RJ
There's a chance this youtube video https://www.youtube.com/watch?v=0fCA7ToywoY might be similar to what you mentioned. One person said they had to remake the config. Examine the video itself, but also read the replies. This one seems to possibly be useful https://www.youtube.com/watch?v=iwwRd_oVaJA.
I see you've done some of this, but examine it and let us know how it goes.. someone ought to chime in and help.
Hi Richard,
RJ is right, you most probably will find the solution in the other thread. Among the instructions there is what is important in your case - you said : "I chose default to get automatic partitioning ..." That means you have 'wiped' the whole disk to be used for RHEL exclusively. Please create the partitions with GParted before installing a system - then first install Windows and afterwards RHEL.
In both cases select manual (custom) partitioning, disable Secure Boot, and also disable Fast startup and Hibernation in Windows. Shutdown the machine completely, boot to BIOS and select RHEL as default system. Now everything should work as expected. :)
Regards,
Christian
Hi Richard,
Every operating system has its own boot loader which gets installed to a separate folder on the EFI partition, so
grub2-mkconfig -o /boot/efi/EFI/Microsoft/Boot/grub.cfg makes 'no sense'. The correct command would be sudo grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg. The reason why the machine boots directly to Windows is that in Windows most probably Fast startup and Hibernation is enabled (default setting after fresh installation). Disable Fast startup in system settings, disable Hibernation with powercfg -h off (command prompt as administrator). Shutdown the machine completely (don't reboot). Then start the machine, boot into BIOS and select RHEL as default system. In case there are wrong entries in the boot menu options, you can check this with sudo efibootmgr -v. You can delete the wrong entries with sudo efibootmgr -b <ID> -B (ID = e.g. 0003). :)
Regards,
Christian
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
