Thursday, January 29, 2009

Install windows from PEN DRIVE

Open a command box (start -> run -> cmd) and run the following commands:

STEP:1
# diskpart
# list disk

PAY VERY GOOD ATTENTION HERE AS YOU MIGHT WIPE OUT YOUR 2ND OR ANOTHER HARD DRIVE THATS NOT YOUR USB STICK!

DISKPART> list disk

Disk ### Status Size Free Dyn Gpt
-------- ---------- ------- ------- --- ---
Disk 0 Online 149 GB 0 B
Disk 1 Online 3836 MB 0 B

(in this example disk 1 is the usb disk, you can check which disk in the list has the size of your usb stick, my stick is 4gb.)
STEP :2

# select disk 1 (be sure the disk you select is your usb stick!)
# clean
# create partition primary
# select partition 1
# active
# format quick fs=fat32
# assign
# exit

After this navigate to the usb stick via "my computer" then unpack the ISO you made to it.
use also winrar to extract ISO file to direct to Pen drive just like zip file extract.

STEP 3: Copy Windows Vista DVD content to the Flash Drive
In this step you need to copy the contents of the Vista DVD into the pen drive.
To do so simply type the following command to start copying all the content from the Windows Vista DVD to your flash drive.

xcopy d:\*.* /s/e/f e:\
d:\= dvd drive e:\= usb device (can also be use cards)

STEP 4: Setting the Boot Device
Once you’re done with copying the files. Shutdown the computer but don’t remove your pen drive. Now start your pc, and go into BIOS by pressing the ‘Delete’ key. Set the booting device to the pen drive. Save and Exit.
That’s it, you can now install Vista from your pen drive.