vtoyboot
vtoyboot copied to clipboard
Boot from extended partition
hello, is there any way to boot VDisk from the /dev/sdb6 partition?
I have tried playing with the "ventoy_grub.cfg" but with no success.
actually, I have no idea what to put in the set line.
Please do a test:
- For example, you put
abcd.vdi.vtoy
to the root of /dev/sdb6 (no parent directory) - When you boot into Ventoy's boot menu. Press
c
to enter shell and run
ls
search -n -f "/abcd.vdi.vtoy"
and give me the result
it says hd0,msdos6
That's OK.
Save the following content to ventoy_grub.cfg
and put the file to ventoy
directory in the 1st partition.
menuentry "Boot My Linux VHD" {
set my_vdisk_path="/abcd.vdi.vtoy"
if search -n -s vdiskhd -f "$my_vdisk_path"; then
vtoyboot_common_func "($vdiskhd)$my_vdisk_path"
else
echo "$my_vdisk_path not found"
fi
}
Boot to Ventoy and F6--->Boot My Linux VHD
Thanks for your quick and helpful reply.
Does it work?
Yes, it does, thank you. I was before adding the paths for the VHD file, thas why it wasn't working. Before:
menuentry "Boot My Linux VHD" {
set my_vdisk_path="(hd0,6)/abcd.vdi.vtoy"
if search -n -s vdiskhd -f "$my_vdisk_path"; then
vtoyboot_common_func "($vdiskhd)$my_vdisk_path"
else
echo "$my_vdisk_path not found"
fi
}
After:
menuentry "Boot My Linux VHD" {
set my_vdisk_path="/abcd.vdi.vtoy"
if search -n -s vdiskhd -f "$my_vdisk_path"; then
vtoyboot_common_func "($vdiskhd)$my_vdisk_path"
else
echo "$my_vdisk_path not found"
fi
}
Update: It does get stuck at loading, never launches, no matter how much I keep it.