permission denied while automounting removable device

Bug #119394 reported by knut
8
Affects Status Importance Assigned to Milestone
hal (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

There occurs an error while automounting removable devices like USB stick ... When I plug in a error message with a red sign pops up:
"Cannot mount volume."
"You are not privileged to mount volume."
sometimes an empty box (just with the red sign and a OK button) pops up behind other box.

I'm using Ubuntu Feisty with latest updates. The described behaviour is only since some days or so. Before everthing was fine...

Problem solved. Sorry.

Revision history for this message
knut (mr-knut) wrote :
Revision history for this message
knut (mr-knut) wrote :
Revision history for this message
knut (mr-knut) wrote :
Revision history for this message
knut (mr-knut) wrote :
Revision history for this message
knut (mr-knut) wrote :
Revision history for this message
knut (mr-knut) wrote :

following https://wiki.ubuntu.com/DebuggingRemovableDevices:

uid=1000(user) gid=1000(user) groups=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),110(netdev),111(lpadmin),113(powerdev),114(scanner),116(admin),1000(user)

id: hal: No such user

uid=107(haldaemon) gid=112(haldaemon) groups=112(haldaemon),24(cdrom),25(floppy),46(plugdev),113(powerdev)

Linux mobile 2.6.20-16-generic #2 SMP Wed May 23 01:46:23 UTC 2007 i686 GNU/Linux

Revision history for this message
knut (mr-knut) wrote :

I forgot to say:
If I mount the device afterwards with "sudo mount /dev/sda1 /media/something" there is no error and a pop up asks about what to do, p.ex. view some images from the connected device...

Revision history for this message
karlrhs (karlrhs) wrote :

Kingston usb pen drive same problem. You are not privileged to mount this volume.

Revision history for this message
karlrhs (karlrhs) wrote :

start gvm and capture output

karl@jemoftheplain:~$ gnome-volume-manager -n 2>&1 | tee gvm.log
manager.c/647: setting[0]: bool: autobrowse = 1
manager.c/647: setting[1]: bool: autoburn = 1
manager.c/642: setting[2]: string: autoburn_audio_cd_command = serpentine
manager.c/642: setting[3]: string: autoburn_data_cd_command = nautilus --no-desktop burn:
manager.c/647: setting[4]: bool: autoipod = 1
manager.c/642: setting[5]: string: autoipod_command = rhythmbox
manager.c/647: setting[6]: bool: autokeyboard = 0
manager.c/642: setting[7]: string: autokeyboard_command =
manager.c/647: setting[8]: bool: automount_drives = 1
manager.c/647: setting[9]: bool: automount_media = 1
manager.c/647: setting[10]: bool: automouse = 0
manager.c/642: setting[11]: string: automouse_command =
manager.c/647: setting[12]: bool: autoopen = 1
manager.c/642: setting[13]: string: autoopen_path = .autoopen:autoopen
manager.c/647: setting[14]: bool: autophoto = 1
manager.c/642: setting[15]: string: autophoto_command = gnome-volume-manager-gthumb %h
manager.c/647: setting[16]: bool: autopalmsync = 0
manager.c/642: setting[17]: string: autopalmsync_command = gpilotd-control-applet
manager.c/647: setting[18]: bool: autoplay_cda = 1
manager.c/642: setting[19]: string: autoplay_cda_command = sound-juicer -d %d
manager.c/647: setting[20]: bool: autoplay_dvd = 1
manager.c/642: setting[21]: string: autoplay_dvd_command = totem %m
manager.c/647: setting[22]: bool: autoplay_vcd = 1
manager.c/642: setting[23]: string: autoplay_vcd_command = totem %m
manager.c/647: setting[24]: bool: autopocketpc = 0
manager.c/642: setting[25]: string: autopocketpc_command = multisync
manager.c/647: setting[26]: bool: autoprinter = 0
manager.c/642: setting[27]: string: autoprinter_command = gnome-cups-add hal://%h
manager.c/647: setting[28]: bool: autorun = 0
manager.c/642: setting[29]: string: autorun_path = .autorun:autorun:autorun.sh
manager.c/647: setting[30]: bool: autotablet = 0
manager.c/642: setting[31]: string: autotablet_command =
manager.c/656: settings[32]: float: percent_threshold = 0.050000
manager.c/656: settings[33]: float: percent_used = 0.010000

Revision history for this message
karlrhs (karlrhs) wrote :

start udevmonitor and capture output

