After installing a Kubuntu on a second hard drive, it changed the boot order of my main hard drive GRUB and I can't change it back since.
Any change to the grub configuration file (/etc/default/grub
) applied with update-grub
has no effect.
The update-grub
change the /boot/grub/grub.cfg
file correctly, but does not modify any file in the /boot/efi/
directory, while this should happen since the mounting point of my GRUB is boot/efi
.
I thought it was due to write
permission, but I checked, root
has write
permission over these files.
The output of the sudo update-grub
command:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-33-generic
Found initrd image: /boot/initrd.img-4.15.0-33-generic
Found linux image: /boot/vmlinuz-4.15.0-32-generic
Found initrd image: /boot/initrd.img-4.15.0-32-generic
Found Ubuntu 18.04.1 LTS (18.04) on /dev/sdb2
Adding boot menu entry for EFI firmware configuration
done
Content of the /etc/default/grub
file:
GRUB_SAVEDEFAULT=true
GRUB_DEFAULT=saved
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
EDIT, IMPORTANT:
It seems like the GRUB is only affected by configuration at booting time by reading the configuration file. So, if I understand, mine is loading its configuration on the Kubuntu partition. But how can I change this behavior? This question has already been asked but not correctly answered.