Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I prove if udev is installed and working proper? Just call udevadm would be a method, right?

share|improve this question

migrated from stackoverflow.com Sep 7 '12 at 7:37

This question came from our site for professional and enthusiast programmers.

3 Answers 3

up vote 2 down vote accepted

Make sure the udev daemon udevd is running:

if [[ $(pgrep -c udevd) -eq 0 ]]; then
    echo "No udev"
else
    echo "udev is running"
fi

Or check the output of service udev status which contains start/running if udev is running.

share|improve this answer

@Peter - If device is gone you can create them back using following command.

[root@mg0016 ~]# mknod /tmp/fd0 b 2 0
[root@mg0016 ~]# ls -l /tmp/fd0
brw-r--r-- 1 root root 2, 0 Sep  7 10:09 /tmp/fd0
share|improve this answer

If you what to test your udev is running and working. do following to verify.

Delete one of devices from /dev

rm /dev/fd0

Run udevtrigger, it will auto create missing device again.

/sbin/udevtrigger
share|improve this answer
    
@ Satish Thanks for the answer, just one problem with your solution. If I delete the device and udev is not running, the device is gone :) –  Peter Sep 7 '12 at 6:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.