On Fri, Nov 19, 2004 at 08:55:42PM -0600, Ron Johnson wrote:
> On Fri, 2004-11-19 at 19:32 -0700, Jamin W. Collins wrote:
> > 
> > Don't know about a "general concensus" but I'm quite happy with
> > udev's operation and having consistent device names for my USB and
> > Firewire devices.
> 
> What kind of names?  Can you give some examples? 

$ cat /etc/udev/rules.d/cruzer.rules 
BUS="usb", SYSFS{product}="Cruzer Mini", KERNEL="sd*", NAME="%k", 
SYMLINK="cruzer%n"

The above entry makes sure that anytime I connect my USB memory stick
the kernel device that it's assigned to is symlinked to /dev/cruzerX
where X is the partition of the devices partitions.

Then in my fstab I have something like the following:

/dev/cruzer1    /mnt/cruzer     auto    defaults,user,noauto,noatime 0  0

No matter how many USB or Firewire devices I connect my Cruzer memory
stick is always mountable.  I suppose if I ever connected multiple
Cruzer sticks I would have a problem, but I don't forsee myself doing
that anytime soon.

-- 
Jamin W. Collins

Remember, root always has a loaded gun.  Don't run around with it unless
you absolutely need it. -- Vineet Kumar


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to