On Tue, 14 Feb 2006 19:19:32 +0100, A. S. Budden <[EMAIL PROTECTED]> wrote:

> Thanks again for the link, I've now got it working.  Required a bit of
> a fudge and I'm sure there's a more elegant solution, but here's what
> I did in case it's of any use to anyone else.
>
> I previously had a rule in /etc/udev/rules.d/al.rules that looked like  
> this:
>
> KERNEL=="sd*", BUS="scsi", SYSFS{vendor}="Generic ",
> SYSFS{model}="STORAGE DEVICE  ", ID="*:0:0:0", NAME="%k",
> SYMLINK+="cf"
>
> This was working fine as long as the card was in when udev ran.  I
> changed the NAME bit to NAME{all_partitions}.  This made all of the
> partitions be created automagically as sdb1 sdb2 sdb3 etc.  However,
> the symlink 'cf' was pointing to sdb rather than sdb1.  Therefore, I
> also added "RUN=update_cf_link" onto the end of the line, where
> update_cf_link was a bit of a fudge: a simple three line script that
> identified whether it was sdb, sdc or whatever by looking at what
> /dev/cf pointed to and then recreated /dev/cf pointing to /dev/sdb1.
>
> It ain't pretty, but it works.
>
> Thanks again for the help,

/me glad i shorted you're time seeking for a workin' solution !
Lanrat's Udev comprehension amazes me. His contribution & willingness to  
help us on the BBS are very appreciated here :D

Also, I may take a look at your exemple whenever i see such a case with  
USB cards reader ;)

-- 
Salutations,

kozaki.dev
  ________________________________________
( Linux llewellyn 2.6.15-ARCH #1 SMP     )
( PREEMPT Wed Feb 1 10:21:07 CET 2006    )
( i686 AMD Athlon(tm) 64 Processor 3200+ )
( AuthenticAMD GNU/Linux                 )
  ----------------------------------------
         o   ^__^
          o  (oo)\_______
             (__)\       )\/\
                 ||----w |
                 ||     ||
Et puis Linux, c'est bien sympa, mais la personne qui pleure quand ce  
qu'il faut faire est plus compliqué que double cliquer sur une icone,  
comment elle fait ?
  > http://c.laloy.free.fr/howtos/linux/

Arch Linux - 0.7.1 "Noodle" also on :
Pentium II (Deschutes) GenuineIntel GNU/Linux
i686 Pentium III (Coppermine) GenuineIntel GNU/Linux

_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch

Reply via email to