How to Create a Bootable PenDrive using CMD

A bootable USB pendrive can be used to install the operating systems such as Linux and Windows on the computer. Although users use third-party software such as Rufus to create a Bootable USB drive, it is also possible to create a bootable pendrive using CMD (command prompt).

On Linux distribution, we cannot create a bootable USB without using a third-party tool; and also on an earlier version of Windows XP and before.

Create a Bootable PenDrive

  1. First of all, connect the USB drive to the computer.
  2. Press the Windows+R shortcut key to open the Run box.
  3. Type “Diskpart” in the Run box, and then hit the enter button.
  4. It will open the Diskpart.exe in the command prompt.
  5. Now type the following command and hit the enter button.
Command: list disk
How to make a Bootable USB PenDrive using CMD

This command will list all the mounted disk. You can easily identify your USB drive by its size.

  1. Select your USB PenDrive by using the following command.
Command: select disk 1

Where 1 is the order number of the USB drive, this may be different on your computer.

how to Create a Bootable PenDrive
  1. Next, type the following command to clean the disk.
Command: clean
  1. Type the following command and hit the enter button to create a new primary partition on the USB PenDrive.
Command: create partition primary

“Diskpart succeeded in creating the specified partition”

  1. Now, select the primary partition you created on the USB drive. To do this, type the following command in the command prompt, and then hit the enter button.
Command: select partition 1

“Partition 1 is now selected primary Partition”

How to make a Bootable USB PenDrive using CMD
  1. Once the partition is selected, type the following command and hit the enter button to format the USB drive.
Command: format fs=ntfs quick
  1. Once the drive is formatted, type the following command and hit the enter button.
Command: active
Create a Bootable PenDrive
  1. Type “Exit” to exit the command prompt.
  2. Now copy all the installation files and data from the OS(Windows/Linux/etc.) drive to your USB pendrive.

Once you’ve done this, your Bootable PenDrive is ready to use. Insert your USB drive on any computer, and install the operating system.

This was one of the easiest ways to create a bootable PenDrive without using any third-party tool. Similarly, you can also create a bootable drive for Linux installations.

Leave your reply here

Scroll to Top