Create a bootable USB via CMD: 10 steps (With pictures)

Vintaytime Staff Vintaytime Staff
4 months ago
Create a bootable USB via CMD: 10 steps (With pictures)

When it comes to installing Windows with a USB drive, you need to first make your USB bootable and then the USB will work like a Windows installation disc. There are so many benefits of installing Windows and other operating systems via USB, such as faster installation, easy to carry and no fear of scratches.

A software called Windows USB/DVD tool developed by Microsoft, allows you to create a bootable windows USB using the ISO file. The software method is easy but, the way command prompt (CMD) make my USB bootable is better than software method and it works all time.

Let’s do it

Before getting started, note that the data from your USB drive will automatically clean and make sure the command prompt is running as administrator. Follow the steps below to create a bootable USB using command prompt (CMD):

  1. Connect the USB drive with PC and run command prompt as administrator. (Windows key + R > Type CMD> Enter)
    Run CMD as administrator
  2. Type Diskpart and press Enter to enable CMD to delete and create disk partitions.
    Type Diskpart
  3. Type List disk and press Enter to display a list of connected disks.
    List disk
  4. Select disk X, Where X is your USB disk number, please see it on above step
    Select disk X
  5. Type Clean and Enter to clean the selected disk. This will delete all data from USB drive.
  6. Type Create partition pri and Enter to create a primary partition on the current disk.
    Create partition pri
  7. Type Select part 1 and Enter to select the specified partition and gives it focus.
    Select part 1
  8. Type Format fs=ntfs quick and Enter to format the volume or partition and specifies the NTFS file system. You don’t need to wait with quick formatting.
    Format fs=ntfs quick
  9. Type Active and press Enter to mark the current partition active.
  10. Exit to exit diskpart.

What’s next?

Now, you need to copy Windows installation files to the USB drive and begin your installation. If you have an ISO file, then use 7-ZIP or Winrar to extract installation files out from ISO. In order to boot a USB drive on a PC, you must change the boot device order from BIOS settings. By default, the first boot device is CD/DVD.

How do I revert USB from bootable to default?

You can continue to use the bootable USB by deleting OS installation files. It will work same as a non bootable drive. In case you’re facing some problems with bootable, then go perform a format on USB by clicking Restore device defaults.

Source link 1: Create a Bootable USB Flash Drive

Source link 2: DiskPart Command-Line Options