How to use Diskpart and Windows Explorer to create a bootable USB and Copy files

  1. Get a large enough USB Drive.

  2. Make sure its empty. You will be formatting it as part of the install process.

  3. Plug the USB drive into a USB slot on your computer.

  4. Make a note of the drive letter.

  5. Go to the start menu and open a command prompt in accessories as an Administrator.

    • You can do this by right clicking on the command prompt icon and choosing Run As Administrator.

  6. We're going to run through a series of commands using the DiskPart utility. Type DISKPART and press the ENTER key.

DISKPART>
  1. In DISKPART we need to identify which Disk is the USB drive.

    • Your internal hard disk is always assigned the first disk number which is 0.
    • If there are any additional internal disks they will be assigned the following numbers 1, 2 etc.
    • For this example there will be only 1 internal HDD and the USB drive is going to be assigned the number Disk1.
    • To find out type LIST DISK and press the ENTER key. The List Disk command shows each of the assigned disks.
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
------- ------------- ------- ------- --- ---
Disk 0 Online 93 GB 0B    
Disk 4 Online 14GB 0B    

DISKPART>
  1. Now we are going to run a series of commands. Each command is entered and run until it has completed before putting in the next command. I've listed the commands in the order they should be entered.

    1. Type Select Disk 1 and then Press the ENTER key.

    2. Type Clean and then Press the ENTER key.

    3. Type Create Partition Primary and then Press the ENTER key.

    4. Type Select Partition 1 and then Press the ENTER key.

    5. Type Active and then Press the ENTER key.

    6. Type Format FS=NTFS and then Press the ENTER key.

      DISKPART> select disk 1

      Disk 1 is now the selected disk.

      DISKPART> clean

      DiskPart succeeded in cleaning the disk.

      DISKPART> create partition primary

      DiskPart succeeded in creating the specified partition.

      DISKPART> Select partition 1

      Partition 1 is now the selected partition.

      DISKPART> active

      DiskPart marked the current partition as active.

      DISKPART> Format FS=ntfs

      100 percent completed

      DiskPart successfully formatted the volume.

      DISKPART>
    7. Type Assign and then Press the ENTER key.

    8. Type EXIT and then Press the ENTER key.

      DISKPART> clean

      DiskPart succeeded in cleaning the disk.

      DISKPART> create partition primary

      DiskPart succeeded in creating the specified partition.

      DISKPART> Select partition 1

      Partition 1 is now the selected partition.

      DISKPART> active

      DiskPart marked the current partition as active.

      DISKPART> Format FS=ntfs

      100 percent completed

      DiskPart successfully formatted the volume.

      DISKPART> assign

      DiskPart successfully assigned the drive letter or mount point.

      DISKPART> exit
  2. At this point you need to put the DVD of whatever it is you want to install into your DVD drive. In command prompt type the following commands for a windows install.

    1. Type D: cd boot and then Press the ENTER key. Where D: is the drive letter of the optical Drive.

    2. Type Bootsect.exe /nt60 E: and then Press the ENTER key.

      C:\>D: cd boot

      D:/boot>bootsect.exe /nt60 e:
      target volumes will be updated with BOOTMGR compatible bootcode.

      E: (\\?\Volume{ec34ce1d-11e0-a841-001c26e71218})

      Successfully updated NTFS filesystem bootcode.

      Bootcode was successfully updated on all targeted volumes.

      D:\boot>
  3. Now its just a case of using Windows Explorer to go to the install DVD and copy ALL of the files to the USB drive. Once the copy is complete you have a USB drive that is ready to install operating systems.

Add Feedback