Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Boot from Ventoy USB-Drive to boot a LOCAL DRIVE
#7
(04-06-2024, 11:27 AM)RGB Wrote:
Quote:sorry, extra word boot, it should be
menuentry "$VTLANG_LB_SBOOT_HDD1" --class=boot_disk --class=F4boot {
        set root=(hd0)
        chainloader +1
        boot
    }


OK, I tried that.

First via F4 (LOCALBOOT.CFG) ...

Booting "Windows ..."

error: no such device: /EFI/Microsoft/Boot/bootmgfw.efi.
error: no such device: /EFI/Microsoft/Boot/bootmgfw.efi.
Windows NOT found ...

Press any key to continue...

Failed to boot default and fallback entries.
Press any key to continue...


Then via F6 (VENTOY_GRUB.CFG) ...

error: invalid EFI file path.
error: you need to load the kernel first.

Press any key to continue...


Under F2:BROWSER i see:

DISK (hd0,msdos) [VENTOY] ntfs 3.72GB >> USB Drive but 16GB?

DISK (hd1,msdos) [] fat 260.00MB >>> No idea!?

DISK (hd1,msdos4) (zroot) zfs 103.54GB >> SSD Local Drive


Do you have another idea? Otherwise i stick with F6 and BOOTX64.EFI from second post ... it works even if it's wrong.

Heart

EDIT

I took a look at the partitions ...

BIOS Boot

1. USB
2. HDD

USB Drive (VENTOY)

1. 14.29 GB VENTOY (NTFS)
2. 32.00 MB VTOYEFI (FAT16)

SSD Local Drive (OPNSENSE)

1. 260.0 MB EFI (FAT16)
2. 512.0 KB (LINUX)
3. 8.00 GB (LINUX)
4. 103.5 GB (LINUX)
A small addition, ventoy_grub.cfg content looks like this
if [ "$grub_platform" = "pc" ]; then
menuentry "$VTLANG_LB_SBOOT_HDD1" --class=boot_disk --class=F4boot {
        set root=(hd0)
        chainloader +1
        boot
    }
else
menuentry "BOOT FIREWALL" --class=boot_uefi --class=custom {
            set VTOY_SEARCH_NO_VTOYEFI=1
            if search -n -s -f /efi/boot/bootx64.efi; then
                unset VTOY_SEARCH_NO_VTOYEFI
                terminal_output  console
                chainloader /efi/boot/bootx64.efi
                boot
            elif search -n -s -f /vtefi/boot/bootx64.efi; then
                unset VTOY_SEARCH_NO_VTOYEFI
                terminal_output  console
                chainloader /vtefi/boot/bootx64.efi
                boot
            else
                unset VTOY_SEARCH_NO_VTOYEFI
                echo "BOOTX64.EFI NOT found ..."
            fi     
        }
fi
menuentry '<-- EXIT [Esc]' --class=vtoyret VTOY_RET {
    echo 'Return ...'
}
Reply


Messages In This Thread
RE: Boot from Ventoy USB-Drive to boot a LOCAL DRIVE - by nguyen ha thai trong - 04-06-2024, 12:43 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)