You are not logged in.

#1 2017-05-26 20:34:13

jimarch1669
Member
Registered: 2017-03-15
Posts: 1

i have two GRUBs

Hi,
So I have a coexistence of Arch with Ubuntu 16.04 (installed before Arch).
Before I install Arch, I already had a "GNU GRUB version 2.02~beta2-36ubuntu3.2" (verbatim title from my GRUB menu).

And that GRUB has Ubuntu as default, so my goal here is: have Arch as default && eliminate the GRUB menu as default (so it assumes I'll start with Arch unless I press SHIFT or so).
Then I realized that I have two GRUB installations:
$UBUNTU_DEV/boot/ <--> /dev/sda1
$ARCH_DEV/boot/      <--> inside the ubuntu "/" device
where:
$UBUNTU_DEV = "/" device of ubuntu
$ARCH_DEV      = "/" device of Arch

BUT, both OS's boot with common partition mounted at the same path:
/dev/sda3 <--> /boot/efi

I know, it's a mess... I don't remember what I was thinking.
So I figure maybe by re-installing grub from my booted Arch (as the wiki suggests):

# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub
# grub-mkconfig -o /boot/grub/grub.cfg

After this, I reboot and my new grub didn't show up. My old grub appears.
So I tried:

cp /boot/efi/EFI/grub/grubx64.efi /boot/efi/EFI/boot/bootx64.efi

Funny fact: After I enter && exit from BIOS config at boot time, my "new grub" appears!!!
Only then does my new grub appear. It does *not* appear by default when I boot.
I don't understand what's going on.

Last edited by jimarch1669 (2017-05-26 20:36:46)

Offline

#2 2017-05-27 11:59:24

shulamy
Member
From: israel
Registered: 2010-09-11
Posts: 470

Re: i have two GRUBs

i stayed with fedora's grub and use the "set default" command every kernel update.

ezik

Offline

Board footer

Powered by FluxBB