Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3395

Why does using user/users mount option in fstab prevent mounting in GUI?

$
0
0
I have an external USB SSD drive that I mainly lives plugged into the TV in the living room for bulk media, and from time to time I take it and connect it to my desktop, a Debian 12, stable, system running KDE.

Without any entries in ``/etc/fstab``, it mounts as ``/media/$USER/<ntfs-volume-label>`` when mounted from the desktop UI (with from the tray icon or from Dolphin.) I, however, wanted to have a different mount point, ``/media/tv-media-ssd``, so I added an entry to ``/etc/fstab``, and after a bit of testing and comparing to the original ``/etc/mtab`` line, here is what mounts fine from the UI (tray, Dolphin):

Code:

$ grep -i tv-media /etc/fstabUUID=<UUID from `blkid | grep ntfs`>   /media/tv-media-ssd    ntfs   rw,nosuid,nodev,relatime,user_id=0,group_id=0,uid=1000,group_id=1000,default_permissions,allow_other   0 2
But before that, I had tried the ``user`` and also the ``users`` (note the pluralization) which for some reason ``fuseblk`` and ``udisks2``, respectively did not like.

Mounting from desktop with ``user`` option:

Code:

udisksd[2931879]: ntfs-3g-mount: mount failed: Invalid argumentkernel: [646311.982314] fuseblk: Unknown parameter 'user'kernel: [646311.982328] fuseblk: Unknown parameter 'user'
Mounting from desktop with ``users`` option instead:

Code:

udisksd[2932200]: Error opening read-only '/dev/sdd1': Permission deniedudisksd[2932200]: Failed to mount '/dev/sdd1': Permission deniedudisksd[2932200]: Please check '/dev/sdd1' and the ntfs-3g binary permissions,udisksd[2932200]: and the mounting user ID. More explanation is provided atudisksd[2932200]: https://github.com/tuxera/ntfs-3g/wiki/NTFS-3G-FAQ
Mounting from desktop with neither ``user`` nor ``users`` options:

Code:

ntfs-3g[2937189]: Version 2022.10.3 integrated FUSE 28ntfs-3g[2937189]: Mounted /dev/sdd1 (Read-Write, label "RFLIBTV1TB", NTFS 3.1)udisksd[2931637]: Mounted /dev/sdd1 (system) at /media/tv-media-ssd on behalf of uid 1000ntfs-3g[2937189]: Cmdline options: rw,nosuid,nodev,relatime,user_id=0,group_id=0,uid=1000,group_id=1000,default_permissions,allow_otherntfs-3g[2937189]: Mount options: nosuid,nodev,user_id=0,group_id=0,group_id=1000,allow_other,allow_other,nonempty,default_permissions,relatime,rw,default_permissions,fsname=/dev/sdd1,blkdev,blksize=4096ntfs-3g[2937189]: Global ownership and permissions enforced, configuration type 7
The main reason I am wondering (aside from just curiosity) is that ``user``/``users`` allowed typing ``mount /media/tv-media-ssd`` from the command line sans ``sudo``. While it is no big deal at all to type that with ``sudo``, and since I use this drive mostly from Dolphin any how, I want to understand why those options aren't playing well, mainly ``users`` and ``udisks2``, as ``user`` appears to not be supported by ``fuseblk``, though I have found conflicting information on that. If those options simply aren't supported there, I can certainly live with that; GUI and ``sudo mount`` are more than enough. Either way I am very interested to learn what is going on there.

Any insights are graciously appreciated.
-gfish

Statistics: Posted by gfish — 2024-08-13 19:54 — Replies 1 — Views 45



Viewing all articles
Browse latest Browse all 3395

Trending Articles