Options to create a bootable Windows 10 iso with GPT partion


  1. Posts : 38,335
    windows 10 professional version 1607 build 14393.969 64 bit
       #1

    Options to create a bootable Windows 10 iso with GPT partion


    In November 2019 A bootable Windows 10 iso was created on a computer with UEFI/GPT.

    The bootable Windows 10 iso couldn't be used to perform a custom install as the computer displayed:

    Windows cannot be installed on this disk.
    The selected disk is of the GPT partition style.

    Diskpart lis dis displayed MBR partition with FAT32.




    Are all of these workable options?

    a) conversion MBR to GPT on the flash drive without data loss
    b) conversion MBR to GPT on the flash drive with data loss
    c) command line to create GPT with FAT32 followed by copy and paste from a desktop iso
    d) Rufus or other third party software
    e) disk management
    f) other options?


    The computer has MiniTool Partition Wizard Pro 11.5
    Convert MBR to GPT without data loss with a free Partition Magic

    What would be the command line commands?

    diskpart
    list dis (determine the disk # for the flash drive)
    select disk W (replace W with the drive # for the flash drive)
    clean
    convert GPT
    create partition primary
    format fs=FAT32 or (format fs=FAT32 quick?)
    assign
    exit

    What would happen if each assign and/or active and/or quick are used or not used?

    https://docs.microsoft.com/en-us/win...ommands/active
    https://docs.microsoft.com/en-us/win...ommands/assign
    https://docs.microsoft.com/en-us/win...tition-primary
    Convert MBR Disk to GPT Disk in Windows 10



    Would copy and paste of a desktop windows 10 iso to the flash drive then make it work as a bootable windows 10 iso GPT/FAT32?



    Code:
    Microsoft Windows [Version 10.0.17763.973]
    (c) 2018 Microsoft Corporation. All rights reserved.
    
    C:\WINDOWS\system32>diskpart
    
    Microsoft DiskPart version 10.0.17763.1
    
    Copyright (C) Microsoft Corporation.
    On computer: DESKTOP-9HEBUKS
    
    DISKPART> lis dis
    
      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
      Disk 0    Online          238 GB  1024 KB        *
      Disk 1    Online           58 GB    26 GB
    
    DISKPART> sel dis 1
    
    Disk 1 is now the selected disk.
    
    DISKPART> det dis
    
    SanDisk Cruzer Glide USB Device
    Disk ID: 2E2B553C
    Type   : USB
    Status : Online
    Path   : 0
    Target : 0
    LUN ID : 0
    Location Path : UNAVAILABLE
    Current Read-only State : No
    Read-only  : No
    Boot Disk  : No
    Pagefile Disk  : No
    Hibernation File Disk  : No
    Crashdump Disk  : No
    Clustered Disk  : No
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
      Volume 4     E   ESD-USB      FAT32  Removable     32 GB  Healthy
    
    DISKPART> lis par
    
      Partition ###  Type              Size     Offset
      -------------  ----------------  -------  -------
      Partition 1    Primary             32 GB  1024 KB
    
    DISKPART> sel par 1
    
    Partition 1 is now the selected partition.
    
    DISKPART> det par
    
    Partition 1
    Type  : 0C
    Hidden: No
    Active: Yes
    Offset in Bytes: 1048576
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
    * Volume 4     E   ESD-USB      FAT32  Removable     32 GB  Healthy
    
    DISKPART> lis vol
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
      Volume 0         Recovery     NTFS   Partition    450 MB  Healthy
      Volume 1     C                NTFS   Partition    237 GB  Healthy    Boot
      Volume 2                      NTFS   Partition    885 MB  Healthy
      Volume 3                      FAT32  Partition    100 MB  Healthy    System
      Volume 4     E   ESD-USB      FAT32  Removable     32 GB  Healthy
    
    
    DISKPART>
      My Computer

  2. Kari's Avatar
    Posts : 17,434
    Windows 10 Pro
       #2

    The error message you get has nothing to do with your USB drive.

    DISKPART LIST DISK shows an asterisk in last, GPT column if the disk is GPT, no asterisk for MBR disk:

    Options to create a bootable Windows 10 iso with GPT partion-image.png

    In your case, the HDD is GPT, and the USB drive MBR. The most probable cause for your error message is that the computer is a legacy BIOS device, not UEFI. If so, you should convert the HDD (Disk 0) to MBR for installation to work. On BIOS devices, Windows cannot be installed on GPT partitioned disk.

    Kari
      My Computer


  3. Posts : 38,335
    windows 10 professional version 1607 build 14393.969 64 bit
    Thread Starter
       #3

    The problematic computer is UEFI /GPT and the iso is MBR.
    Sorry for any confusion.
    The computer used to run the diskpart command was not the problematic computer and it was to display the flash drive information.
      My Computer

  4. Kyhi's Avatar
    Posts : 3,539
    Windows 3.1 to Windows 10
       #4

    It would appear to me that you have Legacy CSM support enabled in BIOS
    Which means the PC booted the USB in Legacy Mode....
    If you have USB as the first Boot Device - Disable Legacy CSM Support - the PC will then Boot That USB in UEFI Mode..

    If you have the option to select the USB via F12 upon Booting - select the UEFI-USB

    The USB being Fat32 & MBR - has no issue with booting Legacy or UEFI
    The Media will Boot in either Mode

    With your current HDD in GPT format and the Media having been Booted into Legacy Mode - is the reason for that error message.. Same would be true the other way around too...

    The way to overcome that message would be to reboot the Media in the Correct Mode for the HDD disk format..
    Or Clean the HDD of it's current format..
      My Computer


  5. Posts : 38,335
    windows 10 professional version 1607 build 14393.969 64 bit
    Thread Starter
       #5

    This was msinfo32 displaying UEFI

    Code:
    OS Name	Microsoft Windows 10 Pro
    Version	10.0.16299 Build 16299
    Other OS Description 	Not Available
    OS Manufacturer	Microsoft Corporation
    System Name	DESKTOP-BH9NBPV
    System Manufacturer	Hewlett-Packard
    System Model	HP ZBook 17
    System Type	x64-based PC
    System SKU	D5D93AV#ABA
    Processor	Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz, 2694 Mhz, 4 Core(s), 8 Logical Processor(s)
    BIOS Version/Date	Hewlett-Packard L70 Ver. 01.46, 8/29/2019
    SMBIOS Version	2.7
    Embedded Controller Version	148.86
    BIOS Mode	UEFI
    BaseBoard Manufacturer	Hewlett-Packard
    BaseBoard Model	Not Available
    BaseBoard Name	Base Board
    Platform Role	Mobile
    Secure Boot State	Off
    PCR7 Configuration	Binding Not Possible
    Windows Directory	C:\WINDOWS
    System Directory	C:\WINDOWS\system32
    Boot Device	\Device\HarddiskVolume2
    Locale	United States
    Hardware Abstraction Layer	Version = "10.0.16299.15"
    User Name	DESKTOP-BH9NBPV\aaaaaaa
    Time Zone	Central Standard Time
    Installed Physical Memory (RAM)	16.0 GB
    Total Physical Memory	15.4 GB
    Available Physical Memory	13.9 GB
    Total Virtual Memory	17.8 GB
    Available Virtual Memory	16.5 GB
    Page File Space	2.38 GB
    Page File	C:\pagefile.sys
    Virtualization-based security	Not enabled
    Device Encryption Support	Reasons for failed automatic device encryption: PCR7 binding is not supported, Hardware Security Test Interface failed and device is not InstantGo, Un-allowed DMA capable bus/device(s) detected
    Hyper-V - VM Monitor Mode Extensions	Yes
    Hyper-V - Second Level Address Translation Extensions	Yes
    Hyper-V - Virtualization Enabled in Firmware	No
    Hyper-V - Data Execution Protection	Yes


    It's working on updates with "Don't turn your computer off".
    When it completes I'll check the BIOS settings.




    The boot mode is: UEFI Hybrid (with CSM)


    The Windows 10 iso was made by the Microsoft website:
    https://www.microsoft.com/en-us/soft...load/windows10

    It's in MBR / FAT32

    It has a mismatch MBR to GPT preventing the custom install:
    Custom Install Windows 10

    Can the flash drive be converted from MBR to GPT to allow the custom install?
      My Computer

  6. NavyLCDR's Avatar
    Posts : 15,503
    Windows 10 Pro
       #6

    zbook said:
    The boot mode is: UEFI Hybrid (with CSM)


    The Windows 10 iso was made by the Microsoft website:
    https://www.microsoft.com/en-us/soft...load/windows10

    It's in MBR / FAT32

    It has a mismatch MBR to GPT preventing the custom install:
    Custom Install Windows 10

    Can the flash drive be converted from MBR to GPT to allow the custom install?
    As has been stated multiple times, and now again, the USB flash drive being MBR has NOTHING to do with your problem! The problem is that you have CSM mode enabled and you are booting the flash drive in CSM (legacy BIOS) mode. Boot the flash drive in UEFI mode and your problem will be solved.
      My Computer


  7. Posts : 38,335
    windows 10 professional version 1607 build 14393.969 64 bit
    Thread Starter
       #7

    The boot mode was changed from UEFI hybrid to UEFI native.

    Booting to the iso now.
      My Computer


  8. Posts : 38,335
    windows 10 professional version 1607 build 14393.969 64 bit
    Thread Starter
       #8

    The boot mode was changed from UEFI hybrid to UEFI native.

    Booting to the iso now.


    That fixed the mismatch!


    Thank you



    Would the conversion of the flash drive to GPT fail to create a bootable Windows 10 iso GPT / FAT32?
    If it did work would it have been able to perform a custom install while in UEFI hybrid?
      My Computer

  9. Megahertz's Avatar
    Posts : 2,381
    Windows 7 HP 64 - Windows 10 Pro - Lubuntu
       #9

    Just to clarify for those who see this thread
    - Windows (7, 8.x or 10) can be installed as Legacy - MBR or EFI - GPT (64 bits only)
    - To install as EFI - GPT, "BIOS" must be EFI mode.
    - To install as Legacy - MBR, "BIOS" must be Legacy or EFI CSM mode.
    - To install as Legacy - MBR, the installation drive must be booted as Legacy (Legacy or EFI CSM BIOS)
    - To install as EFI - GPT, the installation drive must be booted as EFI (on EFI BIOS)
    - To boot as EFI, a USB installation drive to must be formatted as Fat32, not NTFS

    - If you boot the installation drive as EFI and your target drive is MBR you must first delete all partitions to be able to create a GPT drive and then install as EFI - GPT.
    - If you boot the installation drive as Legacy and your target drive is GPT you must first delete all partitions to be able to create a MBR drive and then install as Legacy - MBR.
    Last edited by Megahertz; 11 Feb 2020 at 13:27.
      My Computers

  10. inwell's Avatar
    Posts : 92
    Win10 Pro
       #10

    megahertz said:
    just to clarify for those who see this thread
    - windows (7, 8.x or 10) can be installed as legacy - mbr or efi - gpt (64 bits only)
    - to install as efi - gpt, "bios" must be efi mode.
    - to install as legacy - mbr, "bios" must be legacy or efi csm mode.
    - to install as legacy - mbr, the installation drive must be booted as legacy (legacy or efi csm bios)
    - to install as efi - gpt, the installation drive must be booted as efi (on efi bios)
    - to boot as efi, a usb installation drive to must be formatted as fat32, not ntfs

    - if you boot the installation drive as efi and your target drive is mbr you must first delete all partitions to be able to create a gpt drive and then install as efi - gpt.
    - if you boot the installation drive as legacy and your target drive is gpt you must first delete all partitions to be able to create a mbr drive and then install as legacy - mbr.
    lucid
      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 20:42.
Find Us




Windows 10 Forums