I used to have Ubuntu as my only OS until I decided to get a new SSD and installed CentOS there. Now upon starting my computer I can't start Ubuntu without modifying the entry for Ubuntu first. I know how to do that, basically I change where it says:
linux /boot/vmlinuz...
initrd /boot/initrd.img...
to
linuxefi /boot/vmlinuz...
initrdefi /boot/initrd.img...
However, I need to make this change every time I want to start Ubuntu, thus my question: how do I make this change permanent?
I read this and this threads, but I'm not sure if the changes should be made in:
/boot/efi/EFI
or
/boot/grub/
or
/boot/grub2/
I can't also find the file with the exact line I change every time upon starting my computer. I suppose the file is named something like grub.cfg. In any case, I wouldn't like to tinker with one of those files without knowing 100% that I won't mess things up further. Also, should this change be made in Ubuntu or CentOS?
Any help would be greatly appreciated. Thanks!
PS: please note that Ubuntu and CentOS are installed in different SSDs, if that matters at all.
sudo update-grub
? – Andrew Shum Nov 10 '17 at 23:53sudo efibootmgr -v
&man efibootmgr
Ubuntu puts a tiny 3 line grub.cfg in /EFI/ubuntu to configfile (chain) to full grub.cfg in your Ubuntu install. Other distributions may put the full grub.cfg in the ESP in their /EFI/Distribution or /EFI/grub2 folders. If you want lots of detail of configuration run this: Post the link to the Create BootInfo summary report. Is part of Boot-Repair: https://help.ubuntu.com/community/Boot-Info – oldfred Nov 11 '17 at 14:59