Re: [gentoo-user] flash drive mounting is very slow

2011-02-21 Thread Neil Bothwick
On Sun, 20 Feb 2011 23:10:18 -0500, David Relson wrote:

> You're suggesting that the RUN clause be
> 
>RUN+="pmount /dev/PNY &"
> 
> right?

Right. Most importantly, stop using mount -a.


-- 
Neil Bothwick

If you think that there is good in everybody, you haven't met everybody.


signature.asc
Description: PGP signature


Re: [gentoo-user] flash drive mounting is very slow

2011-02-20 Thread David Relson
On Sun, 20 Feb 2011 17:44:58 +
Neil Bothwick wrote:

> On Sun, 20 Feb 2011 10:33:52 -0500, David Relson wrote:
> 
> > As  background information, in /etc/udev/rules.d/10-local.rules is: 
> > 
> > KERNEL=="sd*1", ATTRS{manufacturer}=="PNY", SYMLINK+="PNY",
> > RUN+="/bin/mount -a"
> > 
> > and in /etc/fstab is:
> > 
> > /dev/PNY /mnt/pny vfat rw,nosuid,auto 0 0
> 
> Could the delay be caused by something else is fstab trying to mount
> and failing? Try with mount /dev/PNY instead of mount -a.
> 
> Even better use pmount /dev/PNY.
> 
> Either way, you should run the command with & because udev blocks
> while running commands.

You're suggesting that the RUN clause be

   RUN+="pmount /dev/PNY &"

right?




Re: [gentoo-user] flash drive mounting is very slow

2011-02-20 Thread David Relson
On Sun, 20 Feb 2011 18:03:24 +
Mick wrote:

> On Sunday 20 February 2011 17:44:58 Neil Bothwick wrote:
> > On Sun, 20 Feb 2011 10:33:52 -0500, David Relson wrote:
> > > As  background information, in /etc/udev/rules.d/10-local.rules
> > > is: KERNEL=="sd*1", ATTRS{manufacturer}=="PNY", SYMLINK+="PNY",
> > > 
> > > RUN+="/bin/mount -a"
> > > 
> > > and in /etc/fstab is:
> > > /dev/PNY /mnt/pny vfat rw,nosuid,auto 0 0
> > 
> > Could the delay be caused by something else is fstab trying to mount
> > and failing? Try with mount /dev/PNY instead of mount -a.
> > 
> > Even better use pmount /dev/PNY.
> > 
> > Either way, you should run the command with & because udev blocks
> > while running commands.
> 
> To state the obvious ... have you tried it on a different USB port, a 
> different PC and finally a different OS?
> 
> I've had a USB stick failing recently and there was a mechanical
> (contact) problem.  So a process of elimination would at least do
> away with physical level problems and indirectly confirm if there is
> something wrong with your system.
> -- 
> Regards,
> Mick

The PNY stick mentioned runs very nicely on a machine at work.  The
environment there is Ubuntu (as guest OS) running in VMWare on
WinXP (as host OS).  Automounting works very nicely.

The slowness is true of several USB sticks. 



Re: [gentoo-user] flash drive mounting is very slow

2011-02-20 Thread William Kenworthy
"usb verbose debug" in the kernel? - check dmesg.  Mine are always slow
to mount if this is on.

BillK



On Sun, 2011-02-20 at 10:33 -0500, David Relson wrote:
> Mounting USB devices is very, very slow.  This morning I inserted my
> PNY memory stick at 10:18:22 but "df" didn't show it mounted until 3
> minutes later at 10:21:05.
> 
> As  background information, in /etc/udev/rules.d/10-local.rules is: 
> 
> KERNEL=="sd*1", ATTRS{manufacturer}=="PNY", SYMLINK+="PNY", 
> RUN+="/bin/mount -a"
> 
> and in /etc/fstab is:
> 
> /dev/PNY /mnt/pny vfat rw,nosuid,auto 0 0
> 
> The kernel messages in /var/log/messages for this period of time are in
> the attached file (to avoid line wrapping by mail clients).
> 
> Any thoughts on why it takes so long and how I can speed up
> recognition?
> 
> Ideas for enabling more messages (from udev, the kernel, etc) to see
> what's happening would also be helpful.
> 
> TIA,
> 
> David
> 

-- 
William Kenworthy 
Home in Perth!




Re: [gentoo-user] flash drive mounting is very slow

2011-02-20 Thread Mick
On Sunday 20 February 2011 17:44:58 Neil Bothwick wrote:
> On Sun, 20 Feb 2011 10:33:52 -0500, David Relson wrote:
> > As  background information, in /etc/udev/rules.d/10-local.rules is:
> > KERNEL=="sd*1", ATTRS{manufacturer}=="PNY", SYMLINK+="PNY",
> > 
> > RUN+="/bin/mount -a"
> > 
> > and in /etc/fstab is:
> > /dev/PNY /mnt/pny vfat rw,nosuid,auto 0 0
> 
> Could the delay be caused by something else is fstab trying to mount
> and failing? Try with mount /dev/PNY instead of mount -a.
> 
> Even better use pmount /dev/PNY.
> 
> Either way, you should run the command with & because udev blocks while
> running commands.

To state the obvious ... have you tried it on a different USB port, a 
different PC and finally a different OS?

I've had a USB stick failing recently and there was a mechanical (contact) 
problem.  So a process of elimination would at least do away with physical 
level problems and indirectly confirm if there is something wrong with your 
system.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] flash drive mounting is very slow

2011-02-20 Thread Neil Bothwick
On Sun, 20 Feb 2011 10:33:52 -0500, David Relson wrote:

> As  background information, in /etc/udev/rules.d/10-local.rules is: 
> 
> KERNEL=="sd*1", ATTRS{manufacturer}=="PNY", SYMLINK+="PNY",
> RUN+="/bin/mount -a"
> 
> and in /etc/fstab is:
> 
> /dev/PNY /mnt/pny vfat rw,nosuid,auto 0 0

Could the delay be caused by something else is fstab trying to mount
and failing? Try with mount /dev/PNY instead of mount -a.

Even better use pmount /dev/PNY.

Either way, you should run the command with & because udev blocks while
running commands.


-- 
Neil Bothwick

And what else floats.?


signature.asc
Description: PGP signature


Re: [gentoo-user] flash drive mounting is very slow

2011-02-20 Thread Dale

David Relson wrote:

Mounting USB devices is very, very slow.  This morning I inserted my
PNY memory stick at 10:18:22 but "df" didn't show it mounted until 3
minutes later at 10:21:05.

As  background information, in /etc/udev/rules.d/10-local.rules is:

 KERNEL=="sd*1", ATTRS{manufacturer}=="PNY", SYMLINK+="PNY", RUN+="/bin/mount 
-a"

and in /etc/fstab is:

 /dev/PNY /mnt/pny vfat rw,nosuid,auto 0 0

The kernel messages in /var/log/messages for this period of time are in
the attached file (to avoid line wrapping by mail clients).

Any thoughts on why it takes so long and how I can speed up
recognition?

Ideas for enabling more messages (from udev, the kernel, etc) to see
what's happening would also be helpful.

TIA,

David

   


Just out of curiosity, have you tried it with no entry in fstab?  I 
don't have a entry for any of those in my fstab and it mounts in just a 
few seconds.


Just a thought.

Dale

:-)  :-)