woeusb fails with unknown filesystem type 'ntfs-3g'

Invocation of woeusb fails with:

**erlangen:/home/karl/Downloads #** woeusb --target-filesystem NTFS --device Win11_German_x64v1.iso /dev/sda 
WoeUSB v5.2.4 
============================== 
Info: Mounting source filesystem...
Info: Wiping all existing partition table and filesystem signatures in /dev/sda...
/dev/sda: 2 bytes were erased at offset 0x000001fe (dos): 55 aa 
/dev/sda: calling ioctl to re-read partition table: Success 
Info: Ensure that /dev/sda is really wiped...
Info: Creating new partition table on /dev/sda...
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-08-28 22:47:26--  https://cdn.jsdelivr.net/gh/pbatard/rufus@b30e3b387a3ca7a5e2fddebcc2c8f9538a89b868/res/uefi/uefi-ntfs.img 
Resolving cdn.jsdelivr.net (cdn.jsdelivr.net)... 2606:4700::6810:5714, 2606:4700::6810:5814, 2606:4700::6810:5914, ... 
Connecting to cdn.jsdelivr.net (cdn.jsdelivr.net)|2606:4700::6810:5714|:443... connected. 
HTTP request sent, awaiting response... 200 OK 
Length: 1048576 (1.0M) [application/octet-stream] 
Saving to: ‘/tmp/WoeUSB.tempdir.iaEKif/uefi-ntfs.img’ 

uefi-ntfs.img                                               100%=========================================================================================================================================>]   1.00M  3.00MB/s    in 0.3s     

2022-08-28 22:47:26 (3.00 MB/s) - ‘/tmp/WoeUSB.tempdir.iaEKif/uefi-ntfs.img’ saved [1048576/1048576] 

2048+0 records in 
2048+0 records out 
1048576 bytes (1.0 MB, 1.0 MiB) copied, 2.53769 s, 413 kB/s 
Info: Mounting target filesystem...
mount: /tmp/woeusb-target-20220828-224713-Sunday.hkzK4B: unknown filesystem type 'ntfs-3g'. 
ERROR: Unable to mount target filesystem in /dev/sda1
Info: Unmounting and removing "/tmp/woeusb-source-20220828-224713-Sunday.gmSVQL"...
Info: Unmounting and removing "/tmp/woeusb-target-20220828-224713-Sunday.hkzK4B"...
umount: /tmp/woeusb-target-20220828-224713-Sunday.hkzK4B: not mounted. 
Warning: Unable to unmount "/tmp/woeusb-target-20220828-224713-Sunday.hkzK4B".
Warning: Some mountpoints are not unmount/cleaned successfully and must be done manually
Info: You may now safely detach the target device
**erlangen:/home/karl/Downloads #**

Any idea?

Hi
Is the ntfs-3g package(s) installed?


zypper se -si ntfs


S | Name         | Type    | Version       | Arch   | Repository
--+--------------+---------+---------------+--------+----------------------
i | libntfs-3g89 | package | 2022.5.17-1.2 | x86_64 | Main Repository (OSS)
i | ntfs-3g      | package | 2022.5.17-1.2 | x86_64 | Main Repository (OSS)
i | ntfsprogs    | package | 2022.5.17-1.2 | x86_64 | Main Repository (OSS)

I had removed some unneeded packages:

**erlangen:~ #** zgrep ntfs /var/log/zypp/history-20220825.xz |grep remove 
2022-01-27 15:55:51|command|root@erlangen|'zypper' '**remove**' '--clean-deps' 'libKF5Bookmarks5-lang' 'libKF5Codecs5-lang' 'libKF5Completion5-lang' 'libKF5ConfigCore5-lang' 'libKF5DBusAddons5-lang' 'libKF5DNSSD5-lang' 'libKF5GlobalAccel5-lang' 'libKF5Holidays5-lang' 'libKF5ItemViews5-lang' 'libKF5JobWidgets5-lang' 'libKF5Notifications5-lang' 'libKF5Solid5-lang' 'libKF5SonnetCore5-lang' 'libKF5SyntaxHighlighting5-lang' 'libKF5WidgetsAddons5-lang' 'libKF5WindowSystem5-lang' 'libgdbm_compat4-32bit' **'ntfs-3g'** 'pam-doc' 'python38-systemd'| 
# 2022-01-27 15:55:53 ntfs-3g-2021.8.22-2.1.x86_64 **remove**d ok 
2022-01-27 15:55:53|**remove** |ntfs-3g|2021.8.22-2.1|x86_64|root@erlangen| 
**erlangen:~ #**

Reinstalled:

