Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#7289 closed defect (fixed)

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:
Blocked By: Blocking:
Deployments affected: Action Needed:
Verified: no


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

Change History (11)

comment:1 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.

comment:2 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.

comment:3 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(' 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/ and restarting hald (via /etc/init.d/haldaemon restart) does not appear to have any affect.

comment:4 Changed 6 years ago by erikg

  • Priority changed from normal to high

comment:5 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, and in Gentoo Unfortunately neither bug report describes a resolution, but both are more than six months old.

comment:6 Changed 6 years ago by erikg

  • Keywords olpc3-19:- added

comment:7 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.

comment:8 Changed 6 years ago by marco

comment:9 Changed 6 years ago by marco

I sent a patch here:

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.

comment:10 Changed 6 years ago by marco

  • Keywords joyride-2072:+ added
  • Resolution set to fixed
  • Status changed from new to closed

Tomeu verified that automount works in joyride.

#7346 cover the UI issue.

comment:11 Changed 6 years ago by gregorio

  • Milestone Never Assigned deleted

Milestone Never Assigned deleted

Note: See TracTickets for help on using tickets.