Making Bootable pen drive with Command Prompt CMD

Creating a bootable pen drive using Command Prompt in Windows involves using the “diskpart” utility and “bootsect” command. Before proceeding, please note that this process will erase all data on the USB drive. Ensure you have a backup of any important data before proceeding. Also, make sure to select the correct USB drive to avoid accidentally formatting other drives. Follow the steps below:

Step 1: Insert the USB pen drive into your computer’s USB port.

Step 2: Open Command Prompt as an administrator. To do this, search for “Command Prompt” in the Start menu, right-click on “Command Prompt,” and select “Run as administrator.”

Step 3: In the Command Prompt window, type “diskpart” and press Enter. This will launch the diskpart utility.

Step 4: In diskpart, type the following commands one by one and press Enter after each command:

a. Type “list disk” and press Enter. This will display a list of all connected disks. Identify your USB drive based on its size. Note the Disk number associated with your USB drive (e.g., Disk 1).

b. Type “select disk X” (replace X with the Disk number of your USB drive) and press Enter.

c. Type “clean” and press Enter. This will erase all data on the selected USB drive.

d. Type “create partition primary” and press Enter. This will create a primary partition on the USB drive.

e. Type “select partition 1” and press Enter. This selects the partition you just created.

f. Type “active” and press Enter. This marks the selected partition as active (bootable).

g. Type “format fs=ntfs quick” and press Enter. This will format the partition with the NTFS file system quickly.

h. Type “assign” and press Enter. This assigns a drive letter to the USB drive.

i. Type “exit” and press Enter to exit the diskpart utility.

Step 5: Now, you need to copy the boot files to the USB drive. In the Command Prompt window, navigate to the Windows installation files. Suppose your Windows installation files are located in “D:\WinISO” (replace “D:\WinISO” with the correct path to your Windows installation files).

Step 6: Type the following command and press Enter:

“D:” (or the drive letter where your Windows installation files are located)
“cd boot”
“bootsect /nt60 X:” (replace X with the drive letter of your USB pen drive)

This command will copy the necessary boot files to the USB drive to make it bootable.

Step 7: Once the boot files are copied, you can close the Command Prompt window and safely eject the USB pen drive from your computer.

Your pen drive is now bootable and ready to use for booting a computer. Remember to adjust your computer’s boot settings to boot from the USB drive if you intend to use it for installing Windows or any other bootable utility.

Leave a Reply

Your email address will not be published. Required fields are marked *