Categories Menu

Posted by | 274 comments

Bootable usb pendrive using cmd

Creating a usb pendrive using command prompt is not hard, it is one of the most common ways to create a bootable usb.

      This method does not work if your operating sistem is windows xp or windows 8 , you cannot select the primary partition in comand prompt.

       You just need to follow these simple steps:

  1. First step is to obtain the windows files from somewhere and save them to a folder in your pc. You can rip a windows dvd , or if you have the iso image file you can open it with magic disc or daemon tools or even winrar , and you need to copy the whole content to a folder anywhere in your pc , you just need to make sure you know where it is located.
  2. Make sure your usb stick is inserted, go to start search cmd , right click the  file and select run as administrator. The command prompt will appear, now you need to write the following comands:
  3. diskpart→list disk→select disk 1(chose  the usb device, you will recognize it by its size)→clean(this will erase the usb)→create partition primary→select partition 1→active→format fs=ntfs(this will format the usb drive and will take 10-15 minutes)→Untitled 5
  4. After the format is done you have to continue writting  in command promt :  →assign(now you will notice that the usb drive changed its letter to (H): or (G))→exit(this command will exit the disk part function)
  5. Now you have to write the path to the executable file in your windows saved folder , make sure that in your windows folder you have the boot folder with the bootsect executable file.Untitled 8
  6. In my case the command goes like this:   E:→cd win 7 sp1→

           →cd boot→bootsect.exe/nt60 h:(h is the letter of the usb drive ,this comand will update the boot core)→exit (this will exit command prompt).
Untitled 6

  1. Now you have to copy all the files in the windows folder to your usb drive. Untitled 7
  2. ALL DONE. You can now restart your pc and boot from the usb hard drive.


  1. trustable.. thanks for ur help.

    • Very good work thanks……….

      Most helpful no need to go any where……

  2. good one thanks for this tutorial…

    can tell me that how we can make a particular exe file through which by only just one click we can make bootable pendrive…………

  3. you can add “quick” at the end of “format fs=ntfs” and it will take 0.5-1 minute instead of 10-15.
    like this “format fs=ntfs quick” ;)

  4. I am using window 7. I want to setup XP. I have completed four steps but in order to go through the 5th step I couldn’t find any BOOT FOLDER or BOOTSECT file. I have downloaded XP software twice from different sources but didn’t find a way out. please tell me what should I do?

    • put all files into your pen drive directly after you exit from command prompt…
      and now close the command prompt and just copy files..

  5. nice

  6. any possibilities to install windows 7 in windows 8… i need both os in single laptop .. help me thanks in advance…

    • sure…install them in different partition… or use VMware instead….


  8. While selecting partition, if it shows “There is no partition selected.” error, first you need to create partition using “create partition primary”

  9. why the last step can’tt get successfully updated NTFS file system bootcode

    I get the result “could not map drive partitions to assoiated volume device objects. access is denied”

    How to solve this problem ? tq

  10. thanks it is very usefull

  11. What? DOS commands, when we have a storage management console right there in the administrative tools on an Windows version I am aware of?

    The stick I prepared in DOs looks like a mirror image of the one I created in the storage management facility of Windows 7.

    Further, my Windows CD’s have no boot folder, no bootsect executable, they only have a setup.exe file.

    So how do I make a bootable USB stick for Windows?

  12. I have completed all steps but in the 5th step what should i do in case of Ubuntu. reply fast plz…

  13. thats good idea for make bootable pendrive.

  14. Its good thing for make a bootable pendrive

  15. NIC BRO

  16. thanks very much
    this trick will be awesome and very useful
    my searching on how to make pendrive bootable was end here!!!!!!!!!!!!
    NICE WORK keep it up

  17. When i am bootable my pendrive from cmd then not come disk 1 ,
    what i do give me ans..

  18. good blog…really helpful for me.. nothing is stronger than CMD..

  19. I was able to make the bootable drive. Selected the boot sequence accordingly.
    When trying to boot the system from the drive, getting some dll files error.
    And it is not booting up from that bootable HDD.

    Suggestions ??

  20. it’s really helpful thanks…..
    keep it up.

Post a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>