The Wayback Machine - https://web.archive.org/web/20240619144001/https://www.geeksforgeeks.org/create-a-bootable-pendrive-using-cmd/
Open In App

How to Create a Bootable USB Flash drive in Windows/Linux using CMD?

Last Updated : 30 Jan, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

A Bootable USB is a disk that is used to boot up a system for the installation of an Operating System. If you want to use any particular USB Driver for Installation of any operating system, there is a need to make it bootable along with the ISO File of the OS. To Create a Bootable Windows/Linux USB, there are some methods present.

However, the Creation of Bootable USB Software could be easily achieved with Command Prompt or Terminal. A Bootable USB Windows can be made using a command line only for systems that have Higher Versions of Windows (7/8/8.1/10). Early versions of Windows i.e. before Windows 7, can’t be used for making a Bootable Windows/Linux Pendrive.

Creating-a-Bootable-Pendrive-using-cmd

In this article, we will discuss the necessary steps required to Make a Bootable Pendrive for Windows or Linux using CMD in no time.

Quick Preview of Steps to Create Bootable USB using CMD:

  1. Launch CMD in Administrative format.
  2. Enter the Pendrive to the device.
  3. Find out the Disk Name using commands.
  4. Select the USB Drive file and format it.
  5. Make it ready using the Active command.

Quick Highlights on Bootable USB Devices:

  • Bootable USB Devices have an OS that can be used on devices without installing it.
  • The Bootable USB Device is not used for installation purposes.
  • Bootable Pendrive is an easy choice to portability carry any OS with you.
  • After inserting it on any device, it doesn’t leave any mark of its insertion.
  • The Bootable USB Devices are well secure to handle the Operating Systems.

Steps to Create a Bootable Windows/Linux USB Using CMD

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

  • Search for CMD in the Start menu, right-click on the command prompt, and click on Run as Administrator. Boot-USB-using-CMD-00
  • Open Task Manager, go to File -> Run new task, search for CMD and press enter. Boot-USB-using-CMD-001

Step 2: Connect the USB Device to the computer that is to be made bootable.  

Step 3: Type the command diskpart and then press Enter.

Boot-USB-using-CMD-01

Step 4: 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 disk that is your pen drive. To choose the disk, type the command select disk X in this case, select disk 1 and press Enter.

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: To make a pendrive 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: 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: To choose the partition created as primary, type the command select partition 1, and press Enter.

Boot-USB-using-CMD-06

Step 9: 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=ntfs quick 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: Type the command active and press Enter. This will mark the primary bootable partition as Active.

Boot-USB-using-CMD-08

Step 11: Type the command exit to exit DISKPART and press Enter. Now close the command prompt window.

Boot-USB-using-CMD-09

Step 12: Now copy all the data from the OS(Windows/Linux/etc.) installation disk to your USB drive that is just been made bootable.

So, these are the simple steps you should execute to Develop Bootable Pendrive on Windows. In this step, every major operation is completed on the Command Prompt not in the Windows Powershell. These are the steps to make Pendrives Ready for Boot after inserting the proper OS there.

FAQs to Create Bootable Windows/Linux USB using CMD

How to create a Bootable USB on Windows using Command Prompt?

To create a Bootable USB Drive on Windows using CMD, the following steps should be executed.

  1. Open Command Prompt in Administrative Format.
  2. Insert the USB Drive.
  3. Select the Disk using the Diskpart command & others.
  4. Format the USB Drivers.
  5. Create a Partition if necessary.
  6. Make it activated using Active Command.

Will the USBs used for making Bootable remove every data?

Yes! The USE Device that will be used for making Bootable Pendrive along with any Operating System ISO file, will remove every content from the device. So, before going for the operation, they back up every data necessary in the device on another device.

Is it secure to make a USB Bootable Device?

Yes, it is completely secure to make a USB Bootable Device for any certain Operating System ISO File. From the device perspective, there will be no issues. Unless you downloaded a Spam ISO file from a third-party website that can cause issues to your pendrive as well as the device where you will insert it.



Similar Reads

How to Create Bootable USB Drive For Windows 11 With Rufus?
Windows 11 is the latest upgrade of the Windows operating system. This is more flexible & useful than the previous version. Windows 10 was replaced by Windows 11. The catchy look of Windows 11 helps a lot to attract more users to it. Also, it has more ability than Windows 10. For such reasons, Windows 11 is getting hits every day. Also, it has
6 min read
How to Create a Multi-ISO Bootable USB Drive?
To create a Multi-ISO USB drive, There are different software to put all the operating systems onto the drive. When you start your computer, you can choose which operating system you want to use. This type of setup is very useful for people who need to use multiple operating systems for their work or other purposes. In this article, We will learn h
4 min read
How to Protect a PC with a USB Flash Drive?
Security and Privacy is one of the most demanding needs in the current world situation. But to ensure 100% security, is still not possible in the current situation as everything and anything that is connected can be easily compromised. But we can still protect our private data from being compromised by protecting our PC with a USB Drive. We can ens
3 min read
How to Install Windows 10 From a USB Flash Drive?
Windows 10 offers ample attractive features that encourage users to download Win 10 to their desktop/PC. Like, there is the Cortana application that acts as a personal assistant, and a virtual desktop can be enabled. Also, Windows 10 comes completely free for the users which is another plus point among all the operating systems. So, here you will l
4 min read
How to Run Windows From a USB Drive?
Windows Operating system is one of the famous OS for personal computing. Windows offers a better User Interface with support for multiple applications and utilities. You can download and use Windows for free; however, you must purchase a product key to use all features. Usually, we see Windows running on stand-alone PCs, but have you ever wondered
5 min read
How to Fix Boot Error "No Bootable Device" in Windows?
Often on Windows OS, the device fails to recognize the Bootable Device leading to a Create Boot Error on Windows. In the Windows No Bootable Device Error, the device failed to load the OS that is present in the USB Driver. However, there's no need to panic as there are simple solutions to resolve this issue. Instead, the Windows Error Message promp
6 min read
How to Create a Virus to Open Multiple CMD Windows Automatically ?
The virus that we are going to create in this article will automatically open up multiple CMD windows in the victim's Windows PC. This is an annoying type of Virus because as per the heading this is capable of opening multiple CMD window screen in front of the user without allowing the user to open any other file that he/she wants to work after the
2 min read
How to Create a File in CMD?
Working on any Windows device is synonymous with working on any certain file on the device. Individual needs to work on different files as well as create new ones on their Laptops or Desktops daily. To create a file on Windows, the File Explorer of Windows is generally used. However, the Windows Command Prompt can be a strong alternative. In normal
4 min read
How to Install Android Applications in Mobile Phone without USB Cables using Android Studio?
Android Studio is the official integrated development environment for Google’s Android operating system, built on JetBrains’ IntelliJ IDEA software and designed specifically for Android app development. After successfully Setting up an Android project, and write down the necessary codes the next task is to run the application on an emulator or on a
2 min read
How to Merge/Hide One File into Another Using CMD in Windows?
In this article, we are going to see how to Merge/Hide one file into another using CMD. By using this we could be able to hide Important Data from another person, or we could be able to send the data securely to others. Mainly this is used in sending the Virus file to the Host PC, to make affect his computer without knowing the user. For hiding the
2 min read
Article Tags :
Practice Tags :