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
Create a partition using 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/