Open In App

How to Create a Bootable USB Flash Drive in Windows Using CMD

Last Updated : 21 Jun, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

Want to install a new Windows operating system using a USB drive and looking for a way to make it bootable? You can do it easily with a built-in tool on your computer—CMD (Command Prompt) without using any third-party software.

In this guide, we’ll show you 12 easy steps to create a bootable USB flash drive using CMD. You'll learn how to format the drive, set it up properly, and prepare it to install Windows (or even Linux). Let’s get started!

How-to-create-a-Bootable-USB-Flash-drive
How to Create a Bootable USB Flash drive

Why Use CMD to Create a Bootable USB?

CMD is a built-in tool in Windows that provides full control over disk operations. It allows you to format drives, mark partitions as active, and prepare USB devices for booting all without downloading any software.

Steps to Create a Bootable Windows USB Using CMD

Here are the 12 steps to create a bootable USB flash drive using Command Prompt:

Step 1: Open CMD as Administrator

Run the Command Prompt in Administrator mode. There are two ways to do the same:

  • Press Start , Search for CMD , right-click on it, and select Run as Administrator. Boot-USB-using-CMD-00
  • Or, press ctrl + shift + Esc to Open Task Manager, click on File -> Run new task, search for CMD and press enter. Boot-USB-using-CMD-001

Step 2: Connect the USB Drive

  • Insert the USB Device that you want to make bootable.

Step 3: Use Diskpart Command

  • Type the command diskpart and then press Enter.
Boot-USB-using-CMD-01

Step 4: Use List Disk Command

  • Type the command list disk to display a list of all the available storage devices on your system. Press Enter to continue.
Boot-USB-using-CMD-02

Step 5: Select the USB Drive

  • Identify your USB disk from the list. Usually, it's labeled as Disk 1. Select it using:

Note: Generally, it is marked as Disk 1, it might vary from system to system. Make sure not to select any other available disk as it will get formatted.

Boot-USB-using-CMD-03

Step 6: Format the USB Drive

  • To make a pen drive bootable, there is a need to format it to clean the existing data. This can be done by the use of clean commands.
Boot-USB-using-CMD-04

Step 7: Create Partition

  • Type the command create partition primary and press Enter. This will make the disk primary and ready to be made bootable.
Boot-USB-using-CMD-05

Step 8: Select Partition as Primary

  • To choose the partition created as primary, type the command select partition 1, and press Enter.
Boot-USB-using-CMD-06

Step 9: Format as NTFS

  • Before making the disk bootable, you need to format it as NTFS if you are using legacy BIOS. This can be done with the use of a command format fs=ntfsquick and press Enter.

Note: If you are using Unified Extensible Firmware Interface or in simple words UEFI BIOS then you must type in the following command instead. Most modern systems are UEFI systems, you can check your system manufacturer's website to know whether your system is legacy BIOS or UEFI BIOS.

format fs=fat32 quick

Boot-USB-using-CMD-07

Step 10: Use Active Command

  • Type the command active and press Enter. This will mark the primary bootable partition as Active.
Boot-USB-using-CMD-08

Step 11: Use Diskpart to Exit

  • Type the command exit to exit DISKPART and press Enter. Now close the command prompt window.
Boot-USB-using-CMD-09

Step 12: Copy Data to Bootable

  • Now copy all the data from the OS installation disk to your USB drive that is just been made bootable.

Conclusion

Creating a bootable USB flash drive using CMD is a reliable and efficient way to install or repair your Windows (or Linux) system. It gives you full control, doesn’t require third-party software, and works across both BIOS and UEFI systems. Follow these steps, and you’ll have a fully functional bootable USB ready to go!


Next Article
Practice Tags :

Similar Reads