Thursday, July 22, 2010

Install Windows 7 via USB disk

Hey there, you can now install windows 7 or vista from your USB disk. All you need is a command prompt on Windows XP or above, USB disk at least 4 GB in size, and a courage to perform command line action.

Here are the steps.

Open cmd as administrator

type diskpart

in diskpart command console, type the following commands

list disk                                     (to list the disk available on your computer)

select disk 1                             (or disk 2, etc, according to your USB flash disk number. Be careful!)

clean                                        (this command erase everything on your disk and produce raw format)

create partition primary           (to create primary partition)

select partition 1                      (to work on newly created partition)

active                                       (mark the partition as active so that the computer can boot from the disk)

format fs=ntfs quick                (formatting rapidly as NTFS file system)

assign                                      (to give a drive letter to the newly created partition)

Now insert your Windows 7 DVD, navigate to directory named “boot”

Restore the command window, type the following commands

D:                                            (according to your DVD rom letter)

cd boot                                    (change working directory to folder named “boot”)

bootsect /nt60 E:                    (according to your USB disk letter)

Now copy all files and folders on your USB disk root (without making any folder). Now the USB disk is bootable and can be used to install Windows 7 or Vista. For boot from the USB disk, you must change your BIOS boot priority to USB.

Read more ...