Install Windows 7 from a USB drive/Pen drive | The Tech Sauce

Saturday, January 15, 2011

Install Windows 7 from a USB drive/Pen drive

1 comments
I just did this method on one of my friends machine and installed the new Windows 7 Home Premium. The main advantage is that by using USB drive you will be able to install Windows 7 in just 15 minutes. Needless to say that your motherboard should support USB Boot feature to make use of the bootable USB drive.

Requirements:
*USB Flash Drive (Minimum 4GB)
*Windows 7 or Vista installation files.

Follow the below steps to create bootable Windows 7/Vista USB drive using which you can install Windows 7/Vista easily.

1. Plug-in your USB flash drive to USB port and move all the contents from USB drive to a safe location on your system.

2. Open Command Prompt with admin rights. Use any of the below methods to open Command Prompt with admin rights.

*Type cmd in Start menu search box and hit Ctrl+ Shift+ Enter.
Or
*Go to Start menu > All programs > Accessories, right click on Command Prompt and select Run as administrator.

3. You need to know about the USB drive a little bit. Type in the following commands in the command prompt:

First type DISKPART and hit enter to see the below message.

From The Tech Sauce


Next type LIST DISK command and note down the Disk number (ex: Disk 1) of your USB flash drive. In the screenshot my Flash Drive Disk no is Disk 1.

4. Next type all the following commands one by one. Here I assume that your disk drive no. is “Disk 1”.If you have Disk 2 as your USB flash drive then use Disk 2. Refer the above step to confirm it.
So below are the commands you need to type and execute one by one:

SELECT DISK 1

CLEAN

CREATE PARTITION PRIMARY

SELECT PARTITION 1

ACTIVE

FORMAT FS=NTFS
(Format process may take few seconds)

ASSIGN

EXIT

Don’t close the command prompt as we need to execute one more command at the next step. Just minimize it.
Note: In the above procedure, we have formatted the USB drive in NTFS file system, as we can't boot through the FAT file system(which is the default for all USB drives).

5. Next insert your Windows7 DVD into the optical drive and check the drive letter of the DVD drive. In this guide I will assume that your DVD drive letter is “G” and USB drive letter is “I” (open my computer to know about it).

6. Maximize the minimized Command Prompt in the 4th step.Type the following command now:

G: CD BOOT and hit enter. Where “G” is your DVD drive letter..

7. Type another command given below to update the USB drive with BOOTMGR compatible code.

BOOTSECT.EXE /NT60 I:

Where “I” is your USB drive letter. Once you enter the above command you will see the below message.

8. Copy your Windows 7 DVD contents to the USB flash drive.

9. Your USB drive is ready to boot and install Windows 7. Only thing you need to change the boot priority at the BIOS to USB from the HDD or CD ROM drive.

1 comments:

Unknown said...
December 10, 2012 at 9:20 PM

If you get this error:
Could not map drive partition to the associated volume device objects:
Access is denied

This problem can be solved by running Command Prompt as Administrator.

Post a Comment