To main content

Create a bootable Windows USB Dongle on Linux

Published by Benjamin Marwell on
If you don’t want to search for ages, this is how to create a bootable windows usb install dongle on your linux:
sudo cfdisk /dev/sdd
Delete all existing partitions, create a new one, Type 7 NTFS, Flag Bootable, Write, End. Create a NTFS file system.
sudo mkfs.ntfs -f /dev/sdd1
Create the Windows-7-MBR.
sudo apt install ms-sys
sudo ms-sys -7 /dev/sdd
Mount both ISO and  USB partitions, copy the files, unmount again.
# Create folders
sudo mkdir /mnt/usb
sudo mkdir /mnt/iso

# Mount USB and ISO
sudo mount /dev/sdd1 /mnt/usb/
sudo mount -o loop ~/Downloads/Isos/Win10_1511_1_N_German_x32.iso /mnt/iso/

# Copy files
sudo rsync -avP /mnt/iso/* /mnt/usb/
sudo sync

# Umount
sudo umount /dev/sdd1
sudo umount /mnt/iso
Done! As always, watch your partition and devices names (/dev/sdd{,1} ) when using dd and cfdisk! Source: