3

I have been dual booting for years now and have problem I can't seem to solve myself. As we all know Windows is an arrogant dick, and in my case whenever I chose to boot to it it will, automatically without asking me, alter my boot up settings in my BIOS and make itself de-facto king. Mildly annoying as all I had to do with enter setup, change the boot order and carry on.

Now however it is ALSO deleting the grub entry option in my BIOS, meaning I need to load a Live-USB and perform a boot repair (or what have you) to fix it. Long winded just to fix grub.

Now, several questions:

  1. How do I stop Windows 10 from doing this? (would fix all my problems)
  2. Else, since this never used to happen, is there a way of remaking the Grub boot option in my BIOS without a long winded string of commands to reinstall grub? (why is the grub option now not sticking around)
  3. Would I be better of not using EFI boot options if possible (all of my disks are less than 1TB) if that's possible.

Using an AsRock Z77 Extreme 4 motherboard. Have 3 SSD's laid out like this currently (in case my method is just wrong someone can correct me):

  1. Disk A is 240GB and used for Windows. I left 550MB free for another EFI partition and let Windows do it's thing with the rest of the drive.
  2. Disk B is 120GB and used for root, and it has a 'backup' partition on there (not required by either OS on boot).
  3. Disk C can be ignored essentially, 1 partition, mounted to /home and used only by Linux.

    NAME FSTYPE SIZE MOUNTPOINT LABEL sda 238.5G
    ├─sda1 16M
    ├─sda2 ntfs 237.9G
    └─sda3 vfat 525M /boot/efi
    sdb 119.2G
    ├─sdb1 ext4 62G /media/root/Furnace Furnace
    └─sdb2 ext4 39.4G /
    sdc 477G
    └─sdc1 ext4 477G /home

What do now?

Noki
  • 942

1 Answers1

4

Using 'efibootmgr' I was able to clone my grub entry (a couple of times to be sure) in order to stop this from happening.

efibootmgr -v
Boot0000* Grub - Linux  HD(1,GPT,0a6d5fbb-b2bf-45f9-a81a-9a8de8693dcd,0x800,0x106800)/File(\EFI\ubuntu\shimx64.efi)

I was then able to copy it (make a new one with identical params) like so:

sudo efibootmgr --create --disk /dev/sda --part 1 --write-signature --loader /EFI/ubuntu/shimx64.efi --label "Linux - Grub" --verbose

This obviously doesn't solve the Windows being a dick part (but as mentioned in comments, this is not the place for that).

Thanks, Noki

Noki
  • 942