Wednesday, July 30, 2014

Make bootable USB of Windows 7 by Command prompt (CMD)

I have assumed you have a DVD of windows 7 in your tray and a 4 GB Pen drive in one of your USB port. Backup all your pen drive data because it’s going to format.


Insert your your USB
Go to Start Button then open run and Type cmd.

Now on the command prompt, type the following commands.


Diskpart

List disk
// List disk command will generate the list of Disk connected to your computer like Hard disk and USB disk. This will be like in figure.
After this

select disk 1
   // in my case USB is as disk 1

create partition primary
active

format fs=ntfs quick //
 Format Filesystem=NTFS quick(don’t use Quick for deep format, just use format fs=ntfs)

assign
exit
After this your USB drive is ready to boot any computer just another step requires.
After this, copy all the content of DVD or Windows 7 ISO extract to USB drive.
Done?


Now open the command prompt again by typing CMD in run (See more shortcuts)
Now type

o: 
Cd o:/boot
Bootsect  \nt60 o:

note: drive o: is your usb drive

 And Hit the final Enter and you are ready.


You can do all the same step there in windows 7 for making a bootable Windows 8 USB. Just use the all files of Windows 8.
Similarly in %usbroot%/Boot
And run the CMD as administrator and similarly select the same directory as in windows 7
i.e. I:/boot/ and type same command in CMD
Type bootsect /nt60 I:       //I is your USB drive
And done
Just reboot your computer, enter in BIOS setup and select boot device priority as
* USB
* DVD
* HDD
* Network (Other)
And Tap [F10] to save and Exit.
Again Reboot your system and see setup has been started.









No comments:

Post a Comment