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,

Al

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

Reply via email to