Page 1 of 1

Boot easyos from anywhere without uuid successfully! (updated)

Posted: Sun Apr 02, 2023 5:43 pm
by Thanos

I write a grub2 menu entry to boot my easyos. It can search the easyos from all disks and all partitions.

I even needn't know where is the easyos, what I need is put vmlinuz,initrd,easyos.sys into a folder named easyos520 and put the folder into any ext4 partition.

In the partition, easyos 520,easyos455,and other version share the space. :lol:

This is the grub2 menu entry:

Code: Select all

menuentry "Auto Find and Boot EasyOS520" {
    ver=520
    search -f /easyos$ver/vmlinuz -s root
    probe  -u ($root) -s uuid
    linux  ($root)/easyos$ver/vmlinuz rw wkg_uuid=$uuid  wkg_dir=easyos$ver
    initrd ($root)/easyos$ver/initrd
}

menuentry "Auto Find and Boot EasyOS500" {
    ver=500
    search -f /easyos$ver/vmlinuz -s root
    probe  -u ($root) -s uuid
    linux  ($root)/easyos$ver/vmlinuz rw wkg_uuid=$uuid  wkg_dir=easyos$ver
    initrd ($root)/easyos$ver/initrd
}

menuentry "Auto Find and Boot EasyOS455" {
    ver=455
    search -f /easyos$ver/vmlinuz -s root
    probe  -u ($root) -s uuid
    linux  ($root)/easyos$ver/vmlinuz rw wkg_uuid=$uuid  wkg_dir=easyos$ver
    initrd ($root)/easyos$ver/initrd
}

menuentry "Auto Find and Boot EasyOS443" {
    ver=443
    search -f /easyos$ver/vmlinuz -s root
    probe  -u ($root) -s uuid
    linux  ($root)/easyos$ver/vmlinuz rw wkg_uuid=$uuid  wkg_dir=easyos$ver
    initrd ($root)/easyos$ver/initrd
}

You can find the files here to test:

https://www.123pan.com/s/juZUVv-TRgsH.html

grub4easy.tar.xz

To do:
1. Copy mydisk/partition2(fat32)/grub.cfg to your esp partition's root.
2. Copy mydisk/partition2(fat32)/EFI to your esp partition's root(Please backup your file first).
3. Copy mydisk/partition1(ext4)/easyos520 to any ext4 partition's root and replace the fake file with yours.
4. Reboot your computer,you will see the grub menu(the picture above)

If your have the easyosxxx folder in any ext4 partition like my example, you can boot it now. All the version of easyos can be in deferent disk and/or deferen partition.


Boot easyos from anywhere with grub2

Posted: Sun Apr 02, 2023 7:22 pm
by williwaw

nice!
I like the simplicity of Limine, but others already using grub2 may find your method useful.

can you share which version of grub2 you are using?
how did you install your grub2 bootloader?

your stanza works for me with grub2config by @shinobar
viewtopic.php?p=85877#p85877


Re: Boot easyos from anywhere with grub2

Posted: Sun Apr 02, 2023 11:10 pm
by Thanos
williwaw wrote: Sun Apr 02, 2023 7:22 pm

nice!
I like the simplicity of Limine, but others already using grub2 may find your method useful.

can you share which version of grub2 you are using?
how did you install your grub2 bootloader?

your stanza works for me with grub2config by @shinobar
viewtopic.php?p=85877#p85877

I updated my post,you can download the files to test.


Re: Boot easyos from anywhere without uuid successfully!

Posted: Mon Apr 03, 2023 1:32 am
by BarryK

That's great!


Re: Boot easyos from anywhere without uuid successfully!

Posted: Mon Apr 03, 2023 2:02 am
by Thanos
BarryK wrote: Mon Apr 03, 2023 1:32 am

That's great!

I like limine very much too, but it can not do this.

I really want to add these funtion to limine.


Re: Boot easyos from anywhere without uuid successfully! (updated)

Posted: Tue Apr 04, 2023 11:20 pm
by Berto

@Thanos and @BarryK

I am happy that my Asus Notebook (core i7, Nvidia graphics) is working again. I have let it repair (screen was broken).

Now I tried to install EasyOS 5.2 (OMG my last version on this device was 2.6 something), but it didn't work coz all partitions are chaotic.

Well, to the point: there is opensuse with xen server installed. Currently I'm using grub2 and will try Thanos' script, but would like to switch to limemine.

Will limemine find the opensuse/xen?

I got so many virtual machines there, it takes long to sort out all interesting data I've collected. would like to just keep it as it is, but install EasyOS as main OS again.


Re: Boot easyos from anywhere without uuid successfully! (updated)

Posted: Wed Apr 05, 2023 12:04 am
by williwaw
Berto wrote: Tue Apr 04, 2023 11:20 pm

Will limemine find the opensuse/xen?

menu > setup > Limine bootloader installer

will scan and generate a list of the operating systems it finds. tick the box for the ones you want menu entries for


Re: Boot easyos from anywhere without uuid successfully! (updated)

Posted: Wed Apr 05, 2023 2:34 am
by bugnaw333

Ever since on my Windows PC Fujitsu laptop and HP EliteDesk, I never had a luck to run Limine bootloader... :( :?
maybe she does not like my Winbloat :shock: :mrgreen:


Re: Boot easyos from anywhere without uuid successfully! (updated)

Posted: Wed Apr 05, 2023 3:05 pm
by Thanos
bugnaw333 wrote: Wed Apr 05, 2023 2:34 am

Ever since on my Windows PC Fujitsu laptop and HP EliteDesk, I never had a luck to run Limine bootloader... :( :?
maybe she does not like my Winbloat :shock: :mrgreen:

Limine is wonderful tool, but it is begining now, many features need to build.

Grub2 is ugly and old, but it is very powerful.