udev/udisks automount waits for 5 seconds

Asked by Oliver R.

In Ubuntu 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.

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

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
gamebusternin (gamebusternin) said :
#1

maybe your prosseser is slow or it is because of what is on the drive or the things on your computer

Revision history for this message
Oliver R. (oliverr) said :
#2

Well, I'm pretty sure it's neither a matter of the pen drive I use (it happens with all drives I tested) and not of the speed of my computer (Intel Core2 Duo L7100, also tested on Core2 Duo P8400). Rather it seems to me that there was a change from 12.04 to 16.04 in which a delay of 5 or 6 seconds was introduced for some reason. I'd like to find out where this was introduced so I may change it.

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.