WinUSB gives a exit code: 256

135,852

Solution 1

I started winusb from console:

gksudo winusbgui

then winusb detect my pendrive correctly, and I succesfully copied the Windows 7 installer to my pendrive (Ubuntu 14.10).

Solution 2

For some reason winusb kept hanging up on formatting the USB drive, said it couldn't access the drive. I ended up formatting to NTFS using the "Disks" application in Ubuntu and then using winusb from the terminal:

sudo winusb -v --install Win_7_Pro.iso /dev/sdc

NOTE: you can check to see what your usb device is using lsblk from a terminal, mine was sdc.

Solution 3

I faced the same error, and tried too many fixes until found the fix. Here is the fix in my case (I hope it works for you too):

  1. open GParted app then unmount the USB stick.

  2. open WinUSB or WoeUSB (a fork of WinUSB) and choose the .iso Windows file, and choose the USB stick. Everything goes right!

If you need to see the fix visually, I made a video on YouTube for the fix.

Solution 4

I just dealt with the same problem... Maybe it will help somebody:

I was getting this error when I clicked TARGET DEVICE and INSTALL, but if you click OPTIONS and SHOW ALL DEVICES and then you select your TARGET USB drive, it works... or at least it did in my case.

Of course my drive was formatted as NTFS!

EDIT: At the end of process error appeared, but Windows installation booted just fine.

Solution 5

If the Win8.1 is 64bit I understood (reading results from a Google Search) that you need at least 8GBs.

And obviously NTFS, not FAT. Indeed, I quote an excerpt From the help:

$ winusb --help
winusb usage
Install a windows ISO on an NTFS partition and edit MBR of the device
[...]

And from the CLI you can also ask for the verbose mode, maybe you can have more informations on the error.

Share:
135,852

Related videos on Youtube

kprovost7314
Author by

kprovost7314

Updated on September 18, 2022

Comments

  • kprovost7314
    kprovost7314 over 1 year

    I have Ubuntu 14.10 with WinUSB and I have a Windows 8.1 Pro ISO with a 4GB SD Card with an empty FAT32 partition. Everytime I try to use it, it says "Installation failed, exit code: 256". How do I fix this?

    • Admin
      Admin about 9 years
      also try sudo winusbgui in terminal ....
    • Admin
      Admin over 7 years
      Open gparted, right click and select unmount.
    • Admin
      Admin over 6 years
      Right click the usb drive, format NTFS worked for me!
  • kprovost7314
    kprovost7314 over 9 years
    The Win8.1 x64 iso is 3.7GB. I didn't think of NTFS. I'll try again.
  • Willi Ballenthin
    Willi Ballenthin almost 9 years
    Without the sudo, the GUI prompts the user for administrative credentials, but ultimately fails. Running with sudo from the start works great.
  • conradkleinespel
    conradkleinespel almost 8 years
    Thank you so much, this is the only thing that ran successfully for me.
  • Michel
    Michel almost 8 years
    Same here for Linux Mint!
  • Prinsig
    Prinsig almost 8 years
    The USB must be formatted to FAT32. Otherwise, I still get this error. To do that, open GParted, select the correct device from the drop-down, right-click the partition and unmount it. Then, right-click and format to FAT32.
  • heltonbiker
    heltonbiker over 7 years
    I got an error using /dev/sdc, but got it right after figuring out it needed to be /dev/sdc1 (with a "1" at the end in my case).
  • Damir Olejar
    Damir Olejar over 7 years
    This should be an accepted answer.
  • sudodus
    sudodus about 7 years
    Please explain also which version of winusb you recommend, and how to install it.
  • Stepan Pakholok
    Stepan Pakholok about 7 years
    I used these way to install it: sudo add-apt-repository ppa:colingille/freshlight, sudo apt-get update, sudo apt-get install winusb
  • Stepan Pakholok
    Stepan Pakholok about 7 years
    dpkg -l winusb returns version 1.0.11.1+git
  • sudodus
    sudodus about 7 years
    Thank you :-) This shows that winusb from ppa:colingille/freshlight is working now.
  • GatesReign
    GatesReign over 6 years
    I used gparted to unmount the pen drive. Right Click /dev/sdc/ -> hit unmount -> and went back to woeUSB to execute the installation
  • paulplusx
    paulplusx over 5 years
    It worked on ubuntu 18.04 and I used the gui right after I formated using "disks".
  • Panos
    Panos over 5 years
    Same Issue on Ubuntu 18.04. Solution: Woeusb will try to use FAT32 by default so the windows 10 iso won't be loaded because some files are bigger than 4BG. Use the command line tool and add the --target-filesystem NTFS at the end. woeusb --device <iso_file> <device> --target-filesystem NTFS
  • stidmatt
    stidmatt about 5 years
    The solution from Panos worked great for me. Thanks!
  • cipricus
    cipricus about 4 years
    nothing under this answer worked for me in 18.04: this did!