[Bug 927677] New: some usb sticks require root password to mount
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 Bug ID: 927677 Summary: some usb sticks require root password to mount Classification: openSUSE Product: openSUSE Distribution Version: 13.2 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: F.Schuette@t-online.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 631497 --> http://bugzilla.opensuse.org/attachment.cgi?id=631497&action=edit system with problematic usb stick (sdb, id-scsi) I tried two similar usb sticks, one of them mounted as usual, the other one required me to input root password to mount. I attached udisksctl output to the report. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 --- Comment #1 from Frank Schütte <F.Schuette@t-online.de> --- Created attachment 631498 --> http://bugzilla.opensuse.org/attachment.cgi?id=631498&action=edit systtem with normal usb stick (sdb, usb...) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 http://bugzilla.opensuse.org/show_bug.cgi?id=927677#c3 Christian Trippe <ctrippe@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ctrippe@opensuse.org --- Comment #3 from Christian Trippe <ctrippe@opensuse.org> --- Created attachment 656881 --> http://bugzilla.opensuse.org/attachment.cgi?id=656881&action=edit output of 'udiskctl dump' I see the same problem on openSUSE LEAP 42,1 I've attached theoutput of udiskctl while three usb-sticks where connected. sdb and sdd can only be mouted as root. sdc can be mounted as normal user. sdc is shown as removabel media in the KDE manuel "automounter". sdb and sdd are only shown if i select to also display non-removable media. Also only the usb-stick sdc is shown as an option in the suse-studio-imagewriter. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 http://bugzilla.opensuse.org/show_bug.cgi?id=927677#c4 Christian Trippe <ctrippe@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Basesystem |GNOME Version|13.2 |Leap 42.1 Assignee|dmueller@suse.com |bnc-team-gnome@forge.provo. | |novell.com --- Comment #4 from Christian Trippe <ctrippe@opensuse.org> --- Assigning to the gnome team accoriding to osc maintainer openSUSE:Factory udisks2 ->maintainer of Base:System/udisks2 : group:gnome-maintainers -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 http://bugzilla.opensuse.org/show_bug.cgi?id=927677#c5 Bjørn Lie <zaitor@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zaitor@opensuse.org Assignee|bnc-team-gnome@forge.provo. |kernel-maintainers@forge.pr |novell.com |ovo.novell.com --- Comment #5 from Bjørn Lie <zaitor@opensuse.org> --- Disk in question has: HintSystem: true Id: by-id-scsi-0__058F Since the kernel names the disk scsi-0__0XXX udisks sees this as a system disk, hence need root Reassigning to kernel-team Relevant codebits from src/udiskslinuxblock.c (in udisks) /* Provide easy access to _only_ the following devices * * - anything connected via known local buses (e.g. USB or Firewire, MMC or MemoryStick) * - any device with removable media * * Be careful when extending this list as we don't want to automount * the world when (inadvertently) connecting to a SAN. */ if (drive != NULL) { const gchar *connection_bus; gboolean removable; connection_bus = udisks_drive_get_connection_bus (drive); removable = udisks_drive_get_media_removable (drive); if (removable || (g_strcmp0 (connection_bus, "usb") == 0 || g_strcmp0 (connection_bus, "ieee1394") == 0) || (g_str_has_prefix (device_file, "/dev/mmcblk") || g_str_has_prefix (device_file, "/dev/mspblk"))) { hint_system = FALSE; hint_auto = TRUE; } } -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 Dominique Leuenberger <dimstar@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dimstar@opensuse.org -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 Bjørn Lie <zaitor@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|GNOME |Kernel -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 http://bugzilla.opensuse.org/show_bug.cgi?id=927677#c17 Franck Bui <fbui@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fbui@suse.com Flags| |needinfo?(dimesio@earthlink | |.net) --- Comment #17 from Franck Bui <fbui@suse.com> --- (In reply to Rosanne DiMesio from comment #11)
[10:0:0:0] disk PMAP /dev/sdd dir: /sys/bus/scsi/devices/10:0:0:0 [/sys/devices/pci0000:00/0000:00:16.2/usb5/5-3/5-3:1.0/host10/target10:0:0/ 10:0:0:0]
That output is with one misidentified flash drive plugged in.
Assuming that the non working drive is sdd, could you show the output of: $ ls -l /sys/devices/pci0000:00/0000:00:16.2/usb5/5-3/5-3:1.0/subsystem $ cat /sys/devices/pci0000:00/0000:00:16.2/usb5/5-3/5-3:1.0/uevent Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 http://bugzilla.opensuse.org/show_bug.cgi?id=927677#c18 --- Comment #18 from Franck Bui <fbui@suse.com> --- Also the output of "udevadm info /dev/sdd" might be helpful. Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 http://bugzilla.opensuse.org/show_bug.cgi?id=927677#c19 Rosanne DiMesio <dimesio@earthlink.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(dimesio@earthlink | |.net) | --- Comment #19 from Rosanne DiMesio <dimesio@earthlink.net> --- dimesio@linux-prda:~> ls -l /sys/devices/pci0000:00/0000:00:16.2/usb5/5-3/5-3:1.0/subsystem lrwxrwxrwx 1 root root 0 Apr 21 07:49 /sys/devices/pci0000:00/0000:00:16.2/usb5/5-3/5-3:1.0/subsystem -> ../../../../../../bus/usb dimesio@linux-prda:~> cat /sys/devices/pci0000:00/0000:00:16.2/usb5/5-3/5-3:1.0/uevent DEVTYPE=usb_interface DRIVER=usb-storage PRODUCT=13fe/5500/100 TYPE=0/0/0 INTERFACE=8/6/80 MODALIAS=usb:v13FEp5500d0100dc00dsc00dp00ic08isc06ip50in00 dimesio@linux-prda:~> udevadm info /dev/sdd P: /devices/pci0000:00/0000:00:16.2/usb5/5-3/5-3:1.0/host10/target10:0:0/10:0:0:0/block/sdd N: sdd S: disk/by-id/usb-__07015AD98D271960-0:0 S: disk/by-path/pci-0000:00:16.2-usb-0:3:1.0-scsi-0:0:0:0 S: disk/by-uuid/1229-0CA3 E: DEVLINKS=/dev/disk/by-id/usb-__07015AD98D271960-0:0 /dev/disk/by-path/pci-0000:00:16.2-usb-0:3:1.0-scsi-0:0:0:0 /dev/disk/by-uuid/1229-0CA3 E: DEVNAME=/dev/sdd E: DEVPATH=/devices/pci0000:00/0000:00:16.2/usb5/5-3/5-3:1.0/host10/target10:0:0/10:0:0:0/block/sdd E: DEVTYPE=disk E: ID_BUS=usb E: ID_FS_TYPE=vfat E: ID_FS_USAGE=filesystem E: ID_FS_UUID=1229-0CA3 E: ID_FS_UUID_ENC=1229-0CA3 E: ID_FS_VERSION=FAT32 E: ID_INSTANCE=0:0 E: ID_MODEL_ENC=\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20 E: ID_MODEL_ID=5500 E: ID_PATH=pci-0000:00:16.2-usb-0:3:1.0-scsi-0:0:0:0 E: ID_PATH_TAG=pci-0000_00_16_2-usb-0_3_1_0-scsi-0_0_0_0 E: ID_REVISION=PMAP E: ID_SCSI=1 E: ID_SCSI_DI=1 E: ID_SCSI_SN=1 E: ID_SERIAL=__07015AD98D271960-0:0 E: ID_SERIAL_SHORT=07015AD98D271960 E: ID_TYPE=disk E: ID_USB_DRIVER=usb-storage E: ID_USB_INTERFACES=:080650: E: ID_USB_INTERFACE_NUM=00 E: ID_VENDOR_ENC=\x20\x20\x20\x20\x20\x20\x20\x20 E: ID_VENDOR_ID=13fe E: MAJOR=8 E: MINOR=48 E: SCSI_REVISION=PMAP E: SCSI_TPGS=0 E: SCSI_TYPE=disk E: SUBSYSTEM=block E: TAGS=:systemd: E: USEC_INITIALIZED=3401249124 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 http://bugzilla.opensuse.org/show_bug.cgi?id=927677#c20 Franck Bui <fbui@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(dimesio@earthlink | |.net) --- Comment #20 from Franck Bui <fbui@suse.com> --- Thanks but I can't see anything suspicious here. After a quick look in udisks2 source code, it seems that udisks2 relies on (udiskslinuxdrive.c:563): g_udev_device_get_parent_with_subsystem(device->udev_device, "usb", "usb_interface"); in order to figure out if the device is connected to usb bus. In its turn this function relies on udev_device_get_parent_with_subsystem_devtype() which is part of libudev. It would be interesting to see what this function returns in your case. @Rosanne, are you comfortable with gdb ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 http://bugzilla.opensuse.org/show_bug.cgi?id=927677#c21 --- Comment #21 from Rosanne DiMesio <dimesio@earthlink.net> --- (In reply to Franck Bui from comment #20)
@Rosanne, are you comfortable with gdb ?
I've never used it, but if you give me some directions, I'll give it a try. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 http://bugzilla.opensuse.org/show_bug.cgi?id=927677#c22 --- Comment #22 from Franck Bui <fbui@suse.com> --- Let's try to make it simpler. Could you: - unplug the drive - ltrace -p $(pgrep udisks) -o ltrace-udisks.log - plug the drive and attach ltrace-udisks.log ? Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 http://bugzilla.opensuse.org/show_bug.cgi?id=927677#c23 --- Comment #23 from Franck Bui <fbui@suse.com> --- Oh, and you'll probably have to install ltrace(1) first (zypper in ltrace). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 http://bugzilla.opensuse.org/show_bug.cgi?id=927677#c24 Rosanne DiMesio <dimesio@earthlink.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(dimesio@earthlink | |.net) | --- Comment #24 from Rosanne DiMesio <dimesio@earthlink.net> --- Created attachment 722317 --> http://bugzilla.opensuse.org/attachment.cgi?id=722317&action=edit ltrace-udisks.log from attaching a problem flash drive -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 http://bugzilla.opensuse.org/show_bug.cgi?id=927677#c25 Franck Bui <fbui@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|systemd-maintainers@suse.de |pwieczorkiewicz@suse.com --- Comment #25 from Franck Bui <fbui@suse.com> --- Thanks. The log shows: 2050 g_udev_device_get_parent_with_subsystem(0x7f7690002340, 0x43fee7, 0x442641, 0) = 0x21008a0 [...] 2050 g_udev_device_get_parent_with_subsystem(0x1fad100, 0x43fee7, 0x442641, 0) = 0x2100900 This seems to indicate that udev_device_get_parent_with_subsystem_devtype() doesn't fail as it was suggested in comment #9. So unless I'm mistaken, libudev isn't the culprit and we should instead looking at udisks itself and figure out why the connection bus for the drive is not "usb" at the time its value is queried. I was told that I'm reassigning to for now. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 http://bugzilla.opensuse.org/show_bug.cgi?id=927677#c26 --- Comment #26 from Franck Bui <fbui@suse.com> --- (In reply to Franck Bui from comment #25)
I was told that I'm reassigning to for now.
Oops I clicked to "save changes" too quickly. So "isc bugowner udisks2" indicated that Pawel could take a look so I'm reassigning the bug to him for now. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 http://bugzilla.opensuse.org/show_bug.cgi?id=927677#c27 --- Comment #27 from Dominique Leuenberger <dimstar@opensuse.org> --- (In reply to Franck Bui from comment #25)
Thanks.
The log shows:
2050 g_udev_device_get_parent_with_subsystem(0x7f7690002340, 0x43fee7, 0x442641, 0) = 0x21008a0 [...] 2050 g_udev_device_get_parent_with_subsystem(0x1fad100, 0x43fee7, 0x442641, 0) = 0x2100900
This seems to indicate that udev_device_get_parent_with_subsystem_devtype() doesn't fail as it was suggested in comment #9.
We should probably know what the return value was though... only then can we know what udisks2 interprets out of the udev call -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 http://bugzilla.opensuse.org/show_bug.cgi?id=927677#c28 --- Comment #28 from Franck Bui <fbui@suse.com> --- (In reply to Dominique Leuenberger from comment #27)
We should probably know what the return value was though... only then can we know what udisks2 interprets out of the udev call
I think it doesn't really matter as long as a parent is returned by the function.
From set_connection_bus(), in udiskslinuxdrive.c:
parent = g_udev_device_get_parent_with_subsystem (device->udev_device, "usb", "usb_interface"); if (parent != NULL) { /* TODO: should probably check that it's a storage interface */ udisks_drive_set_connection_bus (iface, "usb"); -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=927677 Pal Korossy <p1037905@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |p1037905@gmail.com -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com