[olug] Drive letter assignments

Rob Townley rob.townley at gmail.com
Thu Apr 14 07:10:44 UTC 2011


The original reason for udev was to solve the exact problem you are
having back in 2003.
https://bugzilla.redhat.com/show_bug.cgi?id=udev
i misread the thread because i thought you did follow the the
http://www.reactivated.net/writing_udev_rules.html, but it still did
not work as wanted which would have meant a bug.

Imagine the conversation between an onsite tech and the owner of a
machine at the data center:
  "Hello, that new USB drive from Newegg needs to be plugged into my server.  "
  "Done.  We did it last night while waiting for the power to come back up.  "
  "Now, i need you to run fdisk /dev/sdb to partition the USB drive."
ouch!

The reactivated.net article pointed out by Christopher Cashel in
response to OBI WAN looks like it would solve the problem.   In fact,
the 14 pages have examples for statically assigning dev names for
"USB Hard Disks" and  "USB Printers".  However, the article stopped
working with Fedora13 because  'yum search udevinfo' returns NULL  &&
s/udevinfo/udevadm info/g did not seem to apply as advertised.

#works:
# udevadm info -q path -n /dev/cciss/c0d0
# udevadm info --query=path --name=/dev/cciss/c0d0

#Does not work to walk from child to parents.
# udevadm info -a  -p $(udevadm info -q path -n /dev/cciss/c0d0)
#Move --attribute-walk or -a to the end of the line for it to work.
# udevadm info -p $(udevadm info -q path -n /dev/cciss/c0d0)  -a
# udevadm info -p $(udevadm info -q path -n /dev/cciss/c0d0)  --attribute-walk



#does not work, returns "device node not found":
# udevadm info -q path -n /dev/lp2
#Indicates a package management problem because everything should come
from a package.
#rpm --query --whatprovides   /dev/lp0
file /dev/lp0 is not owned by any package



#On a side note, the following helped me find that there are things in
the udev package to match HP tablets.
rpm -q --filesbypkg udev



More information about the OLUG mailing list