[Bug 545588] Re: Does not detect hotplugged storage device

Martin Pitt martin.pitt at ubuntu.com
Thu Mar 25 11:35:41 UTC 2010


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.

** Package changed: udisks (Ubuntu) => linux (Ubuntu)

** Changed in: linux (Ubuntu)
       Status: New => Triaged

** Summary changed:

- Does not detect hotplugged storage device
+ Several USB port resets when attaching USB hard drive

-- 
Several USB port resets when attaching USB hard drive
https://bugs.launchpad.net/bugs/545588
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.




More information about the kernel-bugs mailing list