Create a Windows 8 bootable USB stick from an ISO on Linux

Revision history
Tags: windows recovery

I downloaded the Windows 8 ISO from

Format and prepare the USB flash drive

# fdisk /dev/sdx

The output of the p command in fdisk should now read something similar to:

# fdisk -l /dev/sdx1
Disk /dev/sdx: 149.5 GiB, 160041885696 bytes, 312581808 sectors
Disk model: [redacted]
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
Disklabel type: dos
Disk identifier: 0x12345678

Device     Boot Start      End  Sectors Size Id Type
/dev/sdx1  *    65535 10551134 10485600   5G  c FAT32 (LBA)

Create NTFS file system. Use -f for fast format, to really speed things up. (NTFS disk tools can be installed from the AUR as ntfs-3g)

# mkfs.ntfs -f /dev/sdx1

Mount both the ISO and the NTFS partition

# mkdir -p /mnt/disk /mnt/loop
# mount /dev/sdx1 /mnt/disk
# mount -o loop ~/downloads/Win8.1_Pro_N_EnglishInternational_x64.iso /mnt/loop

Copy the files from the loop device (ISO) to the USB flash drive NTFS partition. I like to use rsync for its progress output, but you might as well use cp -av.

# cp -av /mnt/loop/* /mnt/disk/

Don’t mind Operation not permitted messages when attempting to set file permissions. This is expected with the FAT32 filesystem.

Synchronise cached writes and unmount the disk

# sync /dev/sdx
# unmount /mnt/disk


If you have any comments or feedback, please send me an e-mail. (stig at stigok dotcom).

Did you find any typos, incorrect information, or have something to add? Then please propose a change to this post.

Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.