karl@jemoftheplain:~$ sudo udevmonitor -e | tee udev.log
 nothing comes up in the terminal

when I search for the file udev.log the system comes back with no such file.

Revision history for this message
karlrhs (karlrhs) wrote :
Download full text (11.6 KiB)

Sorry about the above I did get some output.
start udevmonitor and capture output

DEVPATH=/devices/pci0000:00/0000:00:1d.2/usb3/3-2
SUBSYSTEM=usb
SEQNUM=2907
MAJOR=189
MINOR=258
DEVTYPE=usb_device
PHYSDEVBUS=usb
DEVICE=/proc/bus/usb/003/003
PRODUCT=f30/10b/101
TYPE=0/0/0
BUSNUM=003
DEVNUM=003
UDEVD_EVENT=1
DEVNAME=/dev/3-2

UDEV [1204685522.725103] remove /class/usb_device/usbdev3.3 (usb_device)
UDEV_LOG=3
ACTION=remove
DEVPATH=/class/usb_device/usbdev3.3
SUBSYSTEM=usb_device
SEQNUM=2905
MAJOR=189
MINOR=258
PHYSDEVPATH=/devices/pci0000:00/0000:00:1d.2/usb3/3-2
PHYSDEVBUS=usb
PHYSDEVDRIVER=usb
UDEVD_EVENT=1
USB_BUS=003
USB_DEV=003
DEVNAME=/dev/bus/usb/003/003

UDEV [1204685522.740932] remove /class/usb_endpoint/usbdev3.3_ep00 (usb_endpoint)
UDEV_LOG=3
ACTION=remove
DEVPATH=/class/usb_endpoint/usbdev3.3_ep00
SUBSYSTEM=usb_endpoint
SEQNUM=2906
MAJOR=254
MINOR=10
PHYSDEVPATH=/devices/pci0000:00/0000:00:1d.2/usb3/3-2
PHYSDEVBUS=usb
PHYSDEVDRIVER=usb
UDEVD_EVENT=1
DEVNAME=/dev/usbdev3.3_ep00

UDEV [1204685522.807215] add /devices/pci0000:00/0000:00:1d.7/usb4/4-4/4-4:1.0 (usb)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb4/4-4/4-4:1.0
SUBSYSTEM=usb
SEQNUM=2895
DEVTYPE=usb_interface
PHYSDEVBUS=usb
DEVICE=/proc/bus/usb/004/015
PRODUCT=13fe/1d00/110
TYPE=0/0/0
INTERFACE=8/6/80
MODALIAS=usb:v13FEp1D00d0110dc00dsc00dp00ic08isc06ip50
UDEVD_EVENT=1

UDEV [1204685522.810908] add /class/scsi_host/host11 (scsi_host)
UDEV_LOG=3
ACTION=add
DEVPATH=/class/scsi_host/host11
SUBSYSTEM=scsi_host
SEQNUM=2896
PHYSDEVPATH=/devices/pci0000:00/0000:00:1d.7/usb4/4-4/4-4:1.0/host11
UDEVD_EVENT=1

UDEV [1204685522.813209] add /class/usb_endpoint/usbdev4.15_ep81 (usb_endpoint)
UDEV_LOG=3
ACTION=add
DEVPATH=/class/usb_endpoint/usbdev4.15_ep81
SUBSYSTEM=usb_endpoint
SEQNUM=2897
MAJOR=254
MINOR=18
PHYSDEVPATH=/devices/pci0000:00/0000:00:1d.7/usb4/4-4/4-4:1.0
PHYSDEVBUS=usb
PHYSDEVDRIVER=usb-storage
UDEVD_EVENT=1
DEVNAME=/dev/usbdev4.15_ep81

UDEV [1204685522.815177] add /class/usb_endpoint/usbdev4.15_ep02 (usb_endpoint)
UDEV_LOG=3
ACTION=add
DEVPATH=/class/usb_endpoint/usbdev4.15_ep02
SUBSYSTEM=usb_endpoint
SEQNUM=2898
MAJOR=254
MINOR=19
PHYSDEVPATH=/devices/pci0000:00/0000:00:1d.7/usb4/4-4/4-4:1.0
PHYSDEVBUS=usb
PHYSDEVDRIVER=usb-storage
UDEVD_EVENT=1
DEVNAME=/dev/usbdev4.15_ep02

