Categories Menu

Posted by | 166 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 can use the bootsect.exe/nt60 I: because it says: this version of windows … is not compatible … I think it’s a problem because I’m in a 32 bits OS.

    • I used window 8.1 32bits too and I stuck with the same problem
      Who can fix this problem please let me know

  2. Nice and help full…

  3. Superb…… Thank u…..

  4. Sir,
    By mistake I used this command in Win XP, now my secondary HDD is not working, please tell me the solution. I will be very thankful to you.


    With regards

    • open run and type devmgmt.MSC a window pops and if you can find your HDD then right click and setup as new device

  5. thanxx buddy

  6. This is exactly what I need to create a bootable USB drive. Thanks for sharing this idea, this is a unique version using cmd compared on using a software in order to transfer the OS in usb drive.

  7. Thanks for your help.

  8. i am confusing at assign step plz eloborate at this step ….

  9. heyy…i tried all the steps above but still my usb is not booting…
    pls help

  10. I am not have bootsect file. What I am doing?

  11. Great !!!!!!!!!!

  12. Great… Thanks for Sharing.

  13. After this command “bootsect.exe /nt60 I:
    It says could not map…access is denied.
    Pls help

  14. hey i want to make multiple os bootable usb like win7 and xp

    what to do

  15. After this command “bootsect.exe /nt60 I:
    It says could not map…access is denied.
    Pls help

    • Try to do these steps with admin permissions.
      I mean login with admin acount to your system and ri8 click on cmd and choose run as admin option the problem may be solved

  16. what the f is a sistem

  17. i can’t get bootsec file in z BOOT folder so what can i do? does it affect z bootable process?

    • If z is ur usb drive which u want 2 make bootable than this file is needed. This is the file which makes any drive a bootable drive….
      now if any problem is there tell exectly whats showing there

  18. Amazing!!! It works like a charm.

    Many, many thanks.


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>