Thursday, June 2, 2016

Manually creating a bootable USB drive for Windows 7

To create a bootable USB drive we will be needing a pen-drive of 4GB minimum capacity. We will be using the Command Prompt to type in our commands.

Step 1: Creating Partition

Please follow the following steps to create the partition.
  • Insert the pen-drive into your computer and note down the drive letter. For this example we assume that the drive letter is E: for the USB pen-drive.
  • Also note down the drive letter of your DVD drive. We assume the drive letter is D: for the DVD drive.
  • Now, run the Command Prompt as Administrator. To do this, we need to type cmd in the Search Box on Windows Start Menu. When cmd appears, right click on it and select "Run as administrator".
  • Command Prompt should open at "C:\Windows\system32>" by default. Type diskpart and press Enter. The diskpart program will run, wait until you see "DISKPART>" prompt.
  • After the DISKPART> prompt appears, type in list disk and press Enter. This will show you the installed disks on your computer. Identify your USB drive by its size. It would show something like, Disk 0 for your hard disk and Disk 1 for your USB pen-drive.
  • Type select disk 1 and press Enter (assuming Disk 1 is your USB drive).
  • Now, type clean and press Enter to delete all the data on your USB pen-drive.
  • Type create partition primary and press Enter. This will create a partition as partition 1.
  • Type select partition 1 and press Enter to select the partition.
  • Type active and press Enter to make the partition as the active partition.
  • Type format fs=ntfs quick and press Enter. This will format the active partition in NTFS format.
  • Type exit and press Enter to close the DISKPART program.
We are done with creating partition. Next, we need to create a boot sector to make the USB drive bootable.

Step 2: Making the USB drive bootable

In the previous step we have assumed the following drive letters,
E: for USB pen-drive
D: for DVD drive
In the Command Prompt window, we are presently in the location C:\Windows\System32> by default.
  • We will change the drive to DVD by typing D: and press Enter.
  • Type cd boot and press Enter to change the directory to D:\boot>.
  • Type bootsect /nt60 E: and press Enter. This will create the boot sector on our USB drive(E:).
  • Type exit and press Enter to close the Command Prompt.
Our USB pen-drive is now ready to be used as a bootable pen-drive. We just need copy the Windows installation files on the DVD to the USB drive.

Step 3: Copying Installation Files

Open Command Prompt again as Administrator like before. Now, type the following

xcopy D:\*.* E:\ /E /H /F

That's it. It will take a while to copy the installation files from DVD to USB drive. After the copy process is complete, the USB pen-drive would be ready to be used for installing Windows.

No comments: