How to Create a Bootable USB Drive Using Command Line

I use this technique all the time so I just stole the instructions for myself here.

  1. Insert the USB drive.
  2. Open a command prompt as administrator and type diskpart
  3. Type list disk Note the number of the USB drive.
  4. Type select disk <x> Where <x> is the disk number.
  5. Type clean << disk will be wiped out!
  6. Type create part pri
  7. Type select part 1
  8. Type format fs=fat32 quick  (or fs=ntfs if needed)
  9. Type active
  10. Type exit
  11. Now copy contents of bootable CD-ROM or other image to the drive.

I’ve used this for multiple Linux CDs as well as Windows 10 installer and more.