| « Garage Storage | Samsung S32D850T Monitor » |
Setting up Dual Boot on an HP Spectre
I have a HP Spectre and due to the BIOS on the system, it is tricky to get it to dual boot properly. Here is what ultimately worked for me:
On my HP laptop I did as follows, step by step:
1 - Boot into Mint with F9
2 - Check where Windows boot loader is located
sudo efibootmgr -v
In my case /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
3 - Backup .efi file:
sudo cp /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi /boot/efi/EFI/Microsoft/bootmgfw.efi
4 - Replace original .efi file by the ubuntu one (the trick):
sudo cp /boot/efi/EFI/ubuntu/grubx64.efi /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
5 - Add windows 10 menu entry on grub. In my case, I wanted this to come first to match my other boot machines. Create /etc/grub.d/27_ssz_custom with the following lines:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager SSZ(on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-DAF7-1754' {
savedefault
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root DAF7-1754
chainloader /EFI/Microsoft/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
6 - Save 27_ssz_custom and:
sudo update-grub
7 - On bios Disable Secure Boot (I'm not sure if it is needed)
8 - If everything went right, it will boot on mint by default and windows 10 will be another option on grub.
Here are some links about it:
Dual Booting an HP Spectre with Arch Linux
Dual Booted PC skips Boot Menu, directly boots Linux Mint [duplicate]
Problems with installing grub on Linux/Windows dual boot NVMe
How to install or reinstall Grub
Fix Grub | Windows and Linux Dual Boot | Unable to Boot Linux | UEFI GPT
HP BIOS not properly recognizing Linux partition for boot order
Fixing UEFI boot order on HP Stream 14
How do I get my HP laptop to boot into grub from my new efi file?