To install them I create a / and a /home partition for each distribution, but the EFI boot partition which is created by W8 at the beginning of the disk is unique.
Looks good to me, I would have done the same.
Is there any problem with installing various linux bootloaders in the same boot partition (maybe because kernels get mixed or something)?
There are usually no kernels on the EFI partition. Regarding Ubuntu there are some EFI applications (the bootloader) and minimal grub.cfg files involved that point to the corresponding root partition and the individual complete grub.cfg maintained by update-grub
.
Ideally both installs should have created different folders in \EFI\
(mounted as /boot/efi/EFI
) like ubuntu
and ubuntustudio
and os-prober
should have properly detected other existing operating systems. If there is an issue with the complete grub.cfg having malformed entries, then we need to take a closer look that this file.
Is there any problem with installing various linux bootloaders...
Sorry I digress. Yes, I know that installing Ubuntu several times (on separate disks) on a T530 like mine causes issues with the boot order entries in the firmware menu (another installation of Fedora has no problems, just the 2 Ubuntus interfere with each other).
If all OS are on one partition, so you can't boot them even if a default loader exists, then a possible workaround is to create a configuration in the default space that can boot all installed OS.
Install the EFI loader with the removable option:
grub-install --target x86_64-efi --removable /dev/sda
Edit the newly created config file (nano /boot/efi/EFI/boot/grub.cfg
) and replace the content with matching menu entries like this for example:
set timeout=3
menuentry 'Ubuntu' {
chainloader /efi/ubuntu/grubx64.efi
}
menuentry 'Ubuntu Studio' {
chainloader /efi/ubuntustudio/grubx64.efi
}
menuentry 'Windows' {
chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
menuentry 'Firmware Setup' {
fwsetup
}
Select to boot from the harddisk instead of an OS entry.
If that doesn't work, pick the grub-mkimage
line from my answer in UEFI machine doesn't boot Ubuntu through NVRAM bootcatalog. How to fix? and copy the resulting bootx64.efi
to /boot/efi/EFI/boot/
.
If there doesn't exist a folder for each OS in /EFI/
make a copy of the existing Ubuntu and replace the UUID of the root filesystem with the UUID of the actual root filesystem in grub.cfg of that folder.
If you need secure boot fucntionality rename EFI/boot/bootx64.efi
to EFI/boot/grubx64.efi
, copy EFI/ubuntu/shimx64.efi
to EFI/boot/bootx64.efi
and replace grubx64.efi
with shimx64.efi
in the example above.
Helpful questions: