Skip to content

Instantly share code, notes, and snippets.

@githubnando
Last active July 20, 2017 13:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save githubnando/01018b629836506aeeee28bde9bb860a to your computer and use it in GitHub Desktop.
Save githubnando/01018b629836506aeeee28bde9bb860a to your computer and use it in GitHub Desktop.
Make a bootable Windows 10 UEFI USB Stick
# Let the device unmounted
sudo umount /dev/sdb
# Optional: change the content to zeros
sudo dd if=/dev/zero of=THE_DEVICE bs=512 count=1
# Normally this is not nessecary. Then to create a new layout on the drive:
sudo fdisk /dev/THE_DEVICE
# Then:
# Press G to create a new GPT,
# Press N to create a new partition,
# Press T to choose the partition type,
# Enter 11 for the Microsoft basic data.
# Press W to write the changes to disk.
# Make fat32 format
sudo mkdosfs -F32 THE_DEVICE
# Mount the newly created partition
sudo mount /dev/THE_DEVICE_PARTITION_1 /media
# Mount the ISO
sudo mount windows10.iso /mnt
# Copy the contents
cp -R /mnt/* /media
@jmurowaniecki
Copy link

Pior que sempre que preciso gravar uma iso pra algum conhecido acabo fazendo na mão (e pesquisando os passos cada vez que vou fazer novamente).. Esse script tá marcado pra baixar no meu bashrc asap 🚀

@githubnando
Copy link
Author

githubnando commented Jul 20, 2017

@jmurowaniecki Exatamente! acabo esquecendo e tendo que pesquisar os passos toda vez que preciso.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment