flash drive


A bootable USB drive is commonly used for installing operating systems and is very useful if you want to repair an operating system. As compared to the optical drive, the installation process will be very fast with a USB flash drive.

Disk Part is a command-line disk partitioning utility included in the Windows 2000 and later Microsoft operating systems. It is also very useful for viewing partitions, creating partitions, deleting partitions, and merging partitions.

Create a Bootable USB Flash Drive using CMD

By following the below-mentioned steps, you can easily make your own bootable USB flash drive equipped with the operating system of your choice.

1. Insert a USB flash drive, search for a command prompt, right-click and choose “Run as administrator“.

How to Create a Bootable USB Flash Drive Using CMD

2. Type “diskpart” from the keyboard and hit enter.

3. Type list disk and enter it will display all the available disk on the computer, note the disk number of USB flash drive (for example your USB drive disk number is disk 1)

4. Type select disk 1 and hit enter it will select USB drive.

5 After selecting the USB drive type clean and hit enter, it will delete all the data from USB flash drive, make sure to take backup before formatting.

6. Type create partition primary and hit enter, it will create primary partition in USB flash drive.

7. Type select partition 1 and hit enter, it will select the partition that you have created.

8. Type format fs=ntfs quick and hit enter, it will format the USB flash drive with NTFS file system.

9. Type active and hit enter.

10. Type exit and hit enter.

11. Save the installation files at the root of the USB flash drive.

Follow the below image for a step-by-step guide.

How to Create a Bootable USB Flash Drive Using CMD

The next step is to extract the operating system ISO image file content and save it to the root of your USB flash drive. Then you can boot with your USB drive and proceed to the operating system installation.

You can download the Windows 10 image file by using the Windows 10 installation media.


You can follow our post on how to create Windows 10 installation media.



Disk Part is a command-line disk partitioning utility that helps you manage your computer hard disk. To make a bootable USB flash drive without any software, follow the steps mentioned in this post.

Spread the love

By Feroz Khan

Feroz Khan works as a system administrator with more than 12 years of experience in information technology. He would like to share the knowledge with others that he has gained during his working experience.

5 1 vote
Article Rating
Notify of

Newest Most Voted
Inline Feedbacks
View all comments
5 months ago

Easy steps to follow

Would love your thoughts, please comment.x