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
- First of all, connect the USB drive to the computer.
- Press the Windows+R shortcut key to open the Run box.
- Type “Diskpart” in the Run box, and then hit the enter button.
- It will open the Diskpart.exe in the command prompt.
- Now type the following command and hit the enter button.
Command: list disk
This command will list all the mounted disk. You can easily identify your USB drive by its size.
- 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.
- Next, type the following command to clean the disk.
- 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”
- 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”
- Once the partition is selected, type the following command and hit the enter button to format the USB drive.
Command: format fs=ntfs quick
- Once the drive is formatted, type the following command and hit the enter button.
- Type “Exit” to exit the command prompt.
- 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.