How to Create Bootable USB from Command Prompt

Bootable USB is essen­tial espe­cial­ly if you have net­book which does­n’t come with opti­cal dri­ve. We are going to dis­cuss how to make one with only few com­mands from com­mand prompt on win­dows vista/​win­dows 7.

To make bootable USB, we are going to use DISKPART com­mand avail­able in win­dows vista/​7

  • Open com­mand prompt by run­ning CMD in run win­dows
  • Run diskpart
  • DISKPART
  • At the DISKPART> com­mand prompt, enter LIST DISK to find the USB device’s disk num­ber.
  • LIST DISK
  • Select the USB as active by enter­ing SELECT DISK and its disk num­ber (for exam­ple, if the USB dri­ve is list­ed as disk 3, enter SELECT DISK 3 )
  • SELECT DISK 3
  • delete all the exist­ing files from the USB by enter­ing CLEAN (This com­mand will wipe the HDD quick­ly)
  • CLEAN
  • Cre­ate a new par­ti­tion : CRE­ATE PAR­TI­TION PRI­MA­RY
  • CREATE PARTITION PRIMARY
  • Select the par­ti­tion of USB dri­ve by giv­ing SELECT PAR­TI­TION com­mand
    SELECT PARTITION 1
  • Set the par­ti­tion as active by enter­ing ACTIVE
  • ACTIVE
  • Quick-for­mat the par­ti­tion as bootable NTFS: FOR­MAT FS=NTFS QUICK
    as bootable FAT: FOR­MAT FS=FAT32
  • FORMAT FS=NTFS QUICK
    FORMAT FS=FAT32 QUICK
  • Assign the dri­ve let­ter to USB using ASSIGN com­mand
  • ASSIGN
  • Leave DISKPART by typ­ing in EXIT
  • EXIT

At this point the USB become bootable but if you want to make Win­dows vista/​7 bootable then you may need anoth­er step to make it.

  • goto win­dows vista/​7 DVD. Exam­ple E: is your DVD drive(real/virtual) give the com­mand E: then change to boot fold­er
  •         E:
            CD BOOT
            
  • Now give the com­mand BOOT­SECT (Where “F” is your USB dri­ve let­ter)
  • BOOTSECT.EXE/NT60 F:
  • copy the remain win­dows files to make it win­dows bootable USB