Today i’ve to install winodows 7 in my Dell Vostro 3400. I collect a Windows 7′s DVD but some days ago i lost my optical (DVD) drive. So i was thinking to install Windows 7 from USB key. I have seen many sites/blogs that have “Install windows 7 from USB” but either with incomplete steps or not working guide. Luckyly I found two guides, one in English and another in Bangla language. Both guide works for me but no details was there about the commands they instruct to enter. So I rewrite the procedure with more details here.
Requirements:
- USB Key/Flash drive (Pen Drive) – Minimum 4 GB, 8 GB recommended
- USB Boot supported Motherboard (BIOS)
- Windows 7 installation DVD or installation files.
- Working Windows 7 Computer to make the Pen drive bootable (optional)
Procedure:
A. Partitioning and Formatting Pen Drive
- Enable “USB Boot” feature in your motherboad’s BIOS (if disabled) and set “USB Key” as the first boot device.
- Plug-in your USB flash drive to USB port and move all the contents from USB drive to a safe location on your system. Because all the data in the Pen drive will be erased.
- Open Command Prompt with administrator 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”.
- Type diskpart in command prompt and hit enter. This will initiate a diskpart prompt as DISKPART>
- Type list disk and hit enter. This will show a list of disks connected to the computer as Disk 0, Disk 1. From the size of the disk, one can easily find out which disk is the pendrive.
- Now type the following commands one by one and hit enter. Be careful, so that all the commands executed successfully.
select disk # (type the disk number instead of # found at step-5. In my case it was Disk 1. So i replaced # by 1) clean create partition primary select partition 1 active format fs=ntfs assign exit
In this case, we first select the specified disk (in my case, it was disk 1) and shifts the focus to it, Removes formatting from the disk, Creates a primary partition on the current disk, Selects the specified partition and gives it focus, make it active partition and format in NTFS format. Since the newly created partition does not receive a drive letter, so we use the assign command to assign a drive letter to the partition.
B. Create a Bootable Pen Drive
- Create a folder named “Windows7″ in c:/ drive and copy all the installation files of winodws 7 in it.This step is optional, only to avoid annoying directory path changing in command prompt.
- In command prompt, type the following commands ony by one and hit enter.
cd c:/Windows7/boot/ bootsect.exe /nt60 X: (X is the drive letter of Pendrive)
If the commands executed succefully, a message will be shown “Bootcode was successfully updated on all targeted volumes.”
C. Create a Bootable Pen Drive of Windows 7
Copy all the windows 7′s installation files to the pen drive. Now you are ready to install Windows 7 from pendrive.
Note: At the time of installing windows 7 from Pen Drive, after copying all the files to the system, it restarts the computer. Don’t forget to remove the Pen Drive at this time or change the boot order. Otherwise, whole installation process sratrs again. I faced this problem.