ventoy / Ventoy

A new bootable USB solution.
https://www.ventoy.net
GNU General Public License v3.0
61.89k stars 4.03k forks source link

[issue]: How to boot a specific index inside boot.wim ? #2145

Open captain-majid opened 1 year ago

captain-majid commented 1 year ago

Official FAQ

Ventoy Version

Latest

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

n/a

Disk Manufacturer

No response

Image file checksum (if applicable)

None

Image file download link (if applicable)

No response

What happened?

Can I make 2 editions of WinPE, one light/quick and one full, and put the 2 indexes in a single boot.wim, giving the user the option to start which one he likes, while taking the advantage of having partially identical indexes compressed together to save space ?

I've already added the 2nd boot.wim with this command: dism /append-image /imagefile:E:\boot.wim /capturedir:E:\anotherBootWim /Name:"Older win11 boot.wim" /description:"Older win11 boot.wim"

ventoy commented 1 year ago

According to WIM file format: https://download.microsoft.com/download/f/e/f/fefdc36e-392d-4678-9e4e-771ffa2692ab/windows%20imaging%20file%20format.rtf

One WIM file has one WIM Header, and has only one dwBootIndex. So if you put 2 indexes in a single boot.wim file, I think only 1 is bootable, and another is not bootable.

captain-majid commented 1 year ago

According to WIM file format: https://download.microsoft.com/download/f/e/f/fefdc36e-392d-4678-9e4e-771ffa2692ab/windows%20imaging%20file%20format.rtf

One WIM file has one WIM Header, and has only one dwBootIndex. So if you put 2 indexes in a single boot.wim file, I think only 1 is bootable, and another is not bootable.

https://rmprepusb.com/tutorials/016-boot-to-a-winpe-wim-file-with-multiple-images/ Found this complex tutorial that can do it using Grub4DOS, can this be ported to Ventoy, in an easier way ?