Categories Menu

Posted by | 291 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. in the final step i am getting the error that
    could not map drive patitions to the associated volume device objects: access is denied.
    does anybody has any solution for this?

    • open cmd by admistration or using pressing hold shift+ctrl and enter

  2. You should make sure you are running the command prompt as an elevated window (i.e. run it as administration).

  3. Please l want some one to assist me in making a pendrive bootable using the command prompt and also assisting me in using the command prompt in my daily usage of computer. THANKS

  4. You should make sure you are running the command prompt as an elevated window (i.e. run it as administration).

    Even after running cmd as admin..?

  5. “format quick fs=ntfs” works and it lasts around 1min (16gb usb).

  6. first copy window on your pc .
    then open cmd type
    select disk 1 or 2
    create partition primary
    select partition 1
    format fs=fat32 quick
    now copy all window file into your pendrive..
    thats all

  7. commant for flash drive

  8. list disk show only show online but not show my hp pendrive why pendrive also ntfs format

  9. will booting of a pen cause any damage? after booting will it be different from a normal pendrive? can i use a bootable pen for booting my pc in the place of hard disk because my hard disk is damaged will it need iso flies? if it is necessary please attach a WINDOW 7 ULTIMATE GENUINE ios flies with the reply
    please please please please

  10. this is great. it worked perfectly with windows 7. but i still need help on how do it with windows xp

  11. Very good and helpful

    Thanks to

    Yogesh 9811264092

  12. i have created a bootable pendrive of linux os on windows 7 using power iso … afrer formating by pendrive it shows 4.92 mb instead of 4gb . how to solve this .

    • how would i set that upIf the trend line can be used to predict future results, how fast will the race be run in the next 4 years for both men and women? Use your slope value to calculate the speed. What will be the winning times for both men and women

  13. The first method worked for me perfectly. It is left for me to see if the setup can start from the booting.

  14. M having problem in d last part….E:\> cd win 8 sp1
    somethn lyk ds appeard,
    system cannot find the path specified
    though i have copy ma windows 8 file in E drive..y ds problem occured…n how should i correct it.plzzz suggest me…..

  15. I don’t have the bootsec.exe file. tell me please what to do next or any other way?????

  16. im using acer netbook…this command prompt is very usefull,,,many times i been using this formating,,,cmd works on any pc loptap,,,but most usb drive is in the volume not on the disk,,,you can see listdisk on loptap more than pc desk top,,,just follow the step…tYpe CMD …RUN AS ADMIN,,,FOLLOW INSTRACTION ABOVE POST,,

  17. Thanks , this helped a lot.


  19. Am not sure mayb d comand wil work for window 8,cos d comand work for me on window 7

  20. Very good and helpful
    Thanks to
    Kundan singh 8948579336,9648665110,

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