WinUSB fails to install windows 7 on USB

I get a error saying:

Installation failed !
Exit code: 256
Log:
Formating device...
Mounting...
mount: block device /home/jeffrey/Desktop/Win7_sp1_32-64_EN-faXcooL.iso is     write-protected, mounting read-only
Copying...
Installing grub...
/usr/bin/winusb: line 421: unexpected EOF while looking for matching `"'
Error occured !
Syncing...
/usr/bin/winusb: line 78: 12459 Terminated              while true; do
sleep 0.05; echo 'pulse';
done
Cleaning...
/usr/bin/winusb: line 78: 12461 Terminated              while true; do
sleep 0.05; echo 'pulse';
done
Umounting and removing '/media/winusb_iso_1437334971_3530'...
Umounting and removing '/media/winusb_target_1437334971_3530'...

I already formated my USB to ntfs.


I suggest that you try mkusb instead of WinUSB. mkusb can create bootable USB drives and memory cards with the Windows installer for Windows 7 - Windows 10.

See the following links,

If you have a DVD drive

  • Burn a boot DVD disk. Make sure to 'burn an iso file'. (Do not create a data DVD with the iso file.)

Create a boot USB drive

  • You can use mkusb-nox or mkusb-dus alias mkusb version 12. See these links,

    Windows USB install drive

    help.ubuntu.com/community/mkusb

    help.ubuntu.com/community/mkusb/gui#Installation


THERE IS A SIMPLER WAY.

  1. Run sudo apt-get install gparted grub-pc-bin p7zip-full ntfs-3g in terminal.
  2. Format your USB Drive as NTFS and enable the bootable flag using GParted. To enable and Bootable flag, right-click the partition and choose Manage flags and then check boot. Format again if you see any error near partition name. Note down the partition name. It will be something like /dev/sdXY. X will be an alphabet and Y will be a number. e.g. /dev/sdb1
  3. Download Unetbootin binary from https://unetbootin.github.io/linux_download.html
  4. Open Terminal and cd <unetbootin_bin_directory>. e.g cd ~/Downloads. Run chmod +x unetbootin.bin to make it executable.
  5. Run sudo ./unetbootin.bin installtype=USB targetdrive=/dev/sdXY in terminal. Make sure to replace X and Y with appropriate values.
  6. Select Windows 10 iso and click OK.