Boot easyos from anywhere without uuid successfully! (updated)

Moderator: BarryK

Post Reply
Thanos
Posts: 76
Joined: Wed Mar 29, 2023 6:02 am
Has thanked: 2 times
Been thanked: 14 times

Boot easyos from anywhere without uuid successfully! (updated)

Post 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.

Attachments
Screenshot.png
Screenshot.png (34.07 KiB) Viewed 542 times
grub.png
grub.png (33.22 KiB) Viewed 570 times
Last edited by Thanos on Mon Apr 03, 2023 2:25 am, edited 7 times in total.
williwaw
Posts: 1594
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 145 times
Been thanked: 291 times

Boot easyos from anywhere with grub2

Post 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

Thanos
Posts: 76
Joined: Wed Mar 29, 2023 6:02 am
Has thanked: 2 times
Been thanked: 14 times

Re: Boot easyos from anywhere with grub2

Post 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.

User avatar
BarryK
Posts: 2273
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 564 times

Re: Boot easyos from anywhere without uuid successfully!

Post by BarryK »

That's great!

Thanos
Posts: 76
Joined: Wed Mar 29, 2023 6:02 am
Has thanked: 2 times
Been thanked: 14 times

Re: Boot easyos from anywhere without uuid successfully!

Post 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.

Berto
Posts: 127
Joined: Wed Feb 02, 2022 12:42 am
Has thanked: 11 times
Been thanked: 12 times

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

Post 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.

Regards,

Berto

ASUS Netbook, Intel Atom N450, Nvidia / ASUS Notebook Pro 78S, Core i7, Nvidia

williwaw
Posts: 1594
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 145 times
Been thanked: 291 times

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

Post 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

User avatar
bugnaw333
Posts: 232
Joined: Wed Jul 20, 2022 11:04 pm
Location: Cebu, Philippines
Has thanked: 348 times
Been thanked: 33 times

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

Post 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:

Attachments
Screenshot(23).png
Screenshot(23).png (76.93 KiB) Viewed 437 times
Thanos
Posts: 76
Joined: Wed Mar 29, 2023 6:02 am
Has thanked: 2 times
Been thanked: 14 times

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

Post 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.

Post Reply

Return to “EasyOS”