USB stick isn't mounted automatically

Bug #1824073 reported by ethan.hsieh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OEM Priority Project
Confirmed
High
Unassigned
Xenial
Confirmed
High
Unassigned
udisks2 (Ubuntu)
Fix Released
High
Unassigned
Xenial
New
High
Unassigned

Bug Description

[Impact]

USB stick isn't mounted automatically. Auto-mount function fails.

[Test Case]

1) Plug USB stick and check if USB stick is mounted automatically.

2) Umount USB stick

3) Unplug USB stick

4) Go to 1)

---

If the error message below appears, auto-mount function will fail.
systemd-udevd[2690]: inotify_add_watch(9, /dev/sda, 10) failed: No such file or directory

Error Message:

1. when auto-mount fails:
kernel: [ 175.661572] usb 2-2.3.3: USB disconnect, device number 6
systemd-udevd[2690]: inotify_add_watch(9, /dev/sda, 10) failed: No such file or directory
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: drive_changed
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: 0x1bd6810
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: volume_removed
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: 0x1b8c3d0
kernel: [ 222.843326] usb 2-2.3.3: new SuperSpeed USB device number 7 using xhci_hcd
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: drive_changed
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: 0x1bd6810
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: volume_added
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: 0x1b8c470

2. when auto-mount works:
kernel: [ 124.313084] usb 2-2.3.3: USB disconnect, device number 5
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: volume_changed
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: 0x1b8c330
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: drive_disconnected
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: 0x1b9dea0
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: volume_removed
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: 0x1b8c330
kernel: [ 136.531496] usb 2-2.3.3: new SuperSpeed USB device number 6 using xhci_hcd
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: drive_changed
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: 0x1bd6810
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: drive_connected
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: 0x1bd6810
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: volume_added
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: emit_signal: 0x1b8c3d0
org.gtk.vfs.UDisks2VolumeMonitor[2116]: ### debug: in handle_volume_mount
udisksd[2274]: Mounted /dev/sda1 at /media/u/U on behalf of uid 1001

Tags: oem-priority
Revision history for this message
ethan.hsieh (ethan.hsieh) wrote :
Revision history for this message
ethan.hsieh (ethan.hsieh) wrote :

This issue fixed by the commit below. Please help to backport the patch to xenial.

commit 3574f9876634c290944441655733a8f07ab5c242
Author: Tomas Smetana <email address hidden>
Date: Wed Oct 12 09:47:03 2016 +0200
    Don't add new drive object on "change" uevent

no longer affects: oem-priority/xenial
no longer affects: oem-priority
Revision history for this message
ethan.hsieh (ethan.hsieh) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Can you provide a proper debdiff including the changelog update which describes the issue/fix and reference to the bug number?

Revision history for this message
ethan.hsieh (ethan.hsieh) wrote :

@Sebastien
Please check the attached file.

Changed in udisks2 (Ubuntu):
importance: Undecided → High
Mathew Hodson (mhodson)
Changed in udisks2 (Ubuntu):
status: New → Fix Released
Changed in udisks2 (Ubuntu Xenial):
importance: Undecided → High
Revision history for this message
ethan.hsieh (ethan.hsieh) wrote :

@Mathew

I didn't find the patch in latest udisk2 (xenial) from the link below.
https://launchpad.net/ubuntu/+source/udisks2
May I know when it will be landed to udisks2 (xenial)?

Rex Tsai (chihchun)
tags: added: oem-priority
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.