On Fri, 16 Nov 2012 13:25:28 +1030, Shane Ambler wrote:
> On 16/11/2012 02:25, Warren Block wrote:
> > On Thu, 15 Nov 2012, Polytropon wrote:
> >
> >> Is there a recommended way to automate the "GEOM re-tasting" so
> >> SD cards can be accessed without further interaction (by simply
> >> using the correct mount command)?
> >
> > Not AFAIK.  Could depend on hardware also; some card readers might not
> > need it.
> 
> I haven't tried this ---
> 
> Given that the reader is a usb device could it be added to the devd setup?
> 
> Something like -
> 
> attach 200 {
>       device-name "da[0-9]+";
>       match "vendor" "0x058f";
>       match "product" "0x6362";
>       action "/usr/bin/true > /dev/${device-name}";
> };
> 
> 
> Saved to /usr/local/etc/devd/SD.conf
> 
> vendor and product are from my internal reader that I never use as I 
> never did get it to mount a card - I have an external reader that works 
> fine. There should be a more generic way to recognise card readers.

Interesting approach, but I can already predict where it would
fail at least for my setup: I have an internal card reader for
SD, CF and other kinds of media, connected per internal USB to
the main board. The device files representing the "slots" are
present since system startup: da0, da1, da2. They do not "change"
when a card is inserted. In fact, the OS does not notice if a
card is inserted (or even removed). Using the "true > /dev/da0"
approach causes the card to be recognized, as some of the cards
can have a /dev/da0s1 "primary DOS partition" which has to be
mounted (instead of blindly trying /dev/da0).

However, this approach might work with external "35 in 1" card
readers connected to external USB _with_ the card being present
when attached to the system.

Sadly, the handling of that specific kind of removable media is
still sub-optimum, nearly near-pessimum, si se oblivisci quae
vellet. :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to