Subject: bug#56383: Neither Gnome nor udisksctl can mount an nfs filesystem

From: Alexandre Hannud Abdo <[email-masked]>
Date: Mon, 4 Jul 2022 16:03:34 +0200

Ni! Connecting an external USB hard drive with an NTFS partition fails to mount it on both Gnome (Nautilus) and manually through udisksctl.

On nautilus, it shows the partition but clicking on it pops a window: "wrong fs type, bad option, bad superblock on /dev/sdb2, missing codepage or helper program, or other error".

I've managed to successfully mount it with my non-root user using udisksctl:

$ udisksctl mount -b /dev/sdb2 -t auto

Strangely, "-t ntfs" didn't work, but "-t auto" did the trick. Even when it worked, the drive is mounted without permissions for my user (uid 1000), though I could copy files with sudo.

System logs show:

Jul  2 12:45:44 localhost vmunix: [16392.469209] ntfs: volume version 3.1.
Jul  2 12:45:44 localhost shepherd[1]: [dbus-daemon]
Jul  2 12:45:44 localhost shepherd[1]: [dbus-daemon] (udisksd:1057): udisks-WARNING **: 12:45:44.302: Failed to setup systemd-based mount point cleanup: Failed to execute child process ?systemd-escape? (No such
file or directory)
Jul  2 12:45:44 localhost shepherd[1]: [dbus-daemon] udisks-Message: 12:45:44.303: Mounted /dev/sdb2 at /media/myuser/TOURO Mobile USB3.0 on behalf of uid 1000

My config.scm declares :

  (services (append (list (service gnome-desktop-service-type) ...

and also

  (packages (append (list
                     ;; for user mounts
                     gvfs
                     ;; for mtp and fat mounts
                     jmtpfs dosfstools
                     ;; for gnome-disks via udisksd
                     gptfdisk
                     ...

.~´