Post #1841280
2026-05-01 02:25 UTC
Solution:
insmod chain
set root=(hd0,msdos2)
chainloader /efi/boot/grub.efi
boot
how does grub chainloading work? I have a laptop with a locked bios that can’t boot usb, but has grub already installed. I want to boot a windows virtual disk from a ventoy stick, but I can’t get the original grub to pass over to ventoy grub
In grub cmdline:
insmod chain
set root=(hd0,msdos2)
configfile /grub/grub.cfg
it goes to a blank screen, then a few seconds later
error: can't find command `vt_clear_key`.
error: can't find command `vt_list_img`.
error: file `/grub/themes/ventoy/theme.txt` not found.
I haven’t had to deal with grub cmdline in almost a decade so I am ignorant on how things work here
#grub #ventoy
Replies (1)
-
@tevo@mastodon.bsd.cafe 2026-05-01 04:17
@aly chainloading just calls another bootloader like the underlying platform would. If that's BIOS, and your ventoy disk has a bootloader on the MBR, you could try something like insmod chain chainloader (hd0)+1 boot Which tells GRUB to chainload l the first sector of hd0 as a typical BIOS would (i.e. place on 0x7C00, then jump). If the machine has UEFI then you should be able to pass a .efi to chainloader just as easily, although I've never tried it. Also see https://www.gnu.org/software/grub/manual/grub/html_node/Chain_002dloading.html