Categories Menu

Posted by | 289 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. i did it ,thanx very much …..

    • tried it now but its not working… giving me difficulty after ”leaving diskpart”… please what do i do? thanks

      • open cmd in adminstrater mode

      • Can I know wer you are getting problem

  2. thank you sir, i am very thankful to it

  3. Can i use one pendrive to multi os installation

    • Yes u can

      • e:\>
        cd win 7 sp1
        the sysytem canot find the path specifiled

        in this what is the next step

  4. Herrrh, u guys are awesome! !! U made me feel am genius! Tanx soo much …

  5. how i can make a multiple bootable pendrive using cmd…..

  6. I would recommend writing format fs=ntfs first and then writing active. This could save you a lot of time.

    • Note: – Write “format fs=ntfs quick”. This will format your pen drive very fast.

  7. Getting problem.. computer is showing bootmanager not found when I try to boot using pen drive

  8. This work’s. Thank you

  9. Hi,

    I’m trying to create a thumb drive that will boot to DOS (freedos, doesnt matter) on a modern laptop. Do you have any articles that outline creating a bootable DOS thumb drive? I’ve tried EVERYTHING including using Rufus and downloadable DOS bootable ISO’s … so far no love.

    Thank you

  10. thnx a lot .. it is really helpful.

  11. Thank You very much :) It helps a lot ;)

  12. hey after leaving diskpart i’m triying to update the bootcode bt it does nt work. it shows-
    could not map drive partitions to the associated volume device objects:
    access is denied.
    plz tell me what to do.

  13. its ………………… thanks for that…………..,

  14. Now your pendrive made fully bootable and the only thing which remains now is to copy your windows setup files into the pendrive. You can use your windows installer disc to transfer setup files into your pendrive if you having one or you can use an iso image of your bootable windows image and extract it on your pendrive for files transformation propose.

  15. tried it now but its not working… giving me difficulty after ”leaving diskpart”… please what do i do? thanks

  16. Hey thanks.It works…..

  17. hi
    i have copy of 8.1 on my external hard disk {j drive} . i am unable to create path from it.
    it says – the systme can not find the path.

    how to solve it?


  19. What if the setup files are in c drive itself…when I typed c: then it ends up with c/windows/system32….and subsequently when I type the directory cd windows10…. It just says it doesn’t recognise the path

  20. Thnx

Leave a Reply to sufi Cancel 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>