How to Install Windows 7 From a USB Drive

Install Win 7 from USBInstalling Windows from a USB flash drive has several advantages – First of all, the overall speed of the installation process will increase significantly, carrying a USB stick is much more convenient than a DVD, and finally it becomes possible to install the OS even on those systems that do not have a DVD drive, such as a netbook.

In this post, I will show you how to load the Windows installation on to your USB flash drive and make it bootable just like the DVD.

Tools Required to Load Windows 7 Installation Files:

  1. USB flash drive with a minimum capacity of 4 GB.

  2. Windows 7 set-up DVD.

Now, just follow the steps below:


Plug-in your USB flash drive and backup all the existing data in it.

Open the command prompt. If you are using Windows 7/Vista then open it with administrator rights.

ie: Go to Start -> All Programs -> Accessories -> Right-click on “Command Prompt” and select “Run as Administrator”.


In the command prompt, type in the following command:


This will start the Microsoft DiskPart utility as shown below:

Microsoft DiskPart


Now issue the following command:


This will show you a list of  available disks on your system. Disk 0 is usually the hard disk. In my case, Disk 5 is the USB drive (this can be a different one in your case). Now issue the command as shown below:


Install Windows 7 from USB

NOTE: In the above command, 5 is the USB drive number on my system. If you have a different number on your system, then you need to replace 5 with that number.


Now issue the following list of commands one by one as shown below:








Install Windows 7 from USB

Minimize the command prompt and proceed to the next step.

Step 5:

Insert the Windows 7/Vista installation disc and note down the “drive letter” of your DVD drive. In my case, it is “H:”. Now type the following list of commands as shown below:



BOOTSECT.EXE /NT60 M: (NOTE: M: is your USB drive letter)


Win 7 from USB flash drive


Copy the contents of your Windows 7/Vista installation disk into the USB flash drive.

That’s it! Your USB stick is now ready to boot and install the Windows 7 for you. Don’t forget to enable the “USB Boot” option and change the “boot priority to USB device from hard disk” in your BIOS settings.

