How to Create Bootable USB from Command Prompt

Bootable USB is essential especially if you have netbook which doesn’t come with optical drive. We are going to discuss how to make one with only few commands from command prompt on windows vista/ windows 7.

To make bootable USB, we are going to use DISKPART command available in windows vista/7

  • Open command prompt by running CMD in run windows
  • Run diskpart
  • DISKPART
  • At the DISKPART> command prompt, enter LIST DISK to find the USB device’s disk number.
  • LIST DISK
  • Select the USB as active by entering SELECT DISK and its disk number (for example, if the USB drive is listed as disk 3, enter SELECT DISK 3 )
  • SELECT DISK 3
  • delete all the existing files from the USB by entering CLEAN (This command will wipe the HDD quickly)
  • CLEAN
  • Create a new partition : CREATE PARTITION PRIMARY
  • CREATE PARTITION PRIMARY
  • Select the partition of USB drive by giving SELECT PARTITION command
    SELECT PARTITION 1
  • Set the partition as active by entering ACTIVE
  • ACTIVE
  • Quick-format the partition as bootable NTFS: FORMAT FS=NTFS QUICK
    as bootable FAT: FORMAT FS=FAT32
  • FORMAT FS=NTFS QUICK
    FORMAT FS=FAT32 QUICK
  • Assign the drive letter to USB using ASSIGN command
  • ASSIGN
  • Leave DISKPART by typing in EXIT
  • EXIT

At this point the USB become bootable but if you want to make Windows vista/7 bootable then you may need another step to make it.

  • goto windows vista/7 DVD. Example E: is your DVD drive(real/virtual) give the command E: then change to boot folder
  •         E:
            CD BOOT
            
  • Now give the command BOOTSECT (Where “F” is your USB drive letter)
  • BOOTSECT.EXE/NT60 F:
  • copy the remain windows files to make it windows bootable USB
Gouri Shankar is Tech Geek and Java, PHP and WordPress developer from India.

  • Sachin Shrvstv

    I am very thankful to you for posting the steps of making bootable USB . Now i learned how  to make bootable USB. Thanks a lot .