Pages Menu
Categories Menu

Posted by | 90 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 very much…

  2. Good.
    But use this to save some time format fs=ntfs quick

  3. Very nice info :)
    but is it compulsory to set the bootsect path ?
    like you can see I’ve wrote this post and i guess we can us Bootable Pen Drive without setting the BootSect Path.

    Please refer this ! :)

  4. Nice one it works for me.

    Thank you.

  5. F:\Windows 7\boot>bootsect.exe/nt60 h:
    Target volumes will be updated with BOOTMGR compatible bootcode.

    Could not map drive partitions to the associated volume device objects:
    Access is denied.

    what should i do now???

  6. thanx buddy keep it up

  7. thank you so much.

  8. it is showing it got copied but in pendrive it is showing nothing

  9. Also got
    “Could not map drive partitions to the associated volume device objects: Access is denied.

  10. thank you so much….sir…thanksssssssss

  11. I’m actually getting an error mssg in CLI. Says its not compatible w/ my version of windows. Which I understand but I’m trying to make a bootable usb on this laptop to be used on another laptop, so I can install on a SSD for the latter laptop. How should I proceed?

  12. thanks… you made me the most amazing software engineer..
    works in no time

  13. Or after exit you can copy the files and get over with, no need for the other commads.

  14. I get the following error on the second last command: “This tool can only be run on system booted using a PC/AT BIOS. This system was booted using EFI or some other firmware type”. Im not sure what this means :(

  15. LOL everyone getting “Could not map drive partitions to the associated volume device objects: Access is denied.

    open command prompt as administrator and voila

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>