UDEV [1204685522.869261] add /class/usb_device/usbdev4.15 (usb_device)
UDEV_LOG=3
ACTION=add
DEVPATH=/class/usb_device/usbdev4.15
SUBSYSTEM=usb_device
SEQNUM=2899
MAJOR=189
MINOR=398
PHYSDEVPATH=/devices/pci0000:00/0000:00:1d.7/usb4/4-4
PHYSDEVBUS=usb
PHYSDEVDRIVER=usb
UDEVD_EVENT=1
USB_BUS=004
USB_DEV=015
DEVNAME=/dev/bus/usb/004/015

UEVENT[1204685522.935794] add /devices/pci0000:00/0000:00:1d.2/usb3/3-2 (usb)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1d.2/usb3/3-2
SUBSYSTEM=usb
SEQNUM=2908
MAJOR=189
MINOR=259
DEVTYPE=usb_device
PHYSDEVBUS=usb
DEVICE=/proc/bus/usb/003/004
PRODUCT=f30/10b/101
TYPE=0/0/0
BUSNUM=003
DEVNUM=004

UEVENT[1204685522.935824] add /class/usb_endpoint/usbdev3.4_ep00 (usb_endpoint)
ACTION=add
DEVPATH=/class/usb_endpoint/usbdev3.4_ep00
SUBSYSTEM=usb_endpoint
SEQNUM=2909
MAJOR=254
MINOR=10
PHYSDEVPATH=/dev...

Revision history for this message
karlrhs (karlrhs) wrote :
Download full text (21.3 KiB)

lshal

 usb_device.linux.device_number = 1 (0x1) (int)
  usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.1/usb2' (string)
  usb_device.max_power = 0 (0x0) (int)
  usb_device.num_configurations = 1 (0x1) (int)
  usb_device.num_interfaces = 1 (0x1) (int)
  usb_device.num_ports = 2 (0x2) (int)
  usb_device.product = 'UHCI Host Controller' (string)
  usb_device.product_id = 0 (0x0) (int)
  usb_device.serial = '0000:00:1d.1' (string)
  usb_device.speed = 12.0 (12) (double)
  usb_device.speed_bcd = 4608 (0x1200) (int)
  usb_device.vendor = 'Linux 2.6.22-14-generic uhci_hcd' (string)
  usb_device.vendor_id = 0 (0x0) (int)
  usb_device.version = 1.1 (1.1) (double)
  usb_device.version_bcd = 272 (0x110) (int)

