Re: Missing devs...

2006-05-28 Thread Aren Olvalde Tyr
Hi
> So now to my question! How do I avoid this dual mounting?

I have the same problem with my memory card reader. 

The necessary da1s1 device node slice for my SD memory card is not created 
until after it has been probed during the attempt to mount it. The only 
exception to this is if the card is already inserted when the system first 
boots up.

Presumably there must be a way to automatically probe the USB device/card and 
create the slice so you can mount it when it is first inserted?

I am wondering if /etc/usbd.conf would be of assistance here. Can you get the 
usbd daemon to automatically "probe" a device for filesystem slices during 
the "attach" stage?

Aren.


pgpNqGTTMMalV.pgp
Description: PGP signature


Re: Missing devs...

2006-05-28 Thread Anders Troback
On Sun, 28 May 2006 16:25:58 +0100
Aren Olvalde Tyr <[EMAIL PROTECTED]> wrote:

> Hi
> > So now to my question! How do I avoid this dual mounting?
> 
> I have the same problem with my memory card reader. 
> 
> The necessary da1s1 device node slice for my SD memory card is not
> created until after it has been probed during the attempt to mount
> it. The only exception to this is if the card is already inserted
> when the system first boots up.
> 
> Presumably there must be a way to automatically probe the USB
> device/card and create the slice so you can mount it when it is first
> inserted?
> 
> I am wondering if /etc/usbd.conf would be of assistance here. Can you
> get the usbd daemon to automatically "probe" a device for filesystem
> slices during the "attach" stage?
> 
> Aren.

Hi,

I have been using usbd.conf for a workaround. Maybe clumsy but it
works for me!

In my usbd.conf I have:

device "Sony Ericsson W810i"
   devname "umass[0-9]+"
   vendor  0x0fce
   product 0xe042
   attach "sleep 5 ; /sbin/mount -t msdos /dev/da1 /mnt ; /etc/rc.d/devfs 
restart"

As I said, this works for me but it seams to be a bit stupid that this
kind of workaround is needed...


Thanks for listening!!!

\\troback
-- 


How many Microsoft employees does it take to screw in a light bulb?
None, they declare darkness a new standard.

Anders Trobäck
http://www.troback.com/
-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Missing devs...

2006-05-29 Thread Aren Olvalde Tyr
Hi

On Sunday 28 May 2006 21:42, Anders Troback wrote:

> In my usbd.conf I have:
>
> device "Sony Ericsson W810i"
>devname "umass[0-9]+"
>vendor  0x0fce
>product 0xe042
>attach "sleep 5 ; /sbin/mount -t msdos /dev/da1 /mnt ; /etc/rc.d/devfs
> restart"
>
> As I said, this works for me but it seams to be a bit stupid that this
> kind of workaround is needed...

Yes, indeed. I was thinking about doing a similar workaround, but surely there 
must be a better way of doing this. We need a way for mount to automatically 
probe the device for filesystems first before attempting to mount the slice.

Anyone got any suggestions?

Just out of interest, during bootup, what command is executed to probe the 
devices? If I put a memory card in my reader before booting the system up, 
the filesystem slices on the card are detected, the device node[s] are 
created and I can mount it straight away. 

This is the command I want, rather than having to run a mount command that we 
know will fail just to create the nodes.

Aren.


pgp55SXv76OLk.pgp
Description: PGP signature


Re: Missing devs...

2006-05-29 Thread Micah

Aren Olvalde Tyr wrote:

Hi

On Sunday 28 May 2006 21:42, Anders Troback wrote:


In my usbd.conf I have:

device "Sony Ericsson W810i"
   devname "umass[0-9]+"
   vendor  0x0fce
   product 0xe042
   attach "sleep 5 ; /sbin/mount -t msdos /dev/da1 /mnt ; /etc/rc.d/devfs
restart"

As I said, this works for me but it seams to be a bit stupid that this
kind of workaround is needed...


Yes, indeed. I was thinking about doing a similar workaround, but surely there 
must be a better way of doing this. We need a way for mount to automatically 
probe the device for filesystems first before attempting to mount the slice.


Anyone got any suggestions?

Just out of interest, during bootup, what command is executed to probe the 
devices? If I put a memory card in my reader before booting the system up, 
the filesystem slices on the card are detected, the device node[s] are 
created and I can mount it straight away. 

This is the command I want, rather than having to run a mount command that we 
know will fail just to create the nodes.


Aren.


I've not been following this thread too closely, but I think I've had 
the same problem in the past. I currently get around it by not leaving 
my media readers plugged in (they're both external USB readers). I 
insert my media card then plug in the reader and have no problems. I 
*think* true > /dev/da1 will get devfs to show the slices, but I can't 
find my old post that has that little bit of info in it. I always 
thought the device should trigger and event when media was inserted, and 
that the event should trigger devfs to show the slices


Hope that provides insight,
Micah
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"