Howto create a Windows 10 or 7 bootable USB flash drive using Linux (Ubuntu 16.04 xenial or 16.10 yakkety)

UEFI compatible

1. Make variables so you can copy and paste the following code. Replace the following with your actual name, path, and device id.

2. Format and partition USB drive. (Only needed if your SD card is not VFAT (FAT32) already)

n –> enter –> enter

t –> b

a

w

q

3. Sync disk

4. Make vfat filesystem and label.

5. Click the device in Files (Nautilus) to mount the newly formatted USB flash

6. Double click the windows ISO file to mount it. Or open in  “Disk Image Mounter”.

7. Copy all contents to the root of the USB flash media. (Files –> Other locations)

8. After the copy process is finished, look in the USB root folder for the boot directory. If it is uppercase, rename it to lowercase.

9. Install Grub2 to the USB media.

I got this error and had to follow this guide: http://askubuntu.com/questions/666527/install-grub-claims-that-i-have-multiple-partiton-labels-and-that-embedding-is

10. Create the boot menu.

 

done!

11. Test it (If you see the grub2 boot menu, that’s good. Don’t worry about not being able to run the windows installer in QEMU):

12. Unmount your USB media.

Howto fix windows boot order after installing other OS:
http://askubuntu.com/questions/838780/windows-10-changes-uefi-boot-order-every-time

Original howto from:
http://onetransistor.blogspot.com/2014/09/make-bootable-windows-usb-from-ubuntu.html

 

Leave a Reply

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