Gentoo Archives: gentoo-user

From: walt <w41ter@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: flash drive mounting is very slow
Date: Sun, 20 Feb 2011 16:52:53
Message-Id: ijrgpd$t6q$1@dough.gmane.org
In Reply to: [gentoo-user] flash drive mounting is very slow by David Relson
1 On 02/20/2011 07:33 AM, David Relson wrote:
2 > Mounting USB devices is very, very slow. This morning I inserted my
3 > PNY memory stick at 10:18:22 but "df" didn't show it mounted until 3
4 > minutes later at 10:21:05.
5 >
6 > As background information, in /etc/udev/rules.d/10-local.rules is:
7 >
8 > KERNEL=="sd*1", ATTRS{manufacturer}=="PNY", SYMLINK+="PNY", RUN+="/bin/mount -a"
9 >
10 > and in /etc/fstab is:
11 >
12 > /dev/PNY /mnt/pny vfat rw,nosuid,auto 0 0
13 >
14 > The kernel messages in /var/log/messages for this period of time are in
15 > the attached file (to avoid line wrapping by mail clients).
16
17 Looks like udev is creating the device immediately, as it should. I'm
18 pretty fuzzy on how the automounting actually gets done, though.
19
20 I've noticed this puzzling situation on my own machines (which auto-mount
21 correctly, BTW):
22
23 1929 ? Sl 0:04 /usr/libexec/udisks-daemon
24 1930 ? S 0:01 \_ udisks-daemon: polling /dev/sdc /dev/sr0 /dev/sdd
25
26 And this as well:
27
28 1647 ? S 0:02 \_ hald-addon-storage: polling /dev/sr0 (every 2 sec)
29 1648 ? S 0:00 \_ hald-addon-storage: polling /dev/sdd (every 2 sec)
30 1650 ? S 0:00 \_ hald-addon-storage: polling /dev/sdc (every 2 sec)
31
32 So I have hal and udisks polling the same three removable drives at the same
33 time, but they don't seem to interfere with each other.
34
35 I'm using gnome with automounting enabled, so I'm pretty sure it's gnome that
36 automounts those three removable drives, possibly with gdu-notification-daemon,
37 which is part of the gnome-disk-utility package. A whole lotta guessing going
38 on here :)