Ventoy
Ventoy copied to clipboard
Adding Ventoy to Linux Grub Menu
Official FAQ
- [X] I have checked the official FAQ.
Ventoy Version
1.0.96
What about latest release
Yes. I have tried the latest release, but the bug still exist.
Try alternative boot mode
Yes. I have tried them, but the bug still exist.
BIOS Mode
Legacy BIOS Mode
Partition Style
MBR
Disk Capacity
32GB
Disk Manufacturer
samsung
Image file checksum (if applicable)
Yes.
Image file download link (if applicable)
No response
What happened?
Greetings, I'm trying to add ventoy to my Ubuntu grub menu. My ventoy is installed on a 2nd ssd drive on my laptop as sdb. My /etc/grub.d/40_custom file is:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry 'Ventoy Boot USB' {
insmod part_gpt
insmod ext2
insmod fat
insmod exfat
insmod ntfs
insmod chain
search --no-floppy --set=root --fs-uuid 8CC4-D433
set search_efi_path=(hd1,2)/ventoy
# chainloader /dev/sdb2/ventoy/ventoy_x64.efi
chainloader (hd1,2)/ventoy/ventoy_x64.efi
}
I've run update-grub and when I boot I see ventoy on the grub list: But when I run it I get" "Invalid signature"
What am I doing wrong?
You say you are using Legacy BIOS mode BIOS Mode Legacy BIOS Mode So why are you booting an efi file ???
Are you booting legacy BIOS or UEFI ????
Yes it's confusing to me. To answer your question, If I set bios to use efi mode, I can't even boot to ubuntu. I have to set it to use legacy mode. As it is now, to boot Ventoy, I press F9 to get my bios boot menu. I can only choose internal HD to boot to Ubuntu or EFI to get a directory listing to choose from. To boot ventoy which is located on my sbd ssd drive, I navigate through the folders and I eventually get to the file ventoy_x64.efi. When I execute this file, ventoy loads normally. This is stressful. That's why I'm trying to get ventoy to work from my Ubuntu grub menu.
To legacy boot from grub2 to Ventoy requires a core.img file from the Ventoy build I think you can extract it.
core.img is inside the zip download file - core.img.xz which you will have to unpack
You can try booting to it by setting the root and using the multiboot /ventoy/core.img command maybe?
of course, each version of Ventoy may require a different core.img file, so you may have to change it for the latest version if you update Ventoy and it should be in the VTOYEFI partition 2 which is destroyed on an update.
set search_efi_path=(hd1,2)/ventoy - not need
chainloader /dev/sdb2/ventoy/ventoy_x64.efi
chainloader (hd1,2)/ventoy/ventoy_x64.efi - change to chainloader /efi/boot/bootx64.efi