udi = '/org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_1_usbraw'
  info.capabilities = {'usbraw'} (string list)
  info.category = 'usbraw' (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_1' (string)
  info.product = 'USB Raw Device Access' (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_1_usbraw' (string)
  linux.device_file = '/dev/bus/usb/002/001' (string)
  linux.hotplug_type = 2 (0x2) (int)
  linux.subsystem = 'usb_device' (string)
  linux.sysfs_path = '/sys/class/usb_device/usbdev2.1' (string)
  usbraw.device = '/dev/bus/usb/002/001' (string)

udi = '/org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_1_if0'
  info.bus = 'usb' (string)
  info.linux.driver = 'hub' (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_1' (string)
  info.product = 'USB Hub Interface' (string)
  info.subsystem = 'usb' (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_0_0_0000_00_1d_1_if0' (string)
  linux.hotplug_type = 2 (0x2) (int)
  linux.subsystem = 'usb' (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-0:1.0' (string)
  usb.bus_number = 2 (0x2) (int)
  usb.can_wake_up = true (bool)
  usb.configuration_value = 1 (0x1) (int)
  usb.device_class = 9 (0x9) (int)
  usb.device_protocol = 0 (0x0) (int)
  usb.device_revision_bcd = 518 (0x206) (int)
  usb.device_subclass = 0 (0x0) (int)
  usb.interface.class = 9 (0x9) (int)
  usb.interface.number = 0 (0x0) (int)
  usb.interface.protocol = 0 (0x0) (int)
  usb.interface.subclass = 0 (0x0) (int)
  usb.is_self_powered = true (bool)
  usb.linux.device_number = 1 (0x1) (int)
  usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-0:1.0' (string)
  usb.max_power = 0 (0x0) (int)
  usb.num_configurations = 1 (0x1) (int)
  usb.num_interfaces = 1 (0x1) (int)
  usb.num_ports = 2 (0x2) (int)
  usb.product = 'USB Hub Interface' (string)
  usb.product_id = 0 (0x0) (int)
  usb.serial = '0000:00:1d.1' (string)
  usb.speed = 12.0 (12) (double)
  usb.speed_bcd = 4608 (0x1200) (int)
  usb.vendor = 'Linux 2.6.22-14-generic uhci_hcd' (string)
  usb.vendor_id = 0 (0x0) (int)
  usb.version = 1.1 (1.1) (double)
  usb.version_bcd = 272 (0x110) (int)

udi = '/org/freedesktop/Hal/devices/pci_8086_24c2'
  info.bus = 'pci' (string)
  info.linux.driver = 'uhci_hcd' (string)
  info.parent = '/...

Revision history for this message
karlrhs (karlrhs) wrote :
Download full text (27.8 KiB)

dmesg

[ 11.164431] pnp: 00:0c: iomem range 0xc0000-0xdffff could not be reserved
[ 11.164434] pnp: 00:0c: iomem range 0xe0000-0xfffff could not be reserved
[ 11.164438] pnp: 00:0c: iomem range 0x100000-0x1fffffff could not be reserved
[ 11.167079] Time: tsc clocksource has been installed.
[ 11.194791] PCI: Bridge: 0000:00:01.0
[ 11.194793] IO window: disabled.
[ 11.194799] MEM window: fa100000-fe1fffff
[ 11.194804] PREFETCH window: b9e00000-d9efffff
[ 11.194810] PCI: Bridge: 0000:00:1e.0
[ 11.194813] IO window: d000-dfff
[ 11.194819] MEM window: fe200000-feafffff
[ 11.194824] PREFETCH window: d9f00000-d9ffffff
[ 11.194842] PCI: Setting latency timer of device 0000:00:1e.0 to 64
[ 11.194856] NET: Registered protocol family 2
[ 11.231039] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 11.231093] TCP established hash table entries: 16384 (order: 5, 196608 bytes)
[ 11.231236] TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
[ 11.231337] TCP: Hash tables configured (established 16384 bind 16384)
[ 11.231340] TCP reno registered
[ 11.243123] checking if image is initramfs... it is
[ 11.694318] Switched to high resolution mode on CPU 0
[ 11.902612] Freeing initrd memory: 7116k freed
[ 11.903043] audit: initializing netlink socket (disabled)
[ 11.903061] audit(1204655994.016:1): initialized
[ 11.905462] VFS: Disk quotas dquot_6.5.1
[ 11.905533] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 11.905643] io scheduler noop registered
[ 11.905645] io scheduler anticipatory registered
[ 11.905648] io scheduler deadline registered
[ 11.905666] io scheduler cfq registered (default)
[ 11.905741] Boot video device is 0000:01:00.0
[ 11.905923] isapnp: Scanning for PnP cards...
[ 12.259494] isapnp: No Plug & Play device found
[ 12.290477] Real Time Clock Driver v1.12ac
[ 12.290591] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
[ 12.290689] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 12.291612] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 12.292507] RAMDISK driver initialized: 16 RAM disks of 65536K size 1024 blocksize
[ 12.292770] input: Macintosh mouse button emulation as /class/input/input0
[ 12.292865] PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
[ 12.292868] PNP: PS/2 controller doesn't have AUX irq; using default 12
[ 12.296481] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 12.296489] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 12.296718] mice: PS/2 mouse device common for all mice
[ 12.296858] EISA: Probing bus 0 at eisa.0
[ 12.296896] EISA: Detected 0 cards.
[ 12.297011] TCP cubic registered
[ 12.297026] NET: Registered protocol family 1
[ 12.297052] Using IPI No-Shortcut mode
[ 12.297237] Magic number: 0:323:695
[ 12.297445] hash matches device 0000:00:00.0
[ 12.297892] Freeing unused kernel memory: 364k freed
[ 12.337361] input: AT Translated Set 2 keyboard as /class/input/input1
[ 13.528155] AppArmor: AppArmor initialized<5>audit(1204655995.516:2): type=1505 info="AppArmor initialized" pid=1186
[ 13.537735] fuse init (API version 7.8)...

Revision history for this message
karlrhs (karlrhs) wrote :

id file out put

uid=1000(karl) gid=27(sudo) groups=0(root),1(daemon),2(bin),3(sys),4(adm),5(tty),6(disk),7(lp),8(mail),9(news),10(uucp),12(man),13(proxy),15(kmem),20(dialout),21(fax),22(voice),24(cdrom),25(floppy),26(tape),27(sudo),29(audio),30(dip),33(www-data),34(backup),37(operator),38(list),39(irc),40(src),41(gnats),42(shadow),43(utmp),44(video),45(sasl),46(plugdev),50(staff),60(games),100(users),101(dhcp),102(syslog),103(klog),104(scanner),105(nvram),106(messagebus),107(ssl-cert),108(crontab),109(ssh),110(avahi-autoipd),111(avahi),112(netdev),113(lpadmin),114(haldaemon),115(powerdev),116(slocate),117(admin),118(gdm),119(fuse),1001(larisa),1002(adriana),1003(parker)
karl@jemoftheplain:~$

