Opened 22 months ago

Closed 22 months ago

Last modified 12 months ago

#3911 closed defect (fixed)

USB-keys do not automount

Reported by: erikos Owned by: erikos
Priority: Unspecified by Maintainer Milestone:
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 (2)

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

Download all attachments as: .zip

Change History (12)

comment:1 Changed 22 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?

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

comment:3 Changed 22 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.

comment:4 Changed 22 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 22 months ago by manuq

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

Changed 22 months ago by manuq

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

comment:5 Changed 22 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?

comment:6 Changed 22 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.

comment:7 Changed 22 months ago by dsd

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

comment:8 Changed 22 months ago by dsd

  • Keywords olpc-test-pending added
  • Resolution set to fixed
  • Status changed from new to closed

Shipped in sugar-0.97.5

comment:9 Changed 22 months ago by greenfeld

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

USB keys automount in 13.1.0 os4.

comment:10 Changed 12 months ago by dnarvaez

  • Milestone 0.98 deleted

Milestone 0.98 deleted

Note: See TracTickets for help on using tickets.