原文地址: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
本文详细介绍了udev设备管理系统的基本概念、工作原理及配置方法。通过具体的命令行实例展示了如何使用udevadm命令获取设备信息,并深入探讨了udev规则文件的编写、语法特点及应用场景,包括USB设备的识别与命名。
2061

被折叠的 条评论
为什么被折叠?



