Comment 3 for bug 545588

Revision history for this message
Martin Pitt (pitti) wrote : Re: Does not detect hotplugged storage device

Thanks for your report. I assume mounting the drive works just fine when you manually click on it in nautilus or the Places menu?

The problem here is

  Volume added: 'SAMSUNG'
  should_automount=0

There are some cases for which should_automount is false (0). The one that sticks out is that gvfs has this logic:

          /* If a volume (partition) appear _much later_ than when media was inserted it
           * can only be because the media was repartitioned. We don't want to automount
           * such volumes.
           */
          now = time (NULL);
          if (now - g_gdu_drive_get_time_of_last_media_insertion (volume->drive) > 5)
            volume->should_automount = FALSE;

and indeed:

Showing information for /org/freedesktop/UDisks/devices/sdd
  detected at: mar 23 mar 2010 20:28:34 CLST

Showing information for /org/freedesktop/UDisks/devices/sdd1
  detected at: mar 23 mar 2010 20:29:06 CLST

This delay is caused by the large number of USB resets. I think not automounting here is a cautious approach, since doing so while the drive is being reset can actually lead to data corruption.

So I assign that to linux, for the USB resets.