How To Create Bootable USB (Using Cmd Command Prompt)

Creating bootable USB without any software in Windows 10 is the cleanest and easiest way to make a bootable USB without errors. Just follow the steps below to create bootable USB drive which you can use to install Windows on your machine.

Creating a usb pendrive using command prompt is not hard, it is one of the most common ways to create a bootable usb.

This method does not work if your operating sistem is windows xp or windows 8 , you cannot select the primary partition in comand prompt.

You just need to follow these simple steps:

  1. Insert your USB flash drive to your computer.
  2. Search for ‘cmd’ in Windows 10 from the taskbar, Command Prompt will appear. Alternatively, you can also open the  Command Prompt by pressing windows+R at the same time and typing in ‘cmd’ in the ‘Run’ window and hitting enter.
  3. Right click on Command Prompt and select ‘Run as Administrator’ in case you have searched for cmd in the Windows 10 Taskbar.
  4. Once the Command Prompt window appears, type diskpart and hit enter. Wait until the diskpart utility runs in another window.
  5. In the new diskpart window, type list disk and hit enter. It will show you all active disks on your computer.
  6. Most probably, you will see two Disk types.

    • Disk 0 for hard drive and,
    • Disk 1 for your USB Flash Drive with its total capacity.

    Since we are going to work on to create bootable USB drive, we will work with Disk 1.

  7. Type select disk 1 in the same windows and hit Enter. You will get a message‘Disk 1 is now the selected disk’. That means, any further operation that you do will affect your disk 1 directly.
  8. Type clean and hit Enter to remove all of the data in the USB drive. Clean command will format your bootable drive. You will get a message like ‘Diskpart succeeded in cleaning the disk’.
  9. Type create partition primary and hit Enter. You will get a message like Diskpart succeeded in creating the specified partition.
  10. Type select partition 1 and hit Enter. It will choose partition 1 for setting up it as an active partition.
  11. Type active and hit Enter. It will activate the current partition.
  12. Type format fs=ntfs quick and hit Enter. This command will format your current partition as NTFS file system quickly.
  13. After the format is done you have to continue Type assign (now you will notice that the usb drive changed its letter to (H): or (G))→exit (this command will exit the disk part function)
  14. Type exit and hit Enter. Exit command will close the Diskpart program. But do not close the command prompt Windows.

Copying files from an ISO image on your PC/DVD to USB manually:

Now you have to copy all the files in the windows folder to your usb drive.  This will make your USB drive bootable.
Now bootable USB drive is ready to be used, You can now restart your pc and boot from the usb hard drive.