Bug 266731 - External USB disk(s) mount error from System Tray Device Notifier (permission denied?)
Summary: External USB disk(s) mount error from System Tray Device Notifier (permission...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasma4
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-20 15:56 UTC by Wizter
Modified: 2011-12-06 23:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wizter 2011-02-20 15:56:24 UTC
Version:           unspecified (using KDE 4.6.0) 
OS:                Linux

When an external USB disk is connected (either IDE or SATA through USB2 ports) it is not auto-mounted. When trying to connect it through the USB notifier from the system tray an error comes up and the drive does not mount.

org.freedesktop.UDisks.Error.Failed: Error mounting: mount exited with exit code 1: helper failed with: Error opening '/dev/sdb5': Permission denied Failed to mount '/dev/sdb5': Permission denied Please check '/dev/sdb5' and the ntfs-3g binary permissions, and the mounting user ID. More explanation is provided at http://ntfs-3g.org/support.html#unprivileged

Note that the partitions on the drives are NTFS and mount as expected manually from a terminal, e.g. mount /dev/sdb5 /mnt/windows/x

This error seems to have manifested itself in the past few days, after upgrading from OpenSuSe KDE 4.5 to Factory. Used to work as expected for 4.4-4.5.


Reproducible: Always

Steps to Reproduce:
1. Attach drive to USB port (USB2 compatible port)
2. Check the USB Notifier which shows all Available Devices
3. Verify drive shows in the list but not mounted yet (safe to remove icon)
4. Click to open from other application -> Choose Open with File Manager


Actual Results:  
5. Error displays within the USB notifier (bottom) "Could not mount the following device External 250GB"
6. Expand the error to see the indicated error msg

org.freedesktop.UDisks.Error.Failed: Error mounting: mount exited with exit code 1: helper failed with: Error opening '/dev/sdb5': Permission denied Failed to mount '/dev/sdb5': Permission denied Please check '/dev/sdb5' and the ntfs-3g binary permissions, and the mounting user ID. More explanation is provided at http://ntfs-3g.org/support.html#unprivileged


Expected Results:  
5. Device should be mounted and either open a new file manager or if one is already open a new tab/window on the existing file manager

Default KDE Plasma widgets 4.6.0-104.1
Comment 1 Vasileios P. Lourdas 2011-02-26 20:39:15 UTC
Same behavior here. Using Gentoo packages for 4.6.0 and an external USB NTFS formatted drive. Drive is mounted ok from the console (as non-root user).
Comment 2 Wizter 2011-03-01 19:38:47 UTC
Are there any recommendations on a quick fix for this bug, as it is very annoying that users without root access cannot mount their drives, USB, RW/DVD's or SD Cards? I read related posts in regard to altering fstab, group access etc but nothing works for user mounting access.

Any ideas or help would be greatly appreciated.
Comment 3 Vasileios P. Lourdas 2011-03-01 19:44:31 UTC
I forgot to mention that my problem disappeared. I had a hard coded line in /etc/fstab for my specific external hard disk, which I commented it and afterwards the disk mounted without any issues.
Comment 4 Wizter 2011-03-01 22:33:46 UTC
My /etc/fstab file has not changed since KDE4.4. I'm attaching it just in case anyone spots anything that shouldn't be there. I just spotted that my internal drive NTFS partitions suffer from the same bug as the external drives.

Note the following on a 160GB SATA harddrive:
-- I use 3 primary partitions, sda2/suse boot=150MB, sda3/vista and extended)
-- I use root and swap as fixed partitions to mount LVM on
-- LVM is used for the rest of opensuse 11.3 to juggle the space requirements
-- sda3 and sda5 are both NTFS partitions and fail to mount at startup
-- sda3 & sda5 also fail to mount from the Notifier application even though they do have the "user" attribute
-- permissions on the /mnt/windows/drive directories are 755 as per defaults

------------------------------
/dev/sda7      /                    ext3       acl,user_xattr,noatime  1 1
/dev/sda2      /boot                ext3       acl,user_xattr,noatime  1 1
/dev/sda6      swap                 swap       defaults                0 0

/dev/sda3      /mnt/windows/c       ntfs-3g    rw,noatime,user         0 0
/dev/sda5      /mnt/windows/d       ntfs-3g    rw,noatime,user         0 0

/dev/suse/usr       /usr            ext3       acl,user_xattr,noatime  1 1
/dev/suse/usr_lib   /usr/lib        ext3       acl,user_xattr,noatime  1 1
/dev/suse/usr_share /usr/share      ext3       acl,user_xattr,noatime  1 1

/dev/suse/home /home                ext3       acl,user_xattr,noatime  1 1
/dev/suse/tmp  /tmp                 ext3       acl,user_xattr,noatime  1 1
/dev/suse/pub  /pub                 ext3       acl,user_xattr,noatime  1 1
/dev/suse/var  /var                 ext3       acl,user_xattr,noatime  1 1

proc           /proc                proc       defaults                0 0
sysfs          /sys                 sysfs      noauto                  0 0
debugfs        /sys/kernel/debug    debugfs    noauto                  0 0
usbfs          /proc/bus/usb        usbfs      noauto                  0 0
devpts         /dev/pts             devpts     mode=0620,gid=5         0 0
Comment 5 Aaron J. Seigo 2011-12-06 23:27:14 UTC
mount permissions are not a plasma issue.