Custom install.wim for UEFI and BIOS on same USB flash drive


  1. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #1

    Custom install.wim for UEFI and BIOS on same USB flash drive


    Now that I have a working custom install.wim for UEFI and BIOS I'm wondering if there is a way to put both choices on one USB flash drive, via the Windows Setup Product selection window?

    Custom install.wim for UEFI and BIOS on same USB flash drive-image.png

    I'd like to be able to choose from a list something like:

    Windows 10 Home (BIOS/MBR)
    Windows 10 Home (UEFI/GPT)
    Windows 10 Home (UEFI/CSM)

    Could this be done with indexing?

    If I can get three to work then I could get six to work and have Home and Pro on a single 64GB flash drive. I don't see it making things any easier for me at the shop but I think it would be fun to do and may help someone else at some point.
      My Computers


  2. Posts : 31,659
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #2

    I don't think you can make it work like that. The standard Fat32 USB install media made by the MCT (or a Fat32 usb made from the ISO by the Diskpart/copy method) is capable of booting in either UEFI or Legacy Bios mode.

    It is at boot time that the choice between legacy/MBR or UEFI/GPT is made. From that point on Setup can only install in the mode that you booted from the USB. If you boot in legacy mode it will use MBR, for UEFI it will be GPT. By the time you get to that OS choice menu in your screenshot it is too late to choose the install mode.
      My Computers


  3. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #3

    Bummer, seemed like a good idea. Thanks Bree.

    So that is more a function of boot.wim then?
      My Computers


  4. Posts : 65
    Windows 10 Pro 1909 18363.959
       #4

    depending on what your uefi bios settings is determines the install partition type: mbr or gpt.

    If you have an old legacy only bios it will only install as a mbr partition.
    if you have a uefi bios with CSM support enabled , it will install as a mbr partition
    if you have a uefi bios with CSM support disabled, it will install as gpt partition
    if you have a uefi bios with no CSM or legacy support it will install as gpt partition.

    The win 10 install is smart enough to read the bios and then determine which partition type is suitable for the bios to be able to boot from.

    This is not to say that you can't convert mbr to gpt or gpt to mbr afterwards using diskpart.

    If you have a modern computer, using a modern OS like Win 10, gpt/ntfs is superior to mbr/ntfs and ntfs is superior to both exFAT and FAT32 in terms of speed and recoverability.
      My Computers

  5.   My Computer


  6. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #6

    shockwaveriderz said:
    depending on what your uefi bios settings is determines the install partition type: mbr or gpt.

    If you have an old legacy only bios it will only install as a mbr partition.
    if you have a uefi bios with CSM support enabled , it will install as a mbr partition
    if you have a uefi bios with CSM support disabled, it will install as gpt partition
    if you have a uefi bios with no CSM or legacy support it will install as gpt partition.

    The win 10 install is smart enough to read the bios and then determine which partition type is suitable for the bios to be able to boot from.

    This is not to say that you can't convert mbr to gpt or gpt to mbr afterwards using diskpart.

    If you have a modern computer, using a modern OS like Win 10, gpt/ntfs is superior to mbr/ntfs and ntfs is superior to both exFAT and FAT32 in terms of speed and recoverability.
    I was awar4e of all that. What I wasn't aware of was at what point the installer makes the decision as to what type of disk it wants, mbr or gpt. Now I know that it's done early, probably before the first install window is presented.


    Thanks all.
      My Computers


  7. Posts : 4,143
    Windows 3.1 to Windows 11
       #7

    It is done in PE - Disk Type depends on PE Boot type
      My Computer


  8. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #8

    What is PE? Looks like it means Preinstallation Environment but what is it, where is it, how does it fit into booting a customized install.wim from a USB flash drive that has autounattend.xml on it, one that worked okay previously on a different USB flash drive?
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:03.
Find Us




Windows 10 Forums