Chainload Ventoy USB from grub.cfg

Moderator: Forum moderators

Post Reply
User avatar
fredx181
Posts: 3248
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 407 times
Been thanked: 1411 times
Contact:

Chainload Ventoy USB from grub.cfg

Post by fredx181 »

Just to share what I recently found out and I like it.
If you have the GRUB2 bootloader installed on your HDD, it's more convenient IMO to chainload Ventoy USB from grub.cfg than having to select your USB from the BIOS (or whatever needed to boot from USB).

This entry in grub.cfg works for me to boot Ventoy USB directly:

Code: Select all

menuentry 'Ventoy' {
insmod part_gpt
insmod fat
insmod ext2
set root='hd0,2'
chainloader ($root)/EFI/BOOT/BOOTX64.EFI
}

edit: perhaps the insmod ... lines are not (all) needed

User avatar
wiak
Posts: 4245
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 70 times
Been thanked: 1258 times
Contact:

Re: Chainload Ventoy USB from grub.cfg

Post by wiak »

fredx181 wrote: Fri Jul 12, 2024 12:28 pm

Just to share what I recently found out and I like it.
If you have the GRUB2 bootloader installed on your HDD, it's more convenient IMO to chainload Ventoy USB from grub.cfg than having to select your USB from the BIOS (or whatever needed to boot from USB).

This entry in grub.cfg works for me to boot Ventoy USB directly:

Code: Select all

menuentry 'Ventoy' {
insmod part_gpt
insmod fat
insmod ext2
set root='hd0,2'
chainloader ($root)/EFI/BOOT/BOOTX64.EFI
}

edit: perhaps the insmod ... lines are not (all) needed

Nice find, that's very useful info for me too - I'm fed up having to go into BIOS or similar...

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

Clarity
Posts: 4065
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1704 times
Been thanked: 552 times

Re: Chainload Ventoy USB from grub.cfg

Post by Clarity »

Cuts down on time and similar in getting to the list of ISOs to boot.

In my test PCs, they all are set to look for media in this order (this negated my need for UEFI interruption at boot.
Order they check for media:

  1. DVD drive

  2. USB port

  3. System drive

  4. Network

Finding no bootables in the first 3, the PC finds an always-on laptop providing a PXE @fatdog and boots the PC to desktop.

But, I like the idea of using the system drive's OS's GRUB Menu list to offer something sitting in a USB drive.

Thanks!!!

Post Reply

Return to “Boot”