# Bootable Usb Flash Drive Using-cmd

Hi Everyone, in this blog, we are going to see about creating a Bootable USB Flash Drive Using CMD.

When you use a Bootable Flash drive it allows you to boot the computer from the files present on the flash drive rather than your inbuilt hard drive or SSD. Below I have listed out the uses and steps of creating a bootable USB Flash Drive using CMD.

# WHAT IS THE USE OF CREATING A BOOTABLE USB FLASH DRIVE?


- To use as a `recovery system` to repair your PC.
- To `store an image` of the operating system.
- To `upgrade/downgrade` to any operating system version.
- To use a `portal operating system` on a foreign computer.
- To boot after a `PC emergency` screen appears.
- For the `reinstallation` of the operating system.
![Untitled design.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1651756416926/uanfGyKpE.png align="left")

## ***REQUIREMENTS:***

1. A USB drive with at least 4GB of memory for 32-bit/8GB of memory for 64-bit.
                       
2. A computer/laptop.

3. An operating system zip/image file.

# **HOW TO MAKE A BOOTABLE FLASH DRIVE?**  

**STEP 1:** Insert the USB drive into your computer’s USB port.

**STEP 2:** Search for the “cmd”-[command prompt] application in the Windows start menu, then right-click and select “Run as administrator”.

**STEP 3:** Type the command “diskpart” and click enter. This starts the storage device manager.

![image_2022-05-05_192944791.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1651759185450/YZCdN9TU_.png align="left")

**STEP 4:** Enter the command “list disk” to display all available storage devices.


![image_2022-05-05_193257074.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1651759377140/sA76alMxJ.png align="left")

You can identify your USB by its storage capacity, and it’s usually listed as “disk 1”. In the system partition, “disk 0” is usually your PC's main storage.

**STEP 5:** Based on the assumption that your USB has the labeled “disk 1”, enter the command “select disk 1” to select it (or the corresponding “disk 2”, etc.).


![image_2022-05-05_194230479.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1651759950647/YFxj9hY3z.png align="left")


**STEP 6:** Enter the command “clean” to delete all files from the USB.


![image_2022-05-05_194902334.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1651760342464/IPQbCQE5W.png align="left")

**STEP 7:** Enter the command “create partition primary” to create a main partition.


![image_2022-05-05_195820286.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1651760900382/FKWVJjTFK.png align="left")

**STEP 8:**Enter the command “select partition 1" to select the newly created main partition.


![image_2022-05-05_200510682.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1651761310793/k8fmkdOc6.png align="left")

**STEP 9:** Enter the command "active" to Activate the partition.


![image_2022-05-05_200836993.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1651761517047/XnJppmeCj.png align="left")

**STEP 10:**Now enter the command “format fs=ntfs" to change the format of the Pendrive usually from fat32 to NTFS, it takes about 15-20mins based on your PC's performance, and to make it in time enter the command "format fs=ntfs quick"-this command changes the format within a minute.


![image_2022-05-05_201917287.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1651762157393/7E0XaAo4y.png align="left")

**STEP 11:** After completing that process enter the command "assign", which automatically assigns a letter to your USB drive. 


![image_2022-05-05_202559442.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1651762559547/z_wMK9Xp9.png align="left")

**STEP 12:** Enter the command "exit" to close the diskpart.


![image_2022-05-05_203141819.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1651762901909/BIeP0bvHi.png align="left")

AT LAST COPY THE OPERATING SYSTEM ZIP/IMAGE FILE TO THE USB FLASH DRIVE.  

**LIST OF COMMANDS USED:**

1.diskpart

2.list disk

3.select disk 1

4.clean

5.create partition primary

6.select partition 1

7.active

8.format fs=ntfs / format fs=ntfs quick

9.assign

10.exit


> That's it, folks. Thanks for reading if you have any doubts regarding the topic, please post them in the comments section so that I can help you out.




          



