Creating Bootable Pen Drive Using Windows Command Prompt

Home » How To --> Windows » Creating Bootable Pen Drive Using Windows Command Prompt
  • 12-0-USB-Bootable-Media
How To --> Windows, Windows
Making a pen drive bootable is possible in Windows7 & Windows8 operating system. Formatting a computer to install fresh Windows OS with a CD/DVD drive is not very good because it takes too much time to install fresh Windows operating system. There can also be a problem for many people that CD/DVD drive doesn’t work properly. So this can be a problem for them. Today laptop or desktop comes many USB ports. So there is no need of CD/DVD drive to format a system. Formatting is very fast and easy with flash drive/pen drive and also no software is required for this method. Windows7 or Windows8 command prompt can do the work with few lines of command. Just follow this tutorial. Start your command prompt.  For windows7 users: Go to “Start” button and click. Write “cmd” then cmd icon will appear on the top of the panel. (Fig.1)
Starting Windows CMD

Fig.1-Starting Windows CMD

“Right click” on the cmd icon and click “Run as administrator”. (Fig.2)  
Running Command Prompt As Administrative

Fig.2-Running Command Prompt As Administrative

It will open the command prompt. (Fig.3)
Windows 7 CMD Window Pops Up

Fig.3-Windows 7 CMD Window Pops Up

For windows 8 users: Press “Windows key” and press “c”. You will see the command prompt icon. “Right click” on the command prompt icon and click “Run as administrator” from the bottom bar. (Fig.4)
Windows 8 CMD Window Pops Up

Fig.4-Windows 8 CMD Window Pops Up

It will open the command prompt like in Fig.3 Now following steps are same for the windows7 and 8 OS. Type “diskpart” inside the command prompt and hit “ENTER”. (Fig.5)
Type diskpart And Enter

Fig.5-Type diskpart And Enter

It will good before going to next step that you should disconnect all other external hard disk, flash/pen drive etc. because accidently these drive can be formatted. So taking precaution is good. Only one pen drive with minimum 4 GB should be connected. Save all the data from the pen drive because it will be formatted in one of the following step. After last step type “list disk” inside the command prompt and hit “ENTER”. (Fig.6)
Type list Disk And Enter

Fig.6-Type list Disk And Enter

This will show all disk connected to the system like DISK 0, Disk 1, and so on with “Status”, “Size” , “Free” etc.. We can recognize the pen drive with size. Disk 0 will be the system disk in which the windows OS is installed. In this tutorial Disk 1 is the pen drive (3855MB=4GB). This pen drive is going to be a bootable pen drive. Type “select disk 1” inside the command prompt and hit “ENTER”. It will select the disk 1 (pen drive) for all coming steps. (Fig.7)  
Type select Disk 1 And Enter

Fig.7-Type select Disk 1 And Enter

Type “clean” and hit “ENTER”. It will erase all the data from the pen drive. (Fig.8)
Type clean And Enter

Fig.8-Type clean And Enter

Type “create partition primary” and hit “ENTER”. It will create a primary partition in pen drive. (Fig.9)
Type create partition primary And Enter

Fig.9-Type create partition primary And Enter

Type “select partition 1” and hit “ENTER”. It will select the partition created in the last step. (Fig.10)
Type select partition 1 And Enter

Fig.10-Type select partition 1 And Enter

Type “format fs = ntfs quick” and hit “ENTER”. It will format the pen drive quickly with NTFS file type. (Fig.11)
Type format=fs quick And Enter

Fig.11-Type format fs=ntfs quick And Enter

Type “active” and hit “ENTER”. It will make partition as active for booting after restarting the computer. If this step is missed then computer will not boot from the pen drive. (Fig.12)
Type active And Enter

Fig.12-Type active And Enter

Type “exit ” and hit “ENTER” to close the diskpart and close the command prompt window. (Fig.13)  
Type exit And Enter

Fig.13-Type exit And Enter

Now the pen drive has become bootable. Now all the files from root of Windows operating system setup DVD or ISO has to copy inside the pen drive root. So open the Windows setup file from DVD or ISO and copy all file by selecting with “Ctrl+A” and paste it inside the pen drive’s root folder as shown in the figure. (Fig.14)
Copying All Files And Pasting It

Fig.14-Copying All Files And Pasting It

