HP Pavilion 17 Notebook PC

HP Pavilion 17 Notebook PC is a bit compicated with bootloaders. It has not option for choosing linux-bootloader grub, even if grub would be installed to the EFI-partition. A simple trick is to rename Windows’s bootmgr.efi file from /EFI/Microsoft/Boot folder and copy ”ubuntu’s” grubx64.efi and grub.cfg files from /EFI/ubuntu folder and rename grubx64.efi as bootmgr.efi

After that grub-menu appears and you can boot into linux, where you need to run

sudo update-grub

That makes in Pavilion 17 a grub-menu, which is far too long, so I edited the menu by hand and write-protect /boot/grub/grub.cfg file.

PS. I tried to repair bootloader using BootRepair-USB, but even it did not get the boot menu in Pavilion 17.

PS2. This happens if you do a dualboot, without dualboot, there should not be any hassle.

For getting to edit EFI-partition, you need to mount the partition first, which goes something like

omistaja@omistaja-HP-Pavilion-17 ~ $ sudo blkid
[sudo] password for omistaja:
/dev/sda1: LABEL=”WINRE” UUID=”64FCD3A7FCD371B2″ TYPE=”ntfs”
/dev/sda2: UUID=”0AC0-86A7″ TYPE=”vfat”
/dev/sda4: LABEL=”Windows” UUID=”82D89F39D89F2A85″ TYPE=”ntfs”
/dev/sda5: UUID=”5CCE5C69CE5C3E08″ TYPE=”ntfs”
/dev/sda6: LABEL=”RECOVERY” UUID=”B6EED035EECFEC25″ TYPE=”ntfs”
/dev/sda7: LABEL=”mint17″ UUID=”1b9b033d-0123-4a3b-b75a-0a25be170620″ TYPE=”ext4″
/dev/sda8: UUID=”8a345b8f-3582-4f97-8167-54352b5d8108″ TYPE=”swap”
/dev/sda9: LABEL=”koti” UUID=”0eebb06b-a733-49a2-9e08-7ed0af159ec8″ TYPE=”ext4″
omistaja@omistaja-HP-Pavilion-17 ~ $ sudo mount /dev/sda2 /mnt
omistaja@omistaja-HP-Pavilion-17 ~ $

HP_Pavilion

bootmgr.efi

EFI folders

EFI-partition