The scene:
Three weeks ago my computer went to the repair shop. For security and access to my data I kept the hard drive and put it in a cheap laptop. The drive has Gentoo, Mint Linux 17.1, and Ubuntu 14.04.
The cheapie came with Windows 8.1 and UEFI. I removed its drive, disabled UEFI secure boot, and put my hard drive in.
Mint and Ubuntu booted, but Gentoo just gave me a blank screen.
I used Mint, and, during the 3 weeks, updated it. Mistake!
The problem:
Mint has somehow captured the boot process. I cannot get grub2 to use the grub.cfg I create in Gentoo.
I have tried
Code:
grub2-install /dev/sda
grub2-mkconfig -o /boot/grub/grub.cfg
from within Gentoo, but when I reboot I get the Mint configuration missing the kernel just installed. I have to boot Mint and run grub2-mkconfig from there.
How do I get control back with Gentoo?
Thanks
The computer is an HP Pavilion dv6 and the disk has GPT partitioning.
Code:
/ # efibootmgr
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 3003,3004,2002,2001,2003
Boot0000* Notebook Hard Drive
Boot0001* Internal CD/DVD ROM Drive
Boot0002* Internal CD/DVD ROM Drive (UEFI)
Boot0003* Ubuntu
Boot0004* gentoo
Boot2001* USB Drive (UEFI)
Boot2002* Internal CD/DVD ROM Drive (UEFI)
Boot3003* Internal Hard Disk or Solid State Disk
Boot3004* Internal Hard Disk or Solid State Disk
I tried changing BootCurrent to 0004 but that had no effect.