I hope you like this post. Pass your comments to express your opinion. :)


  1. siva_phd9
    June 24, 2011 at 6:45 PM


  2. DP
    June 24, 2011 at 7:50 PM

    in d first paragraph…it should be netbook not notebook since notebooks have CD/DVD drives while netbook does not…as far as i know….

    • Srikanth
      June 25, 2011 at 8:20 AM

      @ DP

      Thanks for the correction. It was done by oversight and now corrected! :)

  3. mithilesh shaw
    June 25, 2011 at 12:54 AM

    access is denied

    • Srikanth
      June 25, 2011 at 8:22 AM

      @ mithilesh shaw

      Make sure you’re logged in as administrator and have opened the command prompt with admin rights.

  4. Raman
    June 25, 2011 at 11:52 AM

    good post dude!!!

  5. Ravi
    June 25, 2011 at 12:04 PM

    Good One Frnd….
    Realy Good Trick….

  6. Darpan
    June 25, 2011 at 1:23 PM

    Will it also possible with windows XP with same steps?

    • Srikanth
      June 26, 2011 at 7:06 AM

      @ Darpan

      No, not possible! Creating a bootable Win XP setup from a flash drive is a bit complex process.

  7. KKC
    June 25, 2011 at 5:18 PM

    hi! are seriously brilliant in computer field.i am following your site from past 1 year.i want to know what are you doing presently.Also please give me some valuable website addressess.

  8. Tausif
    June 25, 2011 at 8:06 PM

    Converting fat32 into ntfs of pendrive is problem the possibility of pendrive corruption is more

  9. Gaurav @
    June 25, 2011 at 8:18 PM

    i am Gaurav Garg From
    i like your web site or all available content but i like this post the most..
    thanks for providing this information in this open way..

    Gaurav garg

    Keep Posting
    Have A Nice day

  10. mithilesh shaw
    June 26, 2011 at 12:30 AM

    yes srikant now it is working…thanks

  11. Rouve_Pofadder
    June 26, 2011 at 4:59 AM

    Interesting. I got it working. Thanks for your wonderful tutorial. I like!!

  12. K Shankar R Karanth
    June 26, 2011 at 6:44 AM

    a very useful information

  13. samsun
    June 30, 2011 at 12:32 AM


  14. Kutty
    July 1, 2011 at 12:08 AM

    i lyk dis very much!!!!! bt i can’t understand clearly

  15. Sitheeq
    July 2, 2011 at 2:38 PM

    nice man thanks

  16. Harsh
    July 2, 2011 at 2:46 PM

    Amazing… really very useful post. thanks for sharing…

  17. Ajit kashyap
    July 3, 2011 at 3:31 PM

    i did not understand the step 3 .otherwise good post

  18. sanjeev
    July 5, 2011 at 11:51 AM

    there is software called Novicorp WinToFlash to do this it can even create bootable xp setup

    • Srikanth
      July 5, 2011 at 12:50 PM

      @ sanjeev

      WinToFlash didn’t seem to work perfectly for me :(

  19. lucky
    July 6, 2011 at 9:51 AM

    i do all steps
    but in list disk only disk0 shows of that is my hard disk

  20. arcade
    July 6, 2011 at 8:07 PM

    Thanks a lot bro … :)

  21. sanjeev
    July 7, 2011 at 8:49 AM

    Sorry to say that WinToflash did no work i tried to copy win xp setup into it and tried booting it but nothing happened WinToflash still has the BETA tag so it is not perfect program .Hopefully someone else is having better luck with it

  22. Deepak
    July 7, 2011 at 3:28 PM

    It’s good to know this from ur site hope u will assist in such way in future too.

  23. jashan deep singh
    July 9, 2011 at 11:13 PM

    thanx a lot sirji… nyc one :)

  24. Arjun
    July 10, 2011 at 12:51 PM

    Srikanth.. Surely…this is a great site…
    But one thing i am finding hard to digest here is that…i don’t see google ads …
    why is that so?

  25. Ankit
    July 10, 2011 at 8:15 PM

    We can also run windows on pendrive but it just writes upto 10000.
    After that your pendrive or usb will not write any thing
    i enjoyed this post :-)

  26. Smith Paghdal
    July 12, 2011 at 1:05 AM

    Good 1 Bro..

  27. kophyo
    July 16, 2011 at 6:46 PM

    I have tested that. Completed successfully. Thanks 4 all….

  28. mmee
    July 19, 2011 at 4:55 PM

    wow it worked 111110000%

  29. Suraj
    July 22, 2011 at 3:20 PM

    Thanx Friend I was searching For This Information

  30. Sudhanshu
    July 22, 2011 at 7:52 PM

    Very Very Useful to us…
    I am too much motivated with your post…
    Many-many thanks to you,,,,God Always Bless You…

  31. sam
    July 28, 2011 at 11:56 PM

    hi, after loading the boot code on flash drive, do we have to copy the windows 7 via dos or just drag and drop from my computer?

    • Srikanth
      July 29, 2011 at 10:30 AM

      @ sam

      You can do it either way. It doesn’t make a difference :)

  32. Ralph
    July 29, 2011 at 1:00 PM

    Can you explain step 5 in detail; what it’s doing, why you need to do it? I’m curious.

  33. Ali
    July 29, 2011 at 11:07 PM

    hi… can we use the pendrive for the other purposes also, after making it bootable… means to transfering the data..

    • Srikanth
      July 31, 2011 at 2:03 PM

      @ Ali

      Yes you can. Just create a seperate folder in your pendrive and have your personal data over there.

  34. Anurag upadhyay
    July 30, 2011 at 1:16 AM

    I like this post very much…! thank for sharing

  35. sam
    July 30, 2011 at 3:28 AM


    thank you very much very informative keep the good work going :)

  36. Ivan smith
    August 9, 2011 at 3:27 PM

    Hey..gud job bro.

  37. Token
    September 2, 2011 at 9:53 AM

    This is such a great site..
    I very very thankful to you for your information and all the content.

  38. abhijit
    September 15, 2011 at 12:39 AM

    a easy way to install.thank you………

  39. sanjeev rai
    September 19, 2011 at 12:00 PM

    its so great and fantastic idea . now i can boot win7 without cd.

  40. pal
    September 20, 2011 at 4:21 PM

    that is great

  41. ilan
    September 24, 2011 at 7:30 AM

    after typing bootsect.exe /nt60 m:( my removable disk letter)
    it is showing ACCESS IS DENIED

    what to do please reply

  42. Gyanu Singh
    September 28, 2011 at 11:05 AM

    this is working f9 frnd how can i login to this site please help me.

  43. shiv yadav
    September 28, 2011 at 4:37 PM

    nice post………..!!!!

  44. irfaaan
    October 11, 2011 at 1:57 PM

    ur website is awesome

  45. xyrian91
    October 26, 2011 at 4:53 PM

    after you’ve completed all the commands in CMD, when copying the the OS files to the pen drive, some files wouldn’t copy to the disk.
    should I skip those files?

    • Srikanth
      October 26, 2011 at 10:10 PM

      @ xyrian91

      No all the files should get copied!

  46. Dharmendra Kumar
    October 27, 2011 at 2:10 PM

    nice trick,,

    @ilan – while running cmd, you must have administrative permissions, your problem is related to permissions.

    Keep it up..

  47. Deb
    November 3, 2011 at 1:36 PM

    @Srikanth..hey nice one…… thatnks…

    can u pls upload the way to install win-xp from USB….

  48. Ekant Sharma
    January 12, 2012 at 2:43 PM

    Hello Bruv,
    I love your website and it’s contents..
    I want one advice..
    Please will you help me over there..?

  49. Ranjit
    February 1, 2012 at 4:42 PM

    Does winsetuptousb works please let me know

  50. sandeep kumar
    February 3, 2012 at 11:15 PM

    when i choose usb drive to formate my operating system then it show message OPERATING SYSTEM NOT FOUND .i do all process as your method PLEASE HELP ME

  51. shivu
    February 11, 2012 at 9:07 AM

    Hey Shri…Thanks for valuable post….keep posting all new tricks like this….thanks u 😀

  52. Rahul
    February 22, 2012 at 2:26 PM

    hai sriki i have problem in removing the files from the pendrive that i created during the process told above. tell me something

  53. Nayeem
    February 22, 2012 at 11:20 PM

    wow….awesome…Boss….thank you for helping all…

  54. Aditya
    February 24, 2012 at 2:04 PM

    I followed your steps, but later i realized i forgot to plug the pen drive !!!! that’s really silly of me! but i reached as far as “create partition primary” step, and then i realized in my pc out of 4 drives there are only two visible and i seem to have lost the other two, pls help me in getting those two drives back, or have i lost them completely? what should i do ?