Bug 62662 - Cannot mount USB pen drive as normal user
Summary: Cannot mount USB pen drive as normal user
Status: RESOLVED NOTOURBUG
Alias: None
Product: udisks
Classification: Unclassified
Component: detection (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: David Zeuthen (not reading bugmail)
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-23 10:28 UTC by Colin
Modified: 2013-03-23 17:38 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
udisksctl dump (34.50 KB, text/plain)
2013-03-23 10:28 UTC, Colin
Details
udevadm info --export-db (110.97 KB, text/plain)
2013-03-23 10:30 UTC, Colin
Details
mountinfo (2.85 KB, text/plain)
2013-03-23 10:30 UTC, Colin
Details
udisksctl monitor (7.45 KB, text/plain)
2013-03-23 10:31 UTC, Colin
Details
udevadm monitor --udev --property (10.52 KB, text/plain)
2013-03-23 10:32 UTC, Colin
Details
gfsmount (1020 bytes, text/plain)
2013-03-23 10:34 UTC, Colin
Details

Description Colin 2013-03-23 10:28:00 UTC
Created attachment 76928 [details]
udisksctl dump

When I attach/automount my USB pen drive, I am prompted to enter root's password. Other USB hardware, PTP Camera, MP3 player automount as "user" fine.
I have tried setting Selinux to permissive (nothing related in the logs)

Fedora 18
disks2-2.1.0-1.fc18.x86_64 (rebuilt from F19 to the current version)
gvfs-1.14.2-3.fc18.x86_64
libatasmart-0.19-3.fc18.x86_64

This I guess is the reason my pen drive does not show up in KDE SC device notifier. 

https://bugs.kde.org/show_bug.cgi?id=315065#c21
Comment 1 Colin 2013-03-23 10:30:10 UTC
Created attachment 76929 [details]
udevadm info --export-db
Comment 2 Colin 2013-03-23 10:30:52 UTC
Created attachment 76930 [details]
mountinfo
Comment 3 Colin 2013-03-23 10:31:56 UTC
Created attachment 76931 [details]
udisksctl monitor
Comment 4 Colin 2013-03-23 10:32:55 UTC
Created attachment 76932 [details]
udevadm monitor --udev --property
Comment 5 Colin 2013-03-23 10:34:12 UTC
Created attachment 76933 [details]
gfsmount
Comment 6 David Zeuthen (not reading bugmail) 2013-03-23 14:22:13 UTC
(In reply to comment #4)
> Created attachment 76932 [details]
> udevadm monitor --udev --property

Apparently device-mapper-multipath thinks that your USB stick is a multipath device and tries to be "helpful" (probably because there are two devices: the real usb mass storage device and a fake cd-rom device with windows drivers).

 10:05:00.805: Removed /org/freedesktop/UDisks2/block_devices/sdd1
 10:05:00.922: Added /org/freedesktop/UDisks2/block_devices/dm_2d3
   org.freedesktop.UDisks2.Block:
     Configuration:              []
     CryptoBackingDevice:        '/'
     Device:                     /dev/dm-3
 [...]
                                 /dev/mapper/mpathb

Sorry but there is nothing udisks can do about this. You should file a bug against device-mapper-multipath in Fedora telling them to fix their software. For now you can probably remove the symptom by simply uninstalling the device-mapper-multipath RPM. But please do report the problem. Closing.
Comment 7 Colin 2013-03-23 17:38:52 UTC
Thanks for the info and pointing me in the right direction. device-mapper-multipath or a config file was the problem and where possibly corrupt maybe after a system upgrade. Repaired and everything is working fine now.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.