After complete copy, the pen drive will be a bootable for Windows 7 and Windows 8 OS completely. You just need to “Restart” your computer. “Restart” your computer. When BIOS screen appears then press “F12” key. It will show the options to boot from CD/DVD drive, hard disk and pen drive. Just scroll down to pen drive and hit “Enter”. Your system will boot from pen drive. Now you can install windows OS. That’s it. Enjoy…




    on May 13 at 11:37 AM - Reply

    Thanks you

  2. Dharmendr

    on Mar 11 at 11:58 AM - Reply

    The Great Idea to make bootable pen drive with cmd commands…….

  3. Alok Tiwari

    on Feb 25 at 8:03 AM - Reply

    after completed each step when i want to paste the iso file folders in pd then does not open, and a window comes to the screen and ask for formate the pd first. anyone..

    • Randy Posh

      on Mar 3 at 3:15 AM - Reply

      format is not done properly. try to format it again.

      or you may have forget to “active” it after formatting.

      hope this would help.

  4. digant kumar devashish

    on Feb 24 at 8:50 PM - Reply

    good work

  5. Eben

    on Feb 22 at 2:54 PM - Reply

    it work my dear FRds

  6. moni

    on Feb 6 at 9:40 PM - Reply

    when to use this bootable pendrive concept

  7. akshay

    on Feb 4 at 5:34 PM - Reply

    after active command my pendrive is not showing in my computer any solution plz help me

  8. Tajinder

    on Jan 16 at 1:54 PM - Reply

    It really works

  9. Mantosh

    on Jan 14 at 11:48 PM - Reply

    when I type select disk 1 it show wrong command. so give me a right ans

  10. ritik

    on Jan 10 at 12:54 PM - Reply

    I have followed the process to use my pendrive as bootable but i had done the half process and shut down my pc after that I start my PC and pluged it but when i opened my pendrive it says please insert removable media than messege came says to format it but when I tried to format it shows an error that windows unable to format it please help me my pendrive is very important for me thank you in advance

  11. Vivian

    on Jan 5 at 11:56 PM - Reply

    After ur active command hit the “assign” command and then hit exit command your pendrive would be visible.

  12. kinshu

    on Dec 31 at 2:18 PM - Reply


  13. Manav

    on Dec 21 at 1:44 PM - Reply

    after type active on cmd need to restart the computer I got confuse please answer me in my gmail…

  14. ASIT

    on Dec 18 at 10:49 PM - Reply

    good process

  15. Ashutosh

    on Dec 14 at 3:41 PM - Reply

    Thanks….. I will try.

  16. mahendra

    on Dec 4 at 7:53 PM - Reply

    how to make bootable pendrive for windows 10 from iso file

  17. Gambo

    on Dec 4 at 5:07 PM - Reply

    Mi pendrive space reduced to 4mb from 8gb any solution

  18. Gambo

    on Dec 4 at 5:05 PM - Reply

    Sir, after exit button on command prompt I have my original size of my pendrive reduced to 4mb from 8gb..any solution to recover my lost pendrive space.

  19. Dilip puskar

    on Dec 3 at 7:26 PM - Reply

    simple and easy.. thank you

  20. Hari Bose

    on Nov 28 at 7:13 PM - Reply

    It’s very easy and useful

  21. Swarag

    on Nov 26 at 5:49 PM - Reply

    After when completed the above process my pendrive is not been shown in “My Computer” what to do now how to regain my pendrive.

  22. Fasal Rahman

    on Nov 23 at 2:51 PM - Reply

    Thanks a lot its very useful

  23. Veku Jeremy Duke

    on Nov 15 at 11:30 PM - Reply

    This is gooooood, simple, and perfect.

  24. karan

    on Nov 14 at 7:41 PM - Reply

    hay i want to boot my Pen drive to put OS plz tell me or email me plz


    on Nov 6 at 8:06 PM - Reply

    after type active on cmd we need to restart the computer before copying the files. please inbox me sir


    on Nov 6 at 8:03 PM - Reply

    after type active on cmd need to restart the computer I got confuse please answer me in my gmail…

  27. An Du jeery ii

    on Nov 5 at 12:25 PM - Reply

    Hvy !dea man

  28. durgesh

    on Nov 3 at 10:09 PM - Reply

    Very vice post

  29. Harshit Agarwal

    on Nov 2 at 1:45 PM - Reply

    Thanks very simple method.


    on Nov 2 at 12:46 PM - Reply

    Thank you for this helpful article

  31. Rohit

    on Oct 31 at 9:52 AM - Reply

    Could I do same steps with my 32 GB sd card ?

  32. vijay

    on Oct 31 at 9:09 AM - Reply


  33. shantanu

    on Oct 27 at 11:22 AM - Reply

    Thank you…….it helps me a lot

  34. saravana

    on Oct 15 at 4:48 PM - Reply

    Super its working

  35. Kasi

    on Oct 13 at 3:49 PM - Reply

    Thanks Bro….its really helpful

Leave a Reply