Saturday, 8 May 2010

udevinfo and udevadm

If you have ever tried to write UDEV rules , say, to get your external hard drive to mount at your preferred custom mount point, you will have found necessary to use the little utility udevinfo.

Recently this utility has been superseded by udevadm. However there is a way to get the old udevinfo output back with udevadm:

udevadm info -a -p $(udevadm info -q path -n /dev/your-device)

and you will have the same output you would have had with udevinfo. Very useful! Credits to Unlikely Source for the hack.