[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hotplug, udev and usbkey question



John L Fjellstad wrote:
You typed the udevinfo command wrong. You typed:


bob@t40:~$  udevinfo -a -p `udevinfo /dev/sda1`


It's supposed to be

udevinfo -a -p `udevinfo -q path -n /dev/sda1`
Basically,
"udevinfo -q path -n /dev/sda1"
which means give me the sysfs device path (-q path) for node sda1 (-n
/dev/sda1).  Pass this to the second udevinfo command
"udevinfo -a -p `...` ", meaning
give me all the sysfs attributes (-a) for this sysfs device path (-p).


bob@t40:~$ sudo udevinfo -a -p `udevinfo -q path -n /dev/sda1`
couldn't get the class device

Thank you John.
Bob



Reply to: