Creating a Windows 10 Bootable USB Drive on Linux

Create a Bootable Windows 10 USB in Linux with CLI apps only

Create a ntfs partition

Find out the usb device name using the lsblk command or lsusb command or dmesg command:
lsblk
lsusb
dmesg | more
## or use the grep command as follows ##
dmesg | sort| uniq | grep -A 6 usb-storage

In my instance /dev/sde is my USB drive

Create a partition using gparted:

Some people use fdisk. I wasn’t able to find a partition of type NTFS or fat32 in fdisk 2.29 so I had to use gparted.

Format /dev/sdc1 to ntfs:
sudo mkfs.ntfs -f /dev/sde1

Linux create windows 10 Bootable USB by coping installer files

Copy files from Windows 10 ISO image to usb disk. Create a folder on Linux using the mkdir command
sudo mkdir /mnt/win10/

Mount Windows 10 ISO image in Linux using the mount command:
sudo mount -t udf -o loop,ro,unhide {/path/to/win-10.iso} /mnt/win10/

Mount USB flash drive:
sudo mkdir /mnt/usb/
sudo mount /dev/sde1 /mnt/usb/
df -h | grep '/mnt'

Copy files in Linux using the cp command or rsync command:
sudo cp -avr /mnt/win10/* /mnt/usb/
### OR use rsync ##
sudo rsync -avrP /mnt/win10/* /mnt/usb/

Leave a Reply

Your email address will not be published. Required fields are marked *