Trying to create a bootable usb with woeusb

so essentially im trying to create a bootable windows usb but for some reason i keep getting this:

[stolen-cinnamon@stolencinnamon-80s7 ~]$ sudo ./woeusb --device ~/Downloads/Win10_21H2_English_x64.iso /dev/sdb --tgt-fs NTFS
WoeUSB v@@WOEUSB_VERSION@@
==============================
Info: Mounting source filesystem...
Info: Wiping all existing partition table and filesystem signatures in /dev/sdb...
/dev/sdb: 2 bytes were erased at offset 0x000001fe (dos): 55 aa
/dev/sdb: calling ioctl to re-read partition table: Success
Info: Ensure that /dev/sdb is really wiped...
Info: Creating new partition table on /dev/sdb...
Info: Creating target partition...
Info: Making system realize that partition table has changed...
Info: 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.
--2022-06-25 14:22:29--  https://cdn.jsdelivr.net/gh/pbatard/rufus@b30e3b387a3ca7a5e2fddebcc2c8f9538a89b868/res/uefi/uefi-ntfs.img
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving cdn.jsdelivr.net (cdn.jsdelivr.net)... 104.16.85.20, 104.16.86.20, 104.16.89.20, ...
Connecting to cdn.jsdelivr.net (cdn.jsdelivr.net)|104.16.85.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1048576 (1.0M) [application/octet-stream]
Saving to: ‘/tmp/WoeUSB.tempdir.yNGSB9/uefi-ntfs.img’

uefi-ntfs.img                           100%[============================================================================>]   1.00M   541KB/s    in 1.9s    

2022-06-25 14:22:31 (541 KB/s) - ‘/tmp/WoeUSB.tempdir.yNGSB9/uefi-ntfs.img’ saved [1048576/1048576]

2048+0 records in
2048+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.389996 s, 2.7 MB/s
Info: Mounting target filesystem...
ntfs_mst_post_read_fixup_warn: magic: 0xffffffff  size: 1024   usa_ofs: 65535  usa_count: 65535: Invalid argument
ntfs_mst_post_read_fixup_warn: magic: 0xffffffff  size: 1024   usa_ofs: 65535  usa_count: 65535: Invalid argument
ntfs_mst_post_read_fixup_warn: magic: 0xffffffff  size: 1024   usa_ofs: 65535  usa_count: 65535: Invalid argument
ntfs_mst_post_read_fixup_warn: magic: 0xffffffff  size: 1024   usa_ofs: 65535  usa_count: 65535: Invalid argument
Record 0 has no FILE magic (0xffffffff)
Failed to mount '/dev/sdb1': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.
ERROR: Unable to mount target filesystem in /dev/sdb1
Info: Unmounting and removing "/tmp/woeusb-source-20220625-142217-Saturday.P2ylmg"...
Info: Unmounting and removing "/tmp/woeusb-target-20220625-142217-Saturday.qxtyQh"...
umount: /tmp/woeusb-target-20220625-142217-Saturday.qxtyQh: not mounted.
Warning: Unable to unmount "/tmp/woeusb-target-20220625-142217-Saturday.qxtyQh".
Warning: Some mountpoints are not unmount/cleaned successfully and must be done manually
Info: You may now safely detach the target device

Don’t really understand why it can’t mount the usb, I tried formatting the USB as well but that didn’t work either. When I try booting the USB the screen turns blue and then the laptop just turns off

Hi @stolen_cinnamon,

Make sure you have deleted any and all partitions on the thumb drive. Not just formatted it. If in doubt, please provide the output of:

fdisk -l

I am guessing the KDE removable device settings is automounting the device upon successful formatting and this prevent exclusive access.

I have been using woeusb - even wrote a guide on the subject

But with ventoy the need for woeusb to create a bootable USB Windows is not the same.

2 Likes

yes I did delete all other partitions, i then created a new table

I get the idea you shouldn’t have created a new one, but I might be wrong. Look at, and follow @linux-aarhus’ advice and guide there.

hey, sorry but I tried ventoy and I’m fairly sure im doing something wrong because when I tried booting the USB it didn’t show up as a bootable device

just to confirm i have deleted all partitions this is the output:

Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WDC WD10SPCX-24H
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 521249DE-3DD3-0645-93A8-F11124A302E1

Device      Start        End    Sectors   Size Type
/dev/sda1    4096     618495     614400   300M EFI System
/dev/sda2  618496 1953520064 1952901569 931.2G Linux filesystem


Disk /dev/sdb: 29.98 GiB, 32191283200 bytes, 62873600 sectors
Disk model: ProductCode     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 42D939FD-5882-4F85-8B3A-D109C3ABC08A


Disk /dev/loop0: 4 KiB, 4096 bytes, 8 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 255.73 MiB, 268156928 bytes, 523744 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 256.54 MiB, 268996608 bytes, 525384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 55.52 MiB, 58212352 bytes, 113696 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 55.54 MiB, 58232832 bytes, 113736 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 61.92 MiB, 64925696 bytes, 126808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop6: 61.93 MiB, 64933888 bytes, 126824 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop7: 6.27 MiB, 6578176 bytes, 12848 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop8: 6.29 MiB, 6590464 bytes, 12872 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop9: 65.21 MiB, 68378624 bytes, 133552 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop10: 164.76 MiB, 172761088 bytes, 337424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop11: 81.26 MiB, 85209088 bytes, 166424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop12: 44.7 MiB, 46870528 bytes, 91544 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop13: 46.95 MiB, 49233920 bytes, 96160 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop14: 129.3 MiB, 135581696 bytes, 264808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Tip:

To provide terminal output, copy the text you wish to share, and paste it here, surrounded by three (3) backticks, a.k.a grave accents. Like this:

```
pasted text
```

This will just cause it to be rendered like this:

Portaest sed
elementum
cursus nisl nisi
hendrerit ac quis
sit
adipiscing
tortor sit leo commodo.

Instead of like this:

Portaest sed elementum cursus nisl nisi hendrerit ac quis sit adipiscing tortor sit leo commodo.

Thereby improving legibility and making it much easier for those trying to be of assistance.

Alternatively, paste the text in the editor, select the pasted text, and click the </> button in the editor toolbar.

Please edit your post accordingly.

A post was split to a new topic: My attempts to use WoeUSB