https://github.com/slacka/WoeUSB/wiki/F.A.Q.#why-d…
Why does WoeUSB can't find my external usb drive after I use the "eject" button in FileManager etc. to unmount its filesystems?
It probably detaches the entire USB device instead of just unmounting the filesystems, use umount /dev/sdXN command(requires root access) or udisksctl unmount --block-device /dev/sdXN command in terminal instead.
If you prefer GUI, the "stop" button in the GNOME "Disks" application can help.
Если не понятно, то вот картинка:
WoeUSB это приложение для создания загрузочного носителя для операционных систем Windows из дистрибутива Linux
Если вы ищете, как установить и использовать WoeUSB, у нас уже есть статья а также видео, демонстрирующее весь процесс в деталях.
Когда «вилка упала»
Я использую WoeUSB в течение долгого времени, и ни разу мне не удавалось создать загрузочную флешку Windows с помощью программного обеспечения. Тем не менее, я постоянно вижу отчеты на нашем форуме, Диолинукс Плюсот людей, у которых был неприятный опыт с программой.
Именно в одном из этих отчетов я увидел, как пользователь объяснил, что он не может использовать программное обеспечение из-за печально известной «Ошибка 256», и именно в этот момент я понял, что уже получал такое же сообщение об ошибке раньше. Однако в моем случае мне всегда удавалось устранить это небольшое неудобство относительно простым способом.
В тот момент я решил воссоздать здесь, в моей системе, ситуацию, в которой возникает ошибка, чтобы задокументировать эффективный способ ее решения! И, наконец, вот руководство, предлагающее решение.
Сначала я расскажу, в какой ситуации возникает «Ошибка 256».
Во всех моих тестах эта ошибка возникала только тогда, когда я пытался использовать флешку, которая уже содержала записанный с нее образ какого-то дистрибутива Linux. Чтобы использовать USB-устройство с WoeUSB, оно должно быть отформатировано в fat32 и желательно пустым.
Это связано с тем, что способ разбиения и форматирования флеш-накопителя при получении загрузочного ISO из системы Linux несовместим с тем, как WoeUSB работает с файлами ISO Windows, и именно здесь «Me # д * »все происходит.
Чтобы использовать такое устройство с образом Windows, необходимо отформатировать его. Однако в этих случаях недостаточно просто щелкнуть «Формат», нам также необходимо создать новую таблицу разделов на устройстве.
Когда отображается «Ошибка 256», также отображается сообщение о том, что «целевое устройство в настоящее время занято, размонтируйте все разделы, установленные на целевом устройстве, и повторите попытку».
Оказывается, это сообщение может немного сбивать с толку, ведь при разборке целевого устройства (которым является флеш-накопитель) оно просто «исчезает» из системы, что делает невозможным его выбор в WoeUSB.
Для решения проблемы вы можете использовать приложение под названием «Gparted». После того, как вы установили его, откройте его и убедитесь, что ваше устройство флэш-памяти выбрано (вверху справа). Нажми на “устройство“А потом”Создать таблицу разделовВ появившемся диалоговом окне выберите «MSDOSИ затем нажмите «Применять».
После этого появится сообщение об ошибке, просто нажмите «игнорировать».
Теперь полностью отключите флэш-накопитель от USB-порта, подождите 5 секунд и замените его. Что сделано, в левом верхнем углу программы нажмите на меню «Gparted“А потом”Обновить устройства».
В верхнем левом углу Gparted нажмите «Создать новый раздел». В открывшемся окне, в поле «Файловая система“Выбрать”fat32“, в “метка«Введите все, что вы хотите (например,« Pen Drive »), а затем нажмите«Добавить».
Дождитесь завершения операции и в поле «Применение отложенных операций“щелкнуть”близко». Также закрой Gparted и иди!
Ваша флешка готова для получения изображения Windows через WoeUSB без проблем.
Вероятно, это одна из единственных причин, по которым у многих людей возникают проблемы с использованием WoeUSB. Исходя из моего опыта, это программа, которая всегда очень хорошо выполняла свою работу.
Я надеюсь, что, следуя этим советам, вы также сможете насладиться лучшим из WoeUSB. И избавьтесь от «головной боли» каждый раз, когда вам нужно создать загрузочный носитель Windows на Linux.
Были ли у вас проблемы при попытке использовать WoeUSB? Вы уже знали это решение? Расскажите в комментариях ниже о своем опыте работы с WoeUSB до и после этого совета. И если у вас есть еще лучший совет, обязательно поделитесь им с нами!
Вот и все, ребята! ?
Post Views: 320
Следующие шаги работали для меня для загрузочной флешки Windows 7 в Ubuntu-18.04
Шаг 1. Загрузите последний файл bash со страницы выпуска WoeUSB https://github.com/WoeUSB/WoeUSB/releases .
Шаг 2. Исправьте отсутствующие права доступа к исполняемому файлу chmod +x path/to/woeusb-NNNbash
Шаг 3: Установите GParted sudo apt-get install gparted
Шаг 4: Запустите интерфейс пользовательского интерфейса gparted
Шаг 5: Выберите свой диск в раскрывающемся списке в правом верхнем углу, удалите весь раздел с помощью GParted (после этого не создавайте новый раздел)
Шаг 6: Создайте загрузочную флешку ( sudo ./woeusb-NNNbash —target-filesystem NTFS —device path/to/windows.iso /dev/sdX )
wget https://github.com/WoeUSB/WoeUSB/releases
sudo apt install gparted
cp /home/devops/Downloads/woeusb-5.2.4.bash .
chmod 777 woeusb-5.2.4.bash
sudo ./woeusb-5.2.4.bash --target-filesystem NTFS --device /home/devops/Downloads/test/en_windows_7_ultimate_x64_dvd.iso /dev/sdb
sudo apt install wimtools
# Install above package if you get below error and then rerun woeusb command below it again
# "error woeusb requires wimlib-imagex command in the executable search path, but it is not found"
sudo ./woeusb-5.2.4.bash --target-filesystem NTFS --device /home/devops/Downloads/test/en_windows_7_ultimate_x64_dvd.iso /dev/sdb
I tried to create a Windows 10 USB boot medium with WoeUSB. I formatted a USB drive with an NTFS partition, but WoeUSB complains with:
Installation failed!
Exit code: 256
Log:
WoeUSB v@@WOEUSB_VERSION@@
==============================
Mounting source filesystem...
Wiping all existing partition table and filesystem signatures in /dev/sdc... wipefs:
error: /dev/sdc: probing initialization failed The command "wipefs --all
"${target_device}"" failed with exit status "1", program is prematurely aborted
Unmounting and removing "/medi/woeusb_source_1530017199_18199"...
You may now safely detach the target device
or
wipefs: WARNING: /dev/sdc: appears to contain 'dos' partition table
karel
109k100 gold badges266 silver badges296 bronze badges
asked Jun 26, 2018 at 13:20
dont eject just unmount.
this is what worked:
- insert usb stick
- open gparted
- unmount using gparted
- format to ntfs using gparted
- close gparted
- Use woeusb, it should work now
answered Jan 31, 2020 at 15:32
1
Start wousb from command line:
sudo woeusb --partition Win10_1803_EnglishInternational_x64.iso /dev/sdc1
answered Jun 26, 2018 at 13:20
jschnassejschnasse
3212 gold badges3 silver badges10 bronze badges
1
sudo wipefs --all --force /dev/sdX
You’ll need to change /dev/sdX
to your device
answered Feb 17, 2019 at 13:07
1
Below steps worked for me for windows 7 bootable pendrive in ubuntu-18.04
Step 1: Download the latest bash file from the release of the WoeUSB page https://github.com/WoeUSB/WoeUSB/releases
Step 2: Fix the missing executable file permission chmod +x path/to/woeusb-N.N.N.bash
Step 3: Install GParted sudo apt-get install gparted
Step 4: Start gparted ui interface
Step 5: Select your drive by top-right dropdown
delete your whole partition using GParted ( Don’t create a new partition after that )
Step 6: Make bootable Pendrive ( sudo ./woeusb-N.N.N.bash —target-filesystem NTFS —device path/to/windows.iso /dev/sdX )
wget https://github.com/WoeUSB/WoeUSB/releases
sudo apt install gparted
cp /home/devops/Downloads/woeusb-5.2.4.bash .
chmod 777 woeusb-5.2.4.bash
sudo ./woeusb-5.2.4.bash --target-filesystem NTFS --device /home/devops/Downloads/test/en_windows_7_ultimate_x64_dvd.iso /dev/sdb
sudo apt install wimtools
# Install above package if you get below error and then rerun woeusb command below it again
# "error woeusb requires wimlib-imagex command in the executable search path, but it is not found"
sudo ./woeusb-5.2.4.bash --target-filesystem NTFS --device /home/devops/Downloads/test/en_windows_7_ultimate_x64_dvd.iso /dev/sdb
answered Dec 31, 2021 at 19:24
Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.
-
[Jonathan_C_Linux]
- Level 1
- Posts: 25
- Joined: Fri Dec 28, 2018 9:30 pm
- Location: North Charleston, South Carolina
WoeUSB not working / Exit Code: 256
When I try to add the Windows 10 ISO to my flash drive I get an error of (Exit Code: 256). The USB drive is formatted as NTFS and is unmounted but it won’t install.
Mounting source filesystem…
Error: File «/media/woeusb_source_1546743561_19723/sources/install.wim» in source image has exceed the FAT32 Filesystem 4GiB Single File Size Limitation and cannot be installed. You must specify a different —target-filesystem.
Refer: https://github.com/slacka/WoeUSB/wiki/L … limitation for more info.
Unmounting and removing «/media/woeusb_source_1546743561_19723″…
You may now safely detach the target device
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
-
trytip
- Level 14
- Posts: 5370
- Joined: Tue Jul 05, 2016 1:20 pm
Re: WoeUSB not working / Exit Code: 256
Post
by trytip » Sun Jan 06, 2019 1:14 am
this means your flash drive is not large enough to hold the win10 iso. i just formatted my really old 8GB flash drive which i have formatted maybe 1000 times to fat32 and i have no issue making windows usb out of it. what is the full name of your win10 iso called? are you trying to make a bootable iso from an .exe update?
did you format your flash drive with the Usb stick Formatter?
Last edited by trytip on Sun Jan 06, 2019 3:39 pm, edited 1 time in total.
-
[Jonathan_C_Linux]
- Level 1
- Posts: 25
- Joined: Fri Dec 28, 2018 9:30 pm
- Location: North Charleston, South Carolina
Re: WoeUSB not working / Exit Code: 256
Post
by [Jonathan_C_Linux] » Sun Jan 06, 2019 3:07 pm
I have formatted the USB drive to NTFS multiple times using USB Stick Formatter, GParted, and Disks. All formatting attempts have been successful but the ISO won’t install. The USB drive has 31 GB of storage space. The ISO file name is : Win10_1809Oct_English_x64.iso
-
trytip
- Level 14
- Posts: 5370
- Joined: Tue Jul 05, 2016 1:20 pm
Re: WoeUSB not working / Exit Code: 256
Post
by trytip » Sun Jan 06, 2019 4:24 pm
rightclick on the .iso and Open With «Disk Image Mounter» but more than likely your copy of install.esd is larger than 4GB which woeusb can’t handle. is this an official microsoft .iso?
try open gparted, select your flash drive and under devices > create new partition table > msdos > EXIT and format with USB FORMATTER NTFS
not sure if woeusb works with ntfs since it does install grub but fat32 will give you a limit at 4GB
you need to get an OFFICIAL copy of windows 10 or create the usb in other windows os with the Windows USB/DVD Download Tool
-
Vilis
- Level 1
- Posts: 11
- Joined: Sat Apr 23, 2016 4:09 pm
Re: WoeUSB not working / Exit Code: 256
Post
by Vilis » Mon May 13, 2019 1:15 pm
I have the same identical problem using Cinnamon 18.3, but I went further in analyzing it. I installed the Ubuntu repository for WoeUSB, and ran WoeUSB. My copy of Windows 7 Pro is the official Microsoft OEM compatible version, because I have an OEM MS Win. 7 Pro license sticker on my computer, which the local Microsoft rep guided me by phone to verify — it verified as good. Then the Microsoft rep guided me to create a bootable USB stick on a Windows 7 Pro machine I have, using 100% Microsoft software, and that procedure produced a bootable USB stick using my official MS .iso file of OEM Windows 7 Pro 64bit.
So I have a working copy of a USB stick with official MS Win 7 Pro .iso installed on it, made entirely using Windows software, not Linux, to compare with my WoeUSB. Both copies, my 100% Microsoft copy, and my WoeUSB copy are IDENTICAL on my computer screen, plugged in side by side into my computer, until the instant that the WoeUSB installation finishes, when suddenly it crashes in the last milllisecond of installation, and after that millisecond the two copies are no longer identical, but radically different!
Conclusion: THIS IS A VALID COMPLAINT, WHICH I HAVE VALIDATED AS CORRECT, needing attention by the gurus on this forum. The previous guru was wrong in his conclusions.
-
Vilis
- Level 1
- Posts: 11
- Joined: Sat Apr 23, 2016 4:09 pm
Re: WoeUSB not working / Exit Code: 256
Post
by Vilis » Mon May 13, 2019 1:26 pm
My Error Exit code was 512
That is the only difference, besides the fact that the original poster was installing Windows 10 and I was installing Windows 7. This confirms that WoeUSB is not working on Linux Mint 18.3
-
Vilis
- Level 1
- Posts: 11
- Joined: Sat Apr 23, 2016 4:09 pm
Re: WoeUSB not working / Exit Code: 256
Post
by Vilis » Mon May 13, 2019 1:40 pm
PS there is no question that WoeUSB correctly formats the USB stick (I used an 8GB USB) to NTFS, because when I pre-formatted my USB stick to NTFS first, WoeUSB would NOT PROCEED to install my Microsoft OEM Win. 7 Pro .iso file into my USB stick. Only when I pre-formatted that stick to FAT 32, would WoeUSB proceed to format it to NTSF, and to complete its attempted creation of a bootable USB installer for Windows 7, where it failed at the bitter end, giving an Error code of 512 (presumably related to the Exit code 256.
Because local Microsoft rep successfully guided me in producing an OEM Microsoft Win 7 Pro bootable USB stick formatted first to NTSF, NOT FAT 32, I can attest that the original complaint in this thread is 100% valid in every neccessary detai, and that WoeUSB does not work on LinuxMint Cinnamon 18.3, and also does not work on Linux Mint Cinnamon 19.xx according to similar complaints on the internet.
-
Vilis
- Level 1
- Posts: 11
- Joined: Sat Apr 23, 2016 4:09 pm
Re: WoeUSB not working / Exit Code: 256
Post
by Vilis » Mon May 13, 2019 1:53 pm
The official freely downloadable from Microsoft OEM Windows 7 Pro 64bit version I am using and also attempting to install on several properly license stickered computers IS 5.9 GIGABYTES because it includes everything uptated to 2019 in a single .iso file. So the USB stick has to be at least 8 Gigabytes, and it must be formatted to NTSF, not to FAT 32, because FAT 32 cannot handle any file bigger than 4 GB.
Because I have one 8GB USB stick formatted to be bootable loaded with this latest OEM Win 7 Pro .iso file MADE 100% BY THE MICROSOFT REP ON MY WORKING WINDOWS 7 PRO COMPUTER GUIDING ME, WHIC WORKS PERFECTLY, I can confirm that WoeUSB works 99.9% perfectly until the bitter end millisecond of installation on the USB stick, when at that bitter end it crashes, and in my case produces an Exit code 512. Internet reports the same problem under Cinnamon 19.xx.
-
MrEen
- Level 23
- Posts: 18353
- Joined: Mon Jun 12, 2017 8:39 pm
Re: WoeUSB not working / Exit Code: 256
Post
by MrEen » Mon May 13, 2019 3:50 pm
Vilis wrote: ⤴Mon May 13, 2019 1:15 pm
Conclusion: needing attention by the gurus on this forum.
Actually, if this is indeed a bug, this should be reported to the WoeUSB developer(s) on their github page here: https://github.com/slacka/WoeUSB/issues
You may want to try following the instructions here to see if that changes anything.
And take note of the last bit on the page with the instructions:
Everything should work as normal — though I’m told the app may spit an error out but that the actual USB will still boot/install fine — but if it doesn’t you can file bugs on the WoeUSB Github page.
P.S. I am not a guru, I have never used WoeUSB, and I’ve never stayed at a Holiday Inn Express.