Caramel wrote: Tue Feb 06, 2024 5:58 pm
Ngungu wrote: Tue Feb 06, 2024 3:56 pm
I have EndeavourOS (= Arch-based) installed, which uses Grub2.
I put EasyOS on a stick — works fine. Now I want EasyOS installed on my SSD, so I installed the 3 files in the ext4 partition.
I hadto put the boot folder in the boot/esp partition, but there is already the boot folder from Endeavour.
So I tried to fool the system by replacing Endeavour's bootx64.efi
by EasyoS's BOOTX64.EFI
in the boot folder. But when boot the computer the normal way the Grub menu is still there and does not show EasyOS. I put bootx64.efi
back.
How can I get EasyOS in the bootloader menu? I don't mind if Grub is replaced by Limine, as long as Limine will show EndeavourOS too.
You can install limine without remove the bootloader of Endeavour. Limine should be in another directory of the esp partition.
But here the easiest is to add EasyOS at the grub menu :
Source : https://easyos.org/install/easy-frugal- ... ation.html
You could add a stanza in the file /etc/grub.d/40_custom (in Endeavour) :
menuentry "EasyOS " {
insmod ext2
insmod search_fs_uuid
search --no-floppy --fs-uuid --set=root UUID
linux /DIR/vmlinuz rw wkg_uuid=UUID wkg_dir=DIR
initrd /DIR/initrd
where UUID is the uuid of the ext4 partition where is located EasyOS and DIR is the diectory where are the 3 files (easy.sfs, vmlinuz and initrd)
NB you can get the uuid with the command blkid /dev/sdaX where sdaX is the ext4 partition
Then update grub.cfg with the command update-grub if it exists, if not with grub2-mkconfig -o /boot/grub2/grub.cfg (or /boot/grub/grub.cfg if grub.cfg is located in /boot/grub/)
I did all that, to no avail.
The Grub update gave this as a result:
Code: Select all
[sudo] password for ngungu:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: intel-ucode.img initramfs-linux-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
error: out of memory.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 155
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
Notice the the 3 files are detected, but there are errors so Grub did not update.
I then deleted the code that you recommended for 40_custom, and updated grub again. This time there were no errors and the 3 files were still recognized.
Code: Select all
sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: intel-ucode.img initramfs-linux-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done
But a reboot still did not show EasyOS in the bootloader menu.
Then I again read this phrase you wrote: "… where is located EasyOS". That made me realize I had not installed EasyOS. But I am now completely confused because on the webpage you linked to it says this:
"To install EasyOS to the ext4 partition on the computer internal drive, copy those three files 'vmlinuz', 'initrd' and 'easy.sfs' across.
In the ext4 partition of the internal drive, create a folder, say "easyos", or, you could go deeper, say "easyos/dunfell", then copy those files into it.
Hey presto, EasyOS is installed!
Yes, that is all there is to it. EasyOS is installed in what we call "frugal mode", which only occupies one folder in the partition. Thus, the rest of the partition is available for anything else."
I had done this and was under the impression I had installed EasyOS, albeit in frugal mode.