Now i want to describe, how to created dual boot on my media-box to run libreelec AND xubuntu. First i always install xubuntu on any computer i setup – always the same partition schema.
- Partition is 8GB and labeled SYSTEM
- Partition is 8GB and labeled SYSTEM2
- Partition is 8GB and labeled SWAP
- Partition is REST and labeled STORAGE
On the first 2 partitions i normaly install xubuntu, but i want to change the first to hold the image for libreelec. Boot into SYSTEM2 and download the latest Libreelec…img.gz. Than reformated the first partition as FAT32 and copy the image.
# gzip -d LibreELEC-Generic.x86_64-9.0.1.img.gz
# mkdir /tmp/le1; mount -v -o offset=4194304 -t vfat LibreELEC-Generic.x86_64-9.0.1.img /tmp/le1
# mkfs.fat -F32 -v -I -n 'SYSTEM ' /dev/sda1
# mkdir /libreelec; mount /dev/sda1 /libreelec
# cp -a /tmp/le1/* /libreelec/.
Now create a new grub-boot-option, to boot SYSTEM partition. Therefor create the file: /etc/grub.d/40_libreelec and run the command #update-grub
menuentry "LibreELEC" {
search --set=root --label SYSTEM --hint hd0,msdos3
linux /KERNEL boot=LABEL=SYSTEM disk=LABEL=STORAGE quiet
}
menuentry "LibreELEC debugging" {
search --set=root --label SYSTEM --hint hd0,msdos3
linux /KERNEL boot=LABEL=SYSTEM disk=LABEL=STORAGE debugging
}
The basic configuration on STORAGE is automaticaly created on first boot…



