原文地址:http://hi.baidu.com/rhca/blog/item/2a00481613146e4321a4e95f.html
root@ubuntu-T61:~# udevadm info -q path -n /dev/sda
/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda
root@ubuntu-T61:~# udevadm info -q path -n /dev/sda1
/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/sda1
root@ubuntu-T61:~#
注: udevadm 后面的路径参数必须为绝对参数
Writing udev rules
by Daniel Drake (dsd)
Version 0.74
The most recent version of this document can always be found at:
http://www.reactivated.net/writing_udev_rules.html
Contents
- Introduction
- The concepts
- Rule writing
- Finding suitable information from sysfs
- Advanced topics
- Examples
- Testing and debugging
- Author and contact
Introduction
About this document