Making a Bootable USB Drive using CMD in Windows.

Roy Murage
3 min readAug 18, 2023

--

Support the writer using the button on the bottom of the page.

Well,

As everyone knows, a computer must have an Operating system to be useful. An operating system makes it easy to navigate different features of the Windows system.

In this tutorial, we gonna talk about how we can create a bootable flash drive using Windows command prompt.

Open your computer command prompt by navigating to the home button and searching “command prompt”.

Click on the program to launch it. Once open, type Diskpart.

Diskpart in windows CMD

A separate CMD window will appear as follows.

Diskpart in a separate window

Type list Disk to list the available disks in your system. This includes the logical & physical disks as below. In my case, I have two disks — my computer's hard disk (Disk 0)and the Flash drive(Disk 1) 238Gb & 14GB respectively.

list Disk in Diskpart

Type select disk 1 which will select the disk labeled as 1 which is the flash drive. Diskpart should indicate that the disk is selected.

Select Disk 1

Type clean to clean the selected disk. Diskpart should show that the selected disk is cleaned.

Clean in Diskpart

Type create partition primary to make room for your Windows operating system that will be used to boot your computer.

create partition primary

Type select partition 1 to make sure that space for the Windows OS is preserved.

select partition 1

Type active to make the partition active so that it can be able to boot a computer. Please note that only fixed MBR partitions allow this command.

For other partition architectures, please ignore the command.

active command in Diskpart

Type format fs=fat32 quick to format your USB drive. This command formats the USB in FAT32 (File Allocation Table) format.

For larger Disks with storage of 32GB and over please consider using format fs=ntfs quick.

format fs=fat32 quick

Wait for the percentage to complete and type exit to quit the Diskpart.

YOUR FLASH DRIVE IS NOW BOOTABLE AND IS READY FOR BOOTING ANY WINDOWS COMPUTER.

Lastly, open your File Explorer and copy the Windows 7/8/10/11 .iso or the extracted files file(s) to your bootable flash drive.

In order to boot your computer with the USB drive, insert the USB into the computer with no Operating system and power it on while pressing the Boot Menu key. This will open the Boot menu and you should select the option indicating the name of your USB or else the MASS AI STORAGE.

Kudos!!! your computer will boot with your new Operating system.

--

--

Roy Murage
Roy Murage

Written by Roy Murage

A cybersecurity Analyst specialized in Blue Team Security. Network Security | Digital Forensics |

No responses yet