Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I've written a udev rule which is run each time my device is mounted/dismounted.

However, in which Linux (Debian) error log should I check when debugging such rules?

share|improve this question
add comment

2 Answers

You can change logging priority to "info" level or even "debug" by:

udevadm control --log-priority=info

Then you will see all logs in your system log.

When you are done, bring it to default "err". See in /etc/udev/udev.conf what is your default logging level.

share|improve this answer
add comment

unbuffer udevadm monitor --environment The use of unbuffer is optional, but when piping output to grep saves you a headache. By default output is buffered in 4k blocks, nothing will be printed until that buffer is full.

You didn't forget to reload the rules? sudo udevadm control --reload

share|improve this answer
    
Should be noted that unbuffer is not installed by default on Debian. –  enzotib Apr 11 '12 at 19:14
    
That's correct, it is in the expect-dev package. It can be installed by sudo apt-get install expect-dev un Debian/Ubuntu. –  jippie Apr 11 '12 at 19:21
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.