GoHacking.com: Ethical Hacking and Cyber Security
Home » USB HACKS, WINDOWS 7 HACKS, WINDOWS VISTA HACKS

How to Install Windows 7 From a USB Drive

Submitted by on Friday, 24 June 201161 Comments

Installing 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:

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

  2. Windows 7 set-up DVD.

Now, just follow the below steps:

Step-1:

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”.

Step-2:

In the command prompt, type in the following command:

DISKPART

This will start the Microsoft DiskPart utility as shown below:

Step-3:

Now issue the following command:

LIST DISK

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:

SELECT DISK 5

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.

Step-4:

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

CLEAN

CREATE PARTITION PRIMARY

SELECT PARTITION 1

ACTIVE

FORMAT FS=NTFS QUICK

ASSIGN

EXIT

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:

H: CD BOOT

CD BOOT

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

EXIT

Step-6:

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 OS 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. :)



By using/following this site you agree to our Legal Disclaimer

61 Comments »

  • siva_phd9 said:

    A VERY GOOD INFORMATION.THAN YOU VERY MUCH FOR SHARING

  • DP said:

    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….

  • mithilesh shaw said:

    HEY SRIKANT IN STEP 3 : AFTER TYPING DISKPART USER ACCOUNT CONTROL SETTING IS OPENING BUT NOT AS SHOWN IN YOUR POST..AND IN CMD IT IS SHOWING AS FOLLOWS:-
    C:\windows\system32>DISKPART
    access is denied

  • Srikanth (author) said:

    @ DP

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

  • Srikanth (author) said:

    @ mithilesh shaw

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

  • Raman said:

    good post dude!!!

  • Ravi said:

    Good One Frnd….
    Realy Good Trick….

  • Darpan said:

    Will it also possible with windows XP with same steps?

  • KKC said:

    hi!srikanth.you 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.
    thanks.

  • Tausif said:

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

  • Gaurav @ hackersfind.com said:

    hi…
    i am Gaurav Garg From hackersfind.com
    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..

    Regards
    Gaurav garg

    Keep Posting
    Have A Nice day

  • mithilesh shaw said:

    yes srikant now it is working…thanks

  • Rouve_Pofadder said:

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

  • K Shankar R Karanth said:

    a very useful information

  • Srikanth (author) said:

    @ Darpan

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

  • samsun said:

    COOL.IT.SOLVED.MY.PROBLEM.THANKS

  • Kutty said:

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

  • Sitheeq said:

    nice man thanks

  • Harsh said:

    Amazing… really very useful post. thanks for sharing…

  • Ajit kashyap said:

    i did not understand the step 3 .otherwise good post

  • sanjeev said:

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

  • Srikanth (author) said:

    @ sanjeev

    WinToFlash didn’t seem to work perfectly for me

  • lucky said:

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

  • arcade said:

    Thanks a lot bro … :)

  • sanjeev said:

    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

  • Deepak said:

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

  • jashan deep singh said:

    thanx a lot sirji… nyc one :)

  • Arjun said:

    Haiiii…..
    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?

  • Ankit said:

    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 :-)

  • Smith Paghdal said:

    Good 1 Bro..

  • kophyo said:

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

  • mmee said:

    wow it worked 111110000%

  • Suraj said:

    Thanx Friend I was searching For This Information

  • Sudhanshu said:

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

  • sam said:

    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 (author) said:

    @ sam

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

  • Ralph said:

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

  • Ali said:

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

  • Anurag upadhyay said:

    I like this post very much…! thank for sharing

  • sam said:

    @srikanth

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

  • Srikanth (author) said:

    @ Ali

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

  • Ivan smith said:

    Hey..gud job bro.

  • Token said:

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

  • abhijit said:

    a easy way to install.thank you………

  • sanjeev rai said:

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

  • pal said:

    that is great

  • ilan said:

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

    what to do please reply

  • Gyanu Singh said:

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

  • shiv yadav said:

    nice post………..!!!!

  • irfaaan said:

    ur website is awesome

  • xyrian91 said:

    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 (author) said:

    @ xyrian91

    No all the files should get copied!

  • Dharmendra Kumar said:

    nice trick,,

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

    Keep it up..

  • Deb said:

    @Srikanth..hey nice one…… thatnks…

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

  • Ekant Sharma said:

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

  • Ranjit said:

    Does winsetuptousb works please let me know

  • sandeep kumar said:

    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

  • shivu said:

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

  • Rahul said:

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

  • Nayeem said:

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

  • Aditya said:

    hi,
    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 ?