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. Thank You For Post this Article This is Working Best

  2. If i want to update the boot core file from windows 7 to windows 8. Is Step-6 is enough or should start i from beginning i.e., from disk parting ??
    Thanks in advance..

  3. working perfectly…………thanks for this post…………….

  4. Thanks Sir, it Works ….!!!!

  5. To format quickly
    Format fs=ntfs quick

  6. I am wanting to do install kali linux using above methhod, after reaching the boot folder theres a efi.img folder in it, so what could should i use instead of bootsect.exe/nt60 h

  7. Thank You Very Much, its wornderfull website

  8. I have done these steps, but when I was copying window then my pc was hang and I restrated the pc .when my pc was repopned I again stared copying window then it came that you need format the pendrive I click on format button then it came unabe to format, after that it came that your file is courrupt.after that my pendrive was not working.
    Now what I should do to make it in working condition??

  9. Very clearly written, thanks for this tutorial.

  10. Thanks for guidence, god bless you for all

  11. It says could not map drive partitions to the associated volume device object


  13. Ty sir, so useful.

    And btw. can i set a letter for my bootable USB?

  14. Thank you so much…. It works so well..

  15. this is a big help thank you sir…

  16. how to unboot bootable pen drive

  17. nice website
    this is very useful for me
    thank you

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>