Revision history for this message
karlrhs (karlrhs) wrote :

id hal output

karl@jemoftheplain:~$ id hal
id: hal: No such user
karl@jemoftheplain:~$

Revision history for this message
karlrhs (karlrhs) wrote :

output of id haldaemon

karl@jemoftheplain:~$ id haldaemon
uid=107(haldaemon) gid=114(haldaemon) groups=114(haldaemon),24(cdrom),25(floppy),46(plugdev),115(powerdev),1003(parker)
karl@jemoftheplain:~$

Revision history for this message
karlrhs (karlrhs) wrote :

output of uname -a

karl@jemoftheplain:~$ uname -a
Linux jemoftheplain 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux
karl@jemoftheplain:~$

Revision history for this message
karlrhs (karlrhs) wrote :

karl@jemoftheplain:~$ sudo /etc/dbus-1/event.d/20hal start
[sudo] password for karl:
sudo: /etc/dbus-1/event.d/20hal: command not found
karl@jemoftheplain:~$

Revision history for this message
karlrhs (karlrhs) wrote :

Sorry, I just figured out that I was to save the output as files and send those.

I will do better next time.

Let me know if you need more information.

Karl

Revision history for this message
karlrhs (karlrhs) wrote :

I solved my problem using kcmshell System/mountconfig.

Sorry for the problem.

Karl

Revision history for this message
Adam Niedling (krychek) wrote :

knut: are you still having this issue?

Revision history for this message
karlrhs (karlrhs) wrote : Re: [Bug 119394] Re: permission denied while automounting removable device
  • unnamed Edit (809 bytes, text/html; charset=ISO-8859-1)

Problem solved.

Thank your for your quick response.

Karl

On Tue, May 6, 2008 at 5:35 AM, Adam Niedling <email address hidden> wrote:

> knut: are you still having this issue?
>
> ** Changed in: ubuntu
> Status: New => Incomplete
>
> --
> permission denied while automounting removable device
> https://bugs.launchpad.net/bugs/119394
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Adam Niedling (krychek) wrote :

I assume you had the same issue as knut. So I'm closing this bug. Please reopen if necessary.

Revision history for this message
knut (mr-knut) wrote :

sorry for late response :(

as i'm using ubuntu (with gnome) kcmshell is not usable here. the issue still remains...

Revision history for this message
Adam Niedling (krychek) wrote :

But which Ubuntu? Hardy, Gutsy.. ?

Revision history for this message
knut (mr-knut) wrote :

see initial text (-> feisty)

Revision history for this message
Adam Niedling (krychek) wrote :

Please consider upgrading to Hardy. It may fix this issue.

karlrhs (karlrhs)
description: updated
Adam Niedling (krychek)
Changed in hal:
status: New → Fix Released
Revision history for this message
Seán Ó Séaghdha (seanos) wrote :

I've just encountered this problem in Hardy. The USB drive worked fine yesterday, but today gives me this message. I expected a reboot would fix it, but it hasn't.

sean@nung:~/Cáipéisí/fadhb-usb$ ck-list-sessions
Session2:
 uid = '1000'
 realname = ',,,,'
 seat = 'Seat1'
 session-type = ''
 active = TRUE
 x11-display = ':0'
 x11-display-device = '/dev/tty7'
 display-device = ''
 remote-host-name = ''
 is-local = TRUE
 on-since = '2009-03-04T12:34:27Z'

sean@nung:~/Cáipéisí/fadhb-usb$ id haldaemon
uid=111(haldaemon) gid=123(haldaemon) grúpaí=123(haldaemon)

sean@nung:~/Cáipéisí/fadhb-usb$ uname -a
Linux nung 2.6.24-23-generic #1 SMP Mon Jan 26 00:13:11 UTC 2009 i686 GNU/Linux

Revision history for this message
Seán Ó Séaghdha (seanos) wrote :
Revision history for this message
Seán Ó Séaghdha (seanos) wrote :
Revision history for this message
Seán Ó Séaghdha (seanos) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.