Skip to content

Instantly share code, notes, and snippets.

@VMuliadi
Last active July 22, 2016 14:44
Show Gist options
  • Save VMuliadi/4b8f5efd6907a608d4a68df3d9e85a70 to your computer and use it in GitHub Desktop.
Save VMuliadi/4b8f5efd6907a608d4a68df3d9e85a70 to your computer and use it in GitHub Desktop.
Create a bootable Windows USB from GNU/Linux distribution. This gist only contain step by step to do it
gparted >>> format flash drive to FAT32
gparted >>> add "boot" flag to the drive
grub2 >>> sudo grub2-install /dev/sd[x] --boot-directory="/run/media/[user]/[flash_disk_name]"
nano >>> nano /boot/grub2/grub.cfg
nano >>> add these script
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
menuentry 'Install Windows [y]' {
ntldr /bootmgr
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment