vtoyboot icon indicating copy to clipboard operation
vtoyboot copied to clipboard

Boot from extended partition

Open D-EVE-R opened this issue 4 years ago • 7 comments

hello, is there any way to boot VDisk from the /dev/sdb6 partition? Screenshot from 2021-02-01 03-44-34 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.

D-EVE-R avatar Feb 01 '21 02:02 D-EVE-R

Please do a test:

  1. For example, you put abcd.vdi.vtoy to the root of /dev/sdb6 (no parent directory)
  2. 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

ventoy avatar Feb 03 '21 05:02 ventoy

it says hd0,msdos6

D-EVE-R avatar Feb 03 '21 13:02 D-EVE-R

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

ventoy avatar Feb 03 '21 14:02 ventoy

Thanks for your quick and helpful reply.

D-EVE-R avatar Feb 03 '21 22:02 D-EVE-R

Does it work?

ventoy avatar Feb 04 '21 04:02 ventoy

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
   }

D-EVE-R avatar Feb 04 '21 14:02 D-EVE-R

Update: It does get stuck at loading, never launches, no matter how much I keep it.

D-EVE-R avatar Feb 08 '21 01:02 D-EVE-R