#740190 udisks2: mounts floppy always for root:root (not writable for normal user)

Package:
udisks2
Source:
udisks2
Description:
D-Bus service to access and manipulate storage devices
Submitter:
Sebastian Dalfuß
Date:
2014-09-28 15:33:10 UTC
Severity:
normal
#740190#5
Date:
2014-02-26 18:07:13 UTC
From:
To:
Dear Maintainer,
If a floppy is mounted by udisks2, it is always mounted as such:
drwxr-xr-x   2 root root 7168 Jan  1  1970 floppy0
(not chmod/chgrp/chown-able by root)

This makes the floppy readonly for ordinary users.
This happens if udisks is used directly like
udisksctl mount -b /dev/fd0
and if used indirectly through xfce/Thunar.

udisks2 should mount the floppy with different ownership/rights, so that
write access can be possible (e.g. group floppy, rights g+w, or
according to the invoking user)

#740190#10
Date:
2014-05-10 08:59:10 UTC
From:
To:
Since you got no response on this, I will offer a suggestion. The same happened for me
with USB memory. The device name in my case was /dev/sdb1. I noticed that I had a line
in /etc/fstab containing /dev/sdb1. I commented it out. After that, udisks would
mount my USB memory with proper file ownership, not root.root. Instead of mounting it
at /media/NAME, it now mounts it below /media/tmac/NAME. It is now correctly mounted
when using Thunar.

Perhaps you have a line for /dev/fd0 in /etc/fstab that interferes with udisks?

Best regards
Torquil Sørensen

#740190#15
Date:
2014-09-28 15:29:33 UTC
From:
To:
Le samedi 10 mai 2014, 10:59:10 Torquil Macdonald Sørensen a écrit :

You Sir have made my day. I had the same problem with USB stick and it was
indeed the source of the problem. I'm pretty sure I didn't add these lines in
fstab but my system was recently installed with debian-installer from testing.
Might this be the source of these lines?

Best regards,

Thomas