Create a Windows 7 USB install key
From Leo's Notes
This page was last edited on 14 September 2022, at 21:31.
Windows 7 is now out of support and the USB creation utility by Microsoft no longer is available. Instead, you can try using Rufus which supports converting Linux (and Windows!) ISOs into a bootable USB key.
To create a Windows 7 USB key manually, you will need to:
- Create a single FAT32 partition on the USB key
- Copy the contents of the Windows 7 installation DVD onto the new partition
Using diskpart
Run the following commands to create the single FAT32 partition with diskpart. An example output is given below.
- Run
diskpart. You will be asked to run as an administrator. - Run
list disk - Run
select disk N, where N corresponds to your USB drive/disk - Run
cleanto wipe all existing partitions - Run
create partition primary - Run
activeto activate the partition - Run
format fs=fat32 quickto format as FAT32 - Run
assignto assign a drive letter
Microsoft DiskPart version 10.0.19041.964
Copyright (C) Microsoft Corporation.
On computer: DESKTOP-3DO6UEH
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 1863 GB 1024 KB *
Disk 1 Online 476 GB 0 B
Disk 2 Online 931 GB 0 B
Disk 3 Online 14 GB 0 B
DISKPART> select disk 3
Disk 3 is now the selected disk.
DISKPART> clean
DiskPart succeeded in cleaning the disk.
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 1863 GB 1024 KB *
Disk 1 Online 476 GB 0 B
Disk 2 Online 931 GB 0 B
* Disk 3 Online 14 GB 14 GB
DISKPART> create partition primary
DiskPart succeeded in creating the specified partition.
DISKPART> active
DiskPart marked the current partition as active.
DISKPART> format fs=fat32 quick
100 percent completed
DiskPart successfully formatted the volume.
DISKPART> assign
DiskPart successfully assigned the drive letter or mount point.
DISKPART>