**erlangen:~ #** zypper se -si ntfs 
Loading repository data... 
Reading installed packages... 

S  | Name         | Type    | Version       | Arch   | Repository 
---+--------------+---------+---------------+--------+----------------------- 
i  | libntfs-3g89 | package | 2022.5.17-1.2 | x86_64 | Haupt-Repository (OSS) 
i+ | ntfs-3g      | package | 2022.5.17-1.2 | x86_64 | Haupt-Repository (OSS) 
i  | ntfsprogs    | package | 2022.5.17-1.2 | x86_64 | Haupt-Repository (OSS) 
**erlangen:~ #**

Ran again ‘woeusb --target-filesystem NTFS --device Win11_German_x64v1.iso /dev/sda’ and got this nice stick:

**erlangen:~ #** fdisk -l /dev/sda 
**Disk /dev/sda: 29.82 GiB, 32023511040 bytes, 62545920 sectors**
Disk model: Ultra Line       
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: dos 
Disk identifier: 0x45581d25 

**Device    ****Boot****   Start****     End**** Sectors**** Size****Id****Type**
/dev/sda1           8192 62543871 62535680 29.8G  7 HPFS/NTFS/exFAT 
/dev/sda2       62543872 62545919     2048    1M  e W95 FAT16 (LBA) 
**erlangen:~ #** 

Many thanks!

???

**erlangen:~ #** rpm -q --whatrecommends ntfs-3g 
patterns-base-enhanced_base-20200505-36.1.x86_64 
**erlangen:~ #** rpm -q --whatrequires ntfs-3g 
no package requires ntfs-3g 
**erlangen:~ #** rpm -q --whatsuggests ntfs-3g 
no package suggests ntfs-3g 
**erlangen:~ #**

On host erlangen ntfs-3g was a recommended and auto-installed package. When I switched solver defaults to “solver.onlyRequires = true” “zypper packages --unneeded” would list ntfs-3g.

After reinstalling ntfs-3g is flagged as user installed:

[FONT=monospace][FONT=monospace][FONT=monospace]**erlangen:~ #** zypper se -is ntfs 
Loading repository data... 
Reading installed packages... 

S  | Name         | Type    | Version       | Arch   | Repository 
---+--------------+---------+---------------+--------+----------------------- 
i  | libntfs-3g89 | package | 2022.5.17-1.2 | x86_64 | Haupt-Repository (OSS) 
i+ | ntfs-3g      | package | 2022.5.17-1.2 | x86_64 | Haupt-Repository (OSS) 
i  | ntfsprogs    | package | 2022.5.17-1.2 | x86_64 | Haupt-Repository (OSS) 
**erlangen:~ #**[/FONT][/FONT][/FONT]

ntfs-3g is no longer listed as unneeded:

**erlangen:~ #** zypper packages --unneeded 
Loading repository data... 
Reading installed packages... 
No packages found. 
**erlangen:~ #**

Ah, for you there is a difference between “unneeded” and “listed as unneeded”.

Nope. Nobody cares: 1180037 – X11:Utilities/WoeUSB: Version upgrade

According to GitHub - WoeUSB/WoeUSB: A Microsoft Windows® USB installation media preparer for GNU+Linux needs ntgs-3g, but the current package lacks this dependency:

**erlangen:~ #** zypper if --requires WoeUSB  
Loading repository data... 
Reading installed packages... 


Information for package WoeUSB: 
------------------------------- 
Repository     : Haupt-Repository (OSS) 
Name           : WoeUSB 
Version        : 5.2.4-1.4 
Arch           : noarch 
Vendor         : openSUSE 
Installed Size : 396.8 KiB 
Installed      : Yes 
Status         : up-to-date 
Source package : WoeUSB-5.2.4-1.4.src 
Upstream URL   : https://github.com/WoeUSB/WoeUSB 
Summary        : Windows USB installation media creator 
Description    :  
    WoeUSB is a utility for creating a bootable Windows installation 
    USB storage device from an existing Windows installation disc or disk image. 
Requires       : [12] 
    grep 
    findutils 
    util-linux 
    /usr/bin/bash 
    wget 
    parted 
    gawk 
    grub2 
    dosfstools 
    ntfsprogs 
    wimtools 
    bash >= 4.3 

**erlangen:~ #** 

Install of openSUSE-20220921-0 flagged ntfs-3g as user installed:

6700k:/home/karl/Downloads # zypper se -is ntfs-3g
Loading repository data...
Reading installed packages...

S  | Name         | Type    | Version       | Arch   | Repository
---+--------------+---------+---------------+--------+-----------------------
i  | libntfs-3g89 | package | 2022.5.17-1.3 | x86_64 | Haupt-Repository (OSS)
i+ | ntfs-3g      | package | 2022.5.17-1.3 | x86_64 | Haupt-Repository (OSS)
6700k:/home/karl/Downloads # 
**6700k:/home/karl/Downloads #** zypper packages --unneeded  
Loading repository data... 
Reading installed packages... 
No packages found. 
**6700k:/home/karl/Downloads #**

Running woeusb was a smooth experience:

6700k:/home/karl/Downloads # zypper in WoeUSB
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 3 NEW packages are going to be installed:
  WoeUSB libwim15 wimtools

3 new packages to install.
Overall download size: 461.2 KiB. Already cached: 0 B. After the operation, additional 957.5 KiB will be used.
Continue? [y/n/v/...? shows all options] (y): 
Retrieving package libwim15-1.13.6-1.1.x86_64                                                                                                                                                                                            (1/3), 203.2 KiB (417.5 KiB unpacked)
Retrieving: libwim15-1.13.6-1.1.x86_64.rpm .............................................................................................................................................................................................................................[done]
Retrieving package wimtools-1.13.6-1.1.x86_64                                                                                                                                                                                            (2/3),  95.2 KiB (143.2 KiB unpacked)
Retrieving: wimtools-1.13.6-1.1.x86_64.rpm .............................................................................................................................................................................................................................[done]
Retrieving package WoeUSB-5.2.4-1.5.noarch                                                                                                                                                                                               (3/3), 162.8 KiB (396.8 KiB unpacked)
Retrieving: WoeUSB-5.2.4-1.5.noarch.rpm ....................................................................................................................................................................................................................[done (1.1 KiB/s)]

Checking for file conflicts: ...........................................................................................................................................................................................................................................[done]
(1/3) Installing: libwim15-1.13.6-1.1.x86_64 ...........................................................................................................................................................................................................................[done]
(2/3) Installing: wimtools-1.13.6-1.1.x86_64 ...........................................................................................................................................................................................................................[done]
(3/3) Installing: WoeUSB-5.2.4-1.5.noarch ..............................................................................................................................................................................................................................[done]
6700k:/home/karl/Downloads # woeusb --target-filesystem NTFS --device 
Win10_21H2_German_x64.iso  sdc                        
6700k:/home/karl/Downloads # woeusb --target-filesystem NTFS --device Win10_21H2_German_x64.iso /dev/sdc
WoeUSB v5.2.4
==============================
Info: Mounting source filesystem...
Info: Wiping all existing partition table and filesystem signatures in /dev/sdc...
/dev/sdc: 2 bytes were erased at offset 0x000001fe (dos): 55 aa
/dev/sdc: calling ioctl to re-read partition table: Success
Info: Ensure that /dev/sdc is really wiped...
Info: Creating new partition table on /dev/sdc...
Info: Creating target partition...
Info: Making system realize that partition table has changed...
blockdev: ioctl error on BLKRRPART: Device or resource busy
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-09-26 08:00:28--  https://cdn.jsdelivr.net/gh/pbatard/rufus@b30e3b387a3ca7a5e2fddebcc2c8f9538a89b868/res/uefi/uefi-ntfs.img
Resolving cdn.jsdelivr.net (cdn.jsdelivr.net)... 2606:4700::6810:5614, 2606:4700::6810:5714, 2606:4700::6810:5514, ...
Connecting to cdn.jsdelivr.net (cdn.jsdelivr.net)|2606:4700::6810:5614|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1048576 (1.0M) [application/octet-stream]
Saving to: ‘/tmp/WoeUSB.tempdir.ZJ68PB/uefi-ntfs.img’

uefi-ntfs.img                                                       100%=================================================================================================================================================================>]   1.00M  3.01MB/s    in 0.3s    

2022-09-26 08:00:28 (3.01 MB/s) - ‘/tmp/WoeUSB.tempdir.ZJ68PB/uefi-ntfs.img’ saved [1048576/1048576]

2048+0 records in
2048+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 3.27926 s, 320 kB/s
Info: Mounting target filesystem...
Info: Copying files from source media...
Info: Installing GRUB bootloader for legacy PC booting support...
Installing for i386-pc platform.
Installation finished. No error reported.
Info: Installing custom GRUB config for legacy PC booting...
Info: Done :)
Info: The target device should be bootable now
Info: Unmounting and removing "/tmp/woeusb-source-20220926-080002-Monday.YAZWrn"...
Info: Unmounting and removing "/tmp/woeusb-target-20220926-080002-Monday.4StEM7"...
Info: You may now safely detach the target device
6700k:/home/karl/Downloads #