I need to install windows 10 in a machine, but all my machines are running Ubuntu Linux, and of course Microsoft does not provide a tool in Linux.
I found out this method to create a Windows 10 usb installation media in Linux:
- Get a Windows 10 installation ISO.
- Prepare the usb disk, assume it’s in /dev/sdd
- create a new partition table, and a primary partition, mark it as active partition.
- format it in ntfs.
- mount the iso image
- mkdir -p /tmp/win10iso
- mount PATH_2_ISO /tmp/win10iso
- mount the usb
- mkdir -p /tmp/usb_disk/
- mount /dev/sdd1 /tmp/usb_disk
- copy the files
- rsync -avP /tmp/win10iso /tmp/usb_disk/
install boot loader
- grub-install –target=i386-pc –boot-directory=/tmp/usb_disk/boot /dev/sdd
- add a file /tmp/usb_disk/boot/grub/grub.cfg
# grub.cfg
menuentry “Install Windows 10” {
set root=(hd0,msdos1)
chainloader +1
}umount the partitions.
Done.