This is what worked for me in order to write/boot Windows 10 PE on as usb drive.
From https://askubuntu.com/a/487970/48496
Install GParted and GRUB on Ubuntu with:
sudo apt-get install gparted grub-pc-bin p7zip-full ntfs-3g
- Rewrite the partition table as msdos and format your USB drive as NTFS using GParted (and then "Manage flags" and add the
boot
flag).
- In GParted, right click the USB partition and select Information. Copy the UUID somewhere as you will need it.
- Copy all files from mounted Windows ISO or DVD to USB drive using your favorite file manager.
- Go to USB drive and if the folder named
boot
has uppercase characters, make them all lowercase by renaming it.
Install GRUB on USB:
sudo grub-install --target=i386-pc --boot-directory="/<USB_mount_folder>/boot" /dev/sdX
Create a GRUB config file in the USB drive folder boot/grub
with the name grub.cfg
.
Write this into the file:
echo "If you see this, you have successfully booted from USB :) <or whatever you want>"
insmod ntfs
insmod search_fs_uuid
search --no-floppy --fs-uuid <UUID_from_step_2> --set root
ntldr /bootmgr
boot
Unmount the USB drive and restart your PC. Choose the USB as the first boot device in BIOS and start booting from it.
dd
cannot burn a windows iso file. You need a tool, for example mkusb or mkusb-nox, or to do the extraction manually.