Ticket #7289 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

no USB automount with olpc3

Reported by: dsd Owned by:
Priority: high Milestone:
Component: not assigned Version: olpc-3
Keywords: olpc3-19:- joyride-2072:+ Cc:
Action Needed: Verified: no
Deployments affected: Blocked By:
Blocking:

Description

USB drives are not automounted and are hence not accessible from the journal.

Change History

Changed 6 years ago by walter

I find that automount is work (Joyride 2037), but the USB device is not showing up in the Journal. You can access it from the Terminal.

Changed 6 years ago by dsd

It's definitely not mounted at all for me. Walter, are you definitely using the OLPC-3 stream (Fedora 9)? I suspect this is a platform-level issue.

Changed 6 years ago by erikg

I see this in the journal logs on olpc3-19:

1213827750.527455 ERROR root: Exception when mounting device dbus.String(u'/org/freedesktop/Hal/devices/volume_uuid_2221_09FD'): DBusException('org.freedesktop.hal.storage.mount-removable no <-- (action, result)',)

Apparently we are not allowed to mount drives according to the hal storage policies. Modifying the obvious stanza in /usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy and restarting hald (via /etc/init.d/haldaemon restart) does not appear to have any affect.

Changed 6 years ago by erikg

  • priority changed from normal to high

Changed 6 years ago by erikg

I have found two reports of the same bug in HAL package version >0.5.10. We are running 0.5.11 on olpc3-19: in Ubuntu with a user running KDE https://bugs.launchpad.net/ubuntu/+source/hal/+bug/172453, and in Gentoo http://forums.gentoo.org/viewtopic-p-4540223.html. Unfortunately neither bug report describes a resolution, but both are more than six months old.

Changed 6 years ago by erikg

  • keywords olpc3-19:- added

Changed 6 years ago by dsd

This is broken because HAL asks PolicyKit if sugar is allowed to mount removable drives, but PolicyKit says no. PK asks CK if sugar is part of the active session, CK says no, and the default PK rules specify that only active users can mount stuff.

Changed 6 years ago by marco

Possible explanation of the ck issues: http://lists.laptop.org/pipermail/devel/2008-June/015588.html

Changed 6 years ago by marco

I sent a patch here:

http://lists.laptop.org/pipermail/code-review/2008-June/000022.html

To test it, make sure to be in X11 when you insert the USB stick, otherwise pk will deny the mount. Also note that there is a UI bug which prevents the device to be shown in the UI... You should see it mounted in /media though.

Changed 6 years ago by marco

  • keywords joyride-2072:+ added
  • status changed from new to closed
  • resolution set to fixed

Tomeu verified that automount works in joyride.

#7346 cover the UI issue.

Changed 6 years ago by gregorio

  • milestone deleted

Milestone Never Assigned deleted

Note: See TracTickets for help on using tickets.