Windows 10: Diskpart command info needed? Solved

Page 1 of 3 123 LastLast
  1.    11 May 2018 #1

    Diskpart command info needed?


    Hi,
    I have a UEFI boot laptop (not Legacy BIOS).
    If I was to use Diskpart to create a Windows 10 bootable USB flash drive for UEFI only would the following commands be correct? If my understanding is correct there is no need for the "Active" command to be typed in as it isn't required for UEFI bootable PC's/laptops or have I got that wrong?
    diskpart
    list disk
    select disk # <- replace # with the actual disk number of the USB flash drive
    clean <- this will erase the disk selected above, make sure it is the USB flash drive!
    create partition primary
    select partition 1
    format fs=fat32
    exit

    Also, just as a matter of interest. Would it also be possible to do this procedure using Disk Management? Obviously you would have to perform the "Clean" command using Diskpart first as that command isn't available in Disk Management as far as I know
      My ComputerSystem Spec

  2.    11 May 2018 #2

    Hi there

    I might be wrong but I think to boot UEFI only the usb drive has to have a /boot/efi or a /efi partition defined.

    The easiest way IMO if you have a windows ISO is to use RUFUS to create the bootable USB drive -- there's options for MBR, MBR/UEFI for BIOS computers and UEFI only.

    Cheers
    jimbo
      My ComputerSystem Spec

  3.    11 May 2018 #3

    It is fine but I would add assign to make sure it gets a drive letter automatically, and use quick format.

    Code:
    diskpart
    list disk
    select disk # <- replace # with the actual disk number of the USB flash drive
    clean <- this will erase the disk selected above, make sure it is the USB flash drive!
    create partition primary
    select partition 1
    format fs=fat32 quick
    assign
    exit
    You can do everything beyond clean from disk management but hardly worth the effort.
      My ComputerSystem Spec

  4.    11 May 2018 #4

    jimbo45 said: View Post
    Hi there

    I might be wrong but I think to boot UEFI only the usb drive has to have a /boot/efi or a /efi partition defined.

    The easiest way IMO if you have a windows ISO is to use RUFUS to create the bootable USB drive -- there's options for MBR, MBR/UEFI for BIOS computers and UEFI only.

    Cheers
    jimbo
    Not the case. The requirement is that the boot partition has to be fat32. It does not matter if all other system files are in same partition.
      My ComputerSystem Spec

  5. Bree's Avatar
    Posts : 8,828
    10 Home x64 (1809) (10 Pro on 2nd pc)
       11 May 2018 #5

    jimbo45 said: View Post
    I might be wrong but I think to boot UEFI only the usb drive has to have a /boot/efi or a /efi partition defined.
    The easiest way IMO if you have a windows ISO is to use RUFUS to create the bootable USB drive -- there's options for MBR, MBR/UEFI for BIOS computers and UEFI only...
    No, the only requirement for the usb to be bootable for UEFI is that it has an MBR partition layout, formatted to Fat32 and that this contains the file Bootmgr.efi and the folder efi and its contents - that's all, and easily achieved with native Windows commands.
      My ComputersSystem Spec

  6.    11 May 2018 #6

    jimbo45 said: View Post
    Hi there

    I might be wrong but I think to boot UEFI only the usb drive has to have a /boot/efi or a /efi partition defined.

    The easiest way IMO if you have a windows ISO is to use RUFUS to create the bootable USB drive -- there's options for MBR, MBR/UEFI for BIOS computers and UEFI only.

    Cheers
    jimbo
    Hi Jimbo. I prefer to use Diskpart if possible. Ive read that the Active command isn't necessary for UEFI only boot as no Active partition is required on the flash drive and that boot sectors aren't used for UEFI at all. Wouldn't the Efi boot files be included in the Windows 10 ISO downloaded from the Microsoft site. From what Ive read you then mount it and copy and paste all the files from the ISO over onto the USB flash drive. I'd just like to verify that that's correct
      My ComputerSystem Spec

  7. Bree's Avatar
    Posts : 8,828
    10 Home x64 (1809) (10 Pro on 2nd pc)
       11 May 2018 #7

    sportsfan148 said: View Post
    I have a UEFI boot laptop (not Legacy BIOS).
    If I was to use Diskpart to create a Windows 10 bootable USB flash drive for UEFI only would the following commands be correct?
    Basically yes, you have it right. But if this usb has ever been formatted by Rufus or the like it may now have a gpt partition layout. After CLEAN you can use CONVERT MBR as a precaution to make sure it's got the correct partition type.

    ...just as a matter of interest. Would it also be possible to do this procedure using Disk Management?
    After the CLEAN and a precautionary CONVERT MBR, yes Disk Management can also do the rest of the preparation. It would be worth setting the partition as Active, as this will allow it to boot on a legacy system too.
      My ComputersSystem Spec

  8.    11 May 2018 #8

    cereberus said: View Post
    It is fine but I would add assign to make sure it gets a drive letter automatically, and use quick format.

    Code:
    diskpart
    list disk
    select disk # <- replace # with the actual disk number of the USB flash drive
    clean <- this will erase the disk selected above, make sure it is the USB flash drive!
    create partition primary
    select partition 1
    format fs=fat32 quick
    assign
    exit
    You can do everything beyond clean from disk management but hardly worth the effort.
    Hi Cereberus. Is there a reason why you say Full Format shouldn't be used? The reason I like to use Full Format is it checks the flash drive as well
      My ComputerSystem Spec

  9.    11 May 2018 #9

    Bree said: View Post
    No, the only requirement for the usb to be bootable for UEFI is that it has an MBR partition layout, formatted to Fat32 and that this contains the file Bootmgr.efi and the folder efi and its contents - that's all, and easily achieved with native Windows commands.
    Hi Bree, So How do you get the Bootmgr.efi and the folder efi and its contents onto the flash drive?...Is that done automatically after mounting the downloaded Windows 10 ISO when you copy and paste the Windows ISO files over onto the flash drive? You've also referenced native Windows commands. Is there something wrong with my Diskpart commands then..and is it OK to leave out the Active command as I mentioned?
      My ComputerSystem Spec

  10.    11 May 2018 #10

    sportsfan148 said: View Post
    Hi Cereberus. Is there a reason why you say Full Format shouldn't be used? The reason I like to use Full Format is it checks the flash drive as well
    You can but I have never found it necessary and takes more time.
      My ComputerSystem Spec


 
Page 1 of 3 123 LastLast

Related Threads
How to Erase a Disk using Diskpart Clean Command in Windows 10 You can use the clean or clean all Diskpart command options to erase (wipe) a disk leaving it unallocated and not initialized. The clean command removes any and all partition or...
Solved Blue Screen info needed in BSOD Crashes and Debugging
I have had a blue screen pop up the last couple days and it is nothing like I have seen on any earlier Windows Op Sys. It has a message at the top that goes something like "Your PC has a problem and needs to be restarted" and below this is a bar...
Hi Cognoscenti Anybody got the current (retail / RTM) version of Office 2016 / Office 365. I haven't a clue now where I'm at with updates etc. Note - Please info on Retail / release versions - not the trials / previews / Insider downloads. ...
Just for reference purposes For those who are interested in viewing the status or tracking of Windows 10 & Office with respect to builds, packages, official updates, ESD's, etc., you can visit the following page via the link below. I did...
Hello Forum! I hope I can find a guru here, who can explain the "interesting" phenomena of different partition types (in disk manager it's actually listed in the "status" column) being displayed by disk manager vs diskpart. The setup: disk0...
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 17:49.
Find Us