In this tutorial, we will walk you through the process of creating a bootable USB for Windows 7 using Command Prompt (CMD). This method can be very useful for those who need to install or reinstall Windows 7 but do not have access to a working CD/DVD drive.
Prerequisites
- A USB flash drive with at least 4GB of storage
- Windows 7 ISO file
- Access to a Windows computer with administrator privileges
Step-by-Step Guide
Step 1: Format the USB Flash Drive
Before we start, make sure that the USB flash drive is properly formatted. To do this, follow the steps below:
- Insert the USB flash drive into your computer.
- Press Win + R to open the Run dialog box.
- Type cmd and press Ctrl + Shift + Enter to open Command Prompt with administrator privileges.
- In the Command Prompt, type the following command and hit Enter:
- Once DiskPart launches, type the following command and hit Enter:
This will show you a list of all the available storage devices on your computer. Identify the number that corresponds to your USB flash drive (based on the size).
- Select the USB flash drive by typing the following command and hit Enter:
Replace X with the correct disk number.
- Type the following commands one by one, pressing Enter after each:
create partition primary
select partition 1
active
These commands will clean the USB flash drive, create a primary partition, select that partition, and make it active.
Step 2: Copy Windows 7 Installation Files to the USB
Now that your USB flash drive is ready, you need to copy the Windows 7 installation files to it. For that, follow these steps:
- Mount the Windows 7 ISO file on your computer. You can do this by right-clicking the ISO file and selecting Mount.
- Open Command Prompt with administrator privileges again.
- Navigate to the mounted ISO folder by typing the following command and hit Enter:
Replace X with the drive letter of the mounted ISO.
- Copy the installation files to the USB flash drive by typing the following command and hit Enter:
Replace Y with the drive letter of your USB flash drive.
Wait for the copying process to finish. It might take a while, depending on the speed of your USB flash drive.
Conclusion
And that’s it! You have successfully created a bootable USB for Windows 7 using Command Prompt. Now you can use this USB flash drive to install or reinstall Windows 7 on any compatible computer.