udev/udisks automount waits for 5 seconds

Bug #1669293 reported by Oliver R.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
udisks2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

In Ubuntu 14.04 and 16.04, when plugging in a USB pen drive, there is a lag of 5 or 6 seconds between the kernel detecting the device and udev/udisks mounting it. If there are more than one partition on the drive, each partition takes another 5 or 6 seconds. In 12.04 the automounting started immediately. I tested this with several USB pen drives and several computers.

I consider this a regression (somewhere between 12.04 and 14.04).

What is the purpose of this delay?

How can I change it?

Here is an excerpt of syslog:

Feb 3 20:40:42 x300 kernel: [ 7747.314179] scsi 10:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 4
Feb 3 20:40:42 x300 kernel: [ 7747.315756] sd 10:0:0:0: Attached scsi generic sg2 type 0
Feb 3 20:40:42 x300 kernel: [ 7747.317922] sd 10:0:0:0: [sdb] 7866368 512-byte logical blocks: (4.03 GB/3.75 GiB)
Feb 3 20:40:42 x300 kernel: [ 7747.320212] sd 10:0:0:0: [sdb] Write Protect is off
Feb 3 20:40:42 x300 kernel: [ 7747.320220] sd 10:0:0:0: [sdb] Mode Sense: 23 00 00 00
Feb 3 20:40:42 x300 kernel: [ 7747.321513] sd 10:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Feb 3 20:40:42 x300 kernel: [ 7747.329054] sdb: sdb1 sdb2
Feb 3 20:40:42 x300 kernel: [ 7747.332767] sd 10:0:0:0: [sdb] Attached SCSI removable disk
Feb 3 20:40:48 x300 kernel: [ 7753.045290] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
Feb 3 20:40:48 x300 udisksd[2255]: Mounted /dev/sdb2 at /media/oli/stick on behalf of uid 1119
Feb 3 20:40:53 x300 udisksd[2255]: Mounted /dev/sdb1 at /media/oli/MYNAME on behalf of uid 1119

Oliver R. (oliverr)
affects: cryptkeeper (Ubuntu) → udisks (Ubuntu)
Phillip Susi (psusi)
affects: udisks (Ubuntu) → udisks2 (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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