WinUSB install error Installation failed! Exit code: 512

Solution 1:

The problem here is with the method used to install GRUB. It has nothing to do with the current filesystem on thumbdrive as WinUSB formats it.

To fix it you must edit the winusb script which is located in /usr/bin. Open it with any text editor with root permissions (e.g. gksu gedit /usr/bin/winusb). Now search for grub-install in that file (it may be on line 401 - 402) and change that line so it looks like this:

grub-install --target=i386-pc --boot-directory="$partitionMountPath/boot" "$device"

Save the script. Install the package grub-pc-bin as follows:

sudo apt-get install grub-pc-bin

Now, try again to use WinUSB.

WinUSB only creates MBR bootable USB drives. If you want to install Windows in EFI mode a different method should be used.

I also wrote about this on my website.