Ticket #3911 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

USB-keys do not automount

Reported by: erikos Owned by: erikos
Priority: Unspecified by Maintainer Milestone: 0.98
Component: sugar Version: 0.97.x
Severity: Blocker Keywords: olpc-test-passed
Cc: dsd Distribution/OS: OLPC
Bug Status: Assigned

Description

Revealed in the 13.1.0 OLPC build. They do automount in GNOME that is why I want to check if there is an issue in Sugar.

Attachments

messages Download (3.8 KB) - added by manuq 8 months ago.
/var/log/messages for XO 1.5 while attempting to automount, nothing in sugar shell.log
messages-gnome Download (10.5 KB) - added by manuq 8 months ago.
/var/log/messages when the automount is done in gnome, same machine XO 1.5

Change History

Changed 8 months ago by erikos

  • cc dsd added

I tried to do a simple test case on the XO when there is a USB key attached:

from gi.repository import Gio
volume_monitor = Gio.VolumeMonitor.get()
volume_monitor.get_volumes()

This returns no items here.

In sugar-build or in GNOME this works fine. Is there some authentication needed or similar?

Changed 8 months ago by dsd

On XO-1.75 I see this problem in both Sugar and GNOME.

On XO-1.5 it works.

13.1.0 build 2.

I'll investigate the XO-1.75 problem after the next fedora package push, which should be tomorrow. There's a lot going through so probably doesn't make much sense to investigate until then.

Changed 8 months ago by dsd

In the mean time, USB disks aren't automounting on XO-1.5 under Sugar, so you can at least continue the debugging there.

Changed 8 months ago by erikos

Another testing sample: When I manually mount the device on the 1.75 (13.1.0 build 2) the stick is often unmounted when idle suspend kicks in. And then it is available under another /dev/sd*. I did take out idle-suspend now in the CP section and the stick stays mounted know.

Changed 8 months ago by manuq

/var/log/messages for XO 1.5 while attempting to automount, nothing in sugar shell.log

Changed 8 months ago by manuq

/var/log/messages when the automount is done in gnome, same machine XO 1.5

Changed 8 months ago by dsd

The volume_monitor.get_volumes() thing is working on XO-1.75 after the big package push, so that particular test case will be fixed in the next build.

However, same as XO-1.5, no obvious error appears. Happy to keep looking into this myself but it will probably be quicker if someone else can continue the initial diagnosis first. e.g. Is sugar receiving the appropriate signals from gio when external media is plugged in?

Changed 8 months ago by dsd

I made some progress here on the diagnosis. In sugar, no volume-added signal is raised from the volume monitor when media is connected. But in a trivial test app it works OK. Working on figuring out the difference.

Changed 8 months ago by dsd

posted [PATCH] Fix external media mounting (#3911)

Changed 8 months ago by dsd

  • keywords olpc-test-pending added
  • status changed from new to closed
  • resolution set to fixed

Shipped in sugar-0.97.5

Changed 8 months ago by greenfeld

  • keywords olpc-test-passed added; olpc-test-pending removed

USB keys automount in 13.1.0 os4.

Note: See TracTickets for help on using tickets.