Thursday, July 1, 2010

Creating Bootable USB for Windows 7

Requirements
-- USB Flash Drive (>=4Gb)
-- Windows 7 iso
-- Computer with windows 7/vista

Steps to be followed;
1. Format Your USB Flash Drive
perform these steps in the command prompt of the windows.
a. plug in your flash drive.
b. Run Command Prompt as Administrator (start > All programs > Accessories > Command prompt), right click and select "run as administrator"
c. Type the following, this will give you the Flash drive no.
diskpart
list disk
number of your usb drive will be listed, assuming it to be disk 1,
d. Format the drive using the following cmd. (put the drive no. found in step c instead of "1" here.)
select disk 1
clean
create partition primary
select partition 1
active
format fs=NTFS
assign
exit

now your usb drive is formatted.
2. Making USB Bootable
1. insert windows 7 bootable disk(if using a disk).
2. change the path of cmd prompt to the directory containing the windows 7 boot directory.
d:
cd d:\win7\boot
3. now type in the following commands
bootsect /nt60 h: ("h" is the label of the usb drive)
4. close the cmd prompt. Our work here is done.

3. Copying the windows content into the usb drive.
copy all the windows 7 files and folders and paste them into the flash drive.
4. Set BIOS to boot using USB.
start the BIOS of your computer(by pressing the mentioned key when the machine starts up), and change the boot order such that USB comes at the first location.

And now restart your machine after plugging in the usb drive and install windows 7. :)

1 comment: