Using Diskpart to create a bootable USB flash drive

Page 2 of 2 FirstFirst 12

  1. Posts : 985
    Windows 10 Home 21H1
    Thread Starter
       #11

    Bree said:
    Once you have used Diskpart to clean and convert to MBR then yes, you could use Disk Management to create a new simple volume, format it and mark the partition as active (just right-click on it).




    I don't bother. If there were any bad memory locations then I'd expect the attempted copy would also pick up on them.
    On my PC in Disk Management when right clicking on the USB flash drive the mark partition as active option is greyed out so its not selectable. So I would have to go back into Diskpart to make the flash drive Active. To do that would these be the correct commands?
    diskpart
    list disk
    select disk # (enter flash drive number)
    list partition
    select partition 1 (this would be the only partition on the drive)
    active
    exit
      My Computer


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

    sportsfan148 said:
    On my PC in Disk Management when right clicking on the USB flash drive the mark partition as active option is greyed out so its not selectable.
    It is possible for a USB to neither have an MBR or GPT table but still be supplied pre-formatted by the manufacturer. In such cases Disk Management cannot mark the partition as Active as there is no MBR table, so the option is greyed out. Once Diskpart has been used to clean the usb and create a primary partition it will have an MBR table and can be marked Active by disk Management.

    See this post for an example of a usb without a partition table.

    Bree said:
    Notice the subtle difference (info courtesy of MiniTool Partition Wizard) between these two apparently identical Lexar 8GB USBs (both were from the same multipack). The first is as it was originally formatted by Lexar, the second is after using the MCT (so it now has an MBR). In particular, look at the partition type and first physical sector.
    Cumulative Update KB4048955 Windows 10 v1709 Build 16299.64
      My Computers


  3. Posts : 985
    Windows 10 Home 21H1
    Thread Starter
       #13

    Bree said:
    It is possible for a USB to neither have an MBR or GPT table but still be supplied pre-formatted by the manufacturer. In such cases Disk Management cannot mark the partition as Active as there is no MBR table, so the option is greyed out. Once Diskpart has been used to clean the usb and create a primary partition it will have an MBR table and can be marked Active by disk Management.
    On my PC after a flash drive has been cleaned and the convert mbr command has also been used...when I then go into disk management the mark partition as active is greyed out so its not selectable. Ive checked this out before so I know its correct. I asked about that before on another thread and other forum members said it was the same on their PC too and it was because it was a UEFI system so the option deliberately gets greyed out. I was informed that it is designed to be that way on Windows 10. Im aware that on a UEFI system the Active command isn't necessary but it would also make the bootable flash drive also bootable on Legacy boot if ever needed. I know then that making it Active would create the flash drive in exactly the same way as the Media Creation Tool does when it automatically creates the USB media for you.
    So to make it Active Id have to go back into Diskpart. So would these be the correct commands to type in?
    diskpart
    list disk
    select disk # (enter flash drive number)
    list partition
    select partition 1 (this would be the only partition on the drive)
    active
    exit
    Last edited by sportsfan148; 15 May 2019 at 13:13.
      My Computer


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

    sportsfan148 said:
    On my PC after a flash drive has been cleaned and the convert mbr command has also been used...when I then go into disk management the mark partition as active is greyed out so its not selectable. Ive checked this out before so I know its correct.
    Odd, I have no such problem after using Diskpart 'Clean, Convert MBR, Create partition' on this Lexar 8GB USB....

    Using Diskpart to create a bootable USB flash drive-image.png

    What version of W10 do you have? Mine is 1809.

    So to make it Active Id have to go back into Diskpart. So would these be the correct commands to type in?
    diskpart
    list disk
    select disk # (enter flash drive number)
    list partition
    select partition 1 (this would be the only partition on the drive)
    active
    exit
    Yes, those are the correct commands.
      My Computers


  5. Posts : 985
    Windows 10 Home 21H1
    Thread Starter
       #15

    Bree said:
    Odd, I have no such problem after using Diskpart 'Clean, Convert MBR, Create partition' on this Lexar 8GB USB....

    Using Diskpart to create a bootable USB flash drive-image.png

    What version of W10 do you have? Mine is 1809.


    Yes, those are the correct commands.
    Thanks for confirming that Ive got the Diskpart commands entered correctly.
    Im on Windows 10 version 1809 too. I think when I had the original conversation on here way back and other people said mark partition as active was greyed out on their UEFI systems too that I might have been on 1703 or 1709 maybe. It was a Sandisk 16gb Ultra 3.0 but I wouldn't have thought that should have made any difference as others were seeing the same as me in Disk Management
      My Computer


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

    sportsfan148 said:
    think when I had the original conversation on here way back and other people said mark partition as active was greyed out on their UEFI systems too ...
    My first screenshot was 1809 on a Legacy system. I have confirmed that on a UEFI install of W10 1809 the Disk Management option to 'Set Active' is greyed out for ALL disks, removable or otherwise. Whether that's by design or mistake, your guess is as good as mine. Here's the SAME usb on a UEFI system....

    Using Diskpart to create a bootable USB flash drive-set-active-uefi-disk-management.png

    So on a UEFI system Diskpart is your only option.
      My Computers


  7. Posts : 985
    Windows 10 Home 21H1
    Thread Starter
       #17

    Bree said:
    My first screenshot was 1809 on a Legacy system. I have confirmed that on a UEFI install of W10 1809 the Disk Management option to 'Set Active' is greyed out for ALL disks, removable or otherwise. Whether that's by design or mistake, your guess is as good as mine. Here's the SAME usb on a UEFI system....

    Using Diskpart to create a bootable USB flash drive-set-active-uefi-disk-management.png

    So on a UEFI system Diskpart is your only option.
    Yeah..its exactly the same on my system. Like I said it was the same over a year ago too. So it looks like its either by design as I was told or its something that's been overlooked somehow on Windows 10
      My Computer


 

  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 01:18.
Find Us




Windows 10 Forums