Bug 2542352 - windows.img fails to be created with error: mount: /sysroot: unknown filesystem type 'ntfs3'
Summary: windows.img fails to be created with error: mount: /sysroot: unknown filesyst...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: guestfs-tools
Version: 46
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-28 08:03 UTC by Richard W.M. Jones
Modified: 2026-09-30 08:31 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
root.log (570.45 KB, text/plain)
2026-09-28 08:04 UTC, Richard W.M. Jones
no flags Details
build.log (3.83 MB, text/plain)
2026-09-28 08:04 UTC, Richard W.M. Jones
no flags Details

Description Richard W.M. Jones 2026-09-28 08:03:29 UTC
When running the test suite in guestfs-tools, the windows.img fails to be created with this ntfs mounting bug:

command: mount '/dev/sda2' '/sysroot/'
command: mount returned 32
command: mount: stderr:
mount: /sysroot: unknown filesystem type 'ntfs3'.
       dmesg(1) may have more information after failed mount system call.
ocaml_exn: 'mount' raised 'Failure' exception
guestfsd: error: mount exited with status 32: mount: /sysroot: unknown filesystem type 'ntfs3'.
       dmesg(1) may have more information after failed mount system call.
libguestfs: trace: mount = -1 (error)
*stdin*:19: libguestfs: error: mount: mount exited with status 32: mount: /sysroot: unknown filesystem type 'ntfs3'.
       dmesg(1) may have more information after failed mount system call.

This seems to be something to do with a conflict between ntfs-3g and the Linux ntfs kernel module.

I cannot reproduce this locally even on a fully up to date Rawhide machine.

Reproducible: Always

Comment 1 Richard W.M. Jones 2026-09-28 08:04:14 UTC
Created attachment 2158850 [details]
root.log

Comment 2 Richard W.M. Jones 2026-09-28 08:04:40 UTC
Created attachment 2158851 [details]
build.log

Comment 3 Marius Vollmer 2026-09-29 08:50:33 UTC
Maybe util-linux 2.42 has something to do with this. It has changed it's default from "ntfs" to "ntfs3". If you want to use ntfs-3g you might need to explicitly use "mount -t ntfs" with that version of util-linux.  See https://github.com/util-linux/util-linux/issues/4307 for my confusion about this.

Comment 4 Richard W.M. Jones 2026-09-30 08:31:49 UTC
Thanks, yes that seems to be relevant.  I also notice some commits that make this configurable which seem to be useful:

https://github.com/karelzak/util-linux-work/commit/95b8fce1cf6b420903f3ad5aed4be36d79330676


Note You need to log in before you can comment on or make changes to this bug.