D
D
DoILookLikeASubscriber2021-10-29 22:30:40
mint
DoILookLikeASubscriber, 2021-10-29 22:30:40

How to create a bootable Windows 10 USB flash drive in Woeusb under Linux Mint 20.2 Uma?

Good evening, when creating a bootable Windows 10 USB flash drive in Woeusb under Linux Mint 20.2, Uma gives an error. As far as I understand, the error is that there is not enough free space on the media, and therefore it prematurely finishes creating a boot disk, but at the same time I use a 64 GB flash drive. Here is the text of the error:

Installation failed!
Exit code: 256
Log:
WoeUSB v3.3.1
=============================
Mounting source filesystem...
Wiping all existing partition table and filesystem signatures in /dev/sdc...
/dev/sdc: 2 bytes erased at offset 0x000001fe (dos): 55 aa
/dev/sdc: calling ioctl to re-read partition table: Done
Ensure that /dev/sdc is really wiped...
Creating new partition table on /dev/sdc...
Creating target partition...
Making system realize that partition table has changed...
Wait 3 seconds for block device nodes to populate...
Cluster size has been automatically set to 4096 bytes .
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.
--2021-10-29 22:06:40-- https://github.com/pbatard/rufus/raw/master/res/ue...
Recognizing github.com (github.com)... 140.82. 121.4
Connecting to github.com (github.com)|140.82.121.4|:443... pulse
connection established.
HTTP request sent. Waiting for response... pulse
302 Found
Address:https://raw.githubusercontent.com/pbatard/rufus/ma... [jump]
--2021-10-29 22:06:40-- https://raw.githubusercontent.com/pbatard/rufus/ma ...
Recognizing raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199 .110.133|:443... pulse
connection established.
HTTP request sent. Waiting for response... pulse
200 OK
Length: 1048576 (1.0M) [application/octet-stream]
Saving to directory: ""/tmp/WoeUSB.rUdbeU.tempdir/uefi-ntfs.img"".
0K .......... .......... .......... .........pulse
. ..........4% 727K 1s
50K .......... .......... .......... .......... .....pulse
... .. 9% 848K 1s
100K .......... .......... .......... .......... ... ....... 14% 2.96M 1s
150K .........pulse
. .......... .......... .......... .......... 19% 4.04M 1s
200K ... ....... .......... .......... .......... .......... 24% 1 ,36M 1s
250K .......... .......... .......... .......... ...... pulse
.... 29% 5.65M 0s
300K .......... .......... .......... ........ .. .......... 34% 6.05M 0s
350K .......... .......... .......... . ......... .......... 39% 6.69M 0s
400K .......... .......... .... ...... .......... .......... 43% 7.87M 0s
450K .......... ....... ... .......... .......... .......... 48% 7.82M 0s
500K .......... .pulse
......... .......... .......... ........ .. 53% 1.91M 0s
550K .......... .......... .......... .......... . ......... 58% 10.1M 0s
600K .......... .......... .......... .... ...... .......... 63% 11.1M 0s
650K .......... .......... ....... ... .......... .......... 68% 10.0M 0s
700K .......... .......... .......... .......... .......... 73% 11.4M 0s
750K .......... ... ....... .......... .......... .......... 78% 11.5M 0s
800K ...... .... .......... .......... .......... .......... 83% 11.6M 0s
850K .......... .......... .......... .......... ......... .87% 10.3M 0s
900K .......... .......... .......... .......... .. ........ 92% 11.6M 0s
950K .......... .......... .......... .......... ......... .97% 11.9M 0s
1000K .......... .......... .... 100% 13.3M=0.3s
2021-10-29 22:06: 41 (3.38 MB/s) - "/tmp/WoeUSB.rUdbeU.tempdir/uefi-ntfs.img" saved [1048576/1048576]
dd: Write to '/dev/sdc2': No free space left on device
1025 +0 records received
1024+0 records sent
524288 bytes (524 kB, 512 KiB) copied, 0.0682348 s, 7.7 MB/s
The command "dd if="${download_directory}/uefi-ntfs.img" of ="${uefi_ntfs_partition}"" failed with exit status "1", program is prematurely aborted
Unmounting and removing "/media/woeusb_source_1635534382_5428"...
You may now safely detach the target device

Please help solve the problem. Thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexandr_VM, 2021-12-22
@Alexandr_VM

WoeUSB creates an EFI partition at the end of the disk at 512Kb, and the image weighs 1MB, when you try to write it via dd, it cannot expand it, because such an error, I decided like this:
sudo nano /usr/bin/woeusb
We find the line -- -1025s and replace with -- -4097s
Next, look for the string -1024s \ and replace with -4096s \
This will increase the partition to 2MB and everything will roll without problems.

U
Unkn0wn_g0ose, 2021-12-16
@Unkn0wn_g0ose

https://drive.google.com/file/d/11V4imPUhQjRjc4A-F...
I came, I saw - I finished it, ahem.
This will probably help.
Hope.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question