Udev allows you to customise the naming of device nodes. There are two reasons why you might want to do this: convenience, and persistent naming.
Default udev rules are stored in /etc/udev/rules.d/50-udev.rules.
You can creat your own rules in a file at /etc/udev/rules.d/10-local.rules
Example:
If I insert my U disk in fedora3 the system will creat a node automatically as /dev/sdb1
then #udevinfo -q path -n /dev/lp0
#/block/sdb/sdb1
then #udevinfo -a -p /sys/class/usb/lp0
You can find a detailed information about this U disk
vi your 10-local.rules addbo
BUS="usb", SYSFS="0000:00:07.2", NAME="U-disk"
You can find that your U disk will be detected as "U-disk"
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!




