Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

TL;DR; Udev is showing a lot of errors during boot and it is pointing to a .rules file.

A little background: I recently upgraded an Ubuntu 5 server to Ubuntu 12. I performed a stepwise upgrade to avoid what anyway happened. During all these upgrades the system completely crashed several times, requiring a Live CD and a lot of adding, removing and reinstalling of packages. In the end everything works again and the system boots (almost) normally.

Below are the errors that appear. They are non blocking errors, erything else works well and the system starts but I would like to resolve them. This started when the computer hanged while upgrading to 12.04 and had to be restarted. I fixed most of the errors with a live cd and apt-get install -f, remove, update, upgrade, dpkg...

The problem: It starts with the BUS errors:

udevd[xxx]: unknown key 'BUS' in /lib/udev/rules.d/020_permission.rules:x
udevd[xxx]: invalid rule '/lib/udev/rules.d/020_permission.rules:x'

After that I get a thousand (literally) lines of:

udevd[xxx]: failed to execute  '/sbin/udev_run_devd' '/sbin/udev_run_devd' : No such file or directory

There are a few errors like:

udevd[704]: kernel-provided name 'dm-0' and NAME= 'mapper/simlib-lv1' disagree, please use SYMLINK+= or change the kernel to provide the proper name 

udevd[869]: kernel-provided name 'uinput' and NAME= 'input/uinput' disagree, please use SYMLINK+= or change the kernel to provide the proper name

udevd[xxx]: kernel provided name 'dm-0' and -NAME= '/dev/mapper/simlib-lv1' will not overwrite it

udevd[704]: device node '/dev/mapper/simlib-lv1' already exists, link to '/dev/mapper/simlib-lv1' will not overwrite it

I might also mention that I removed the package cups because it caused major errors. I did not try putting it back, but if I understood well that is used for printing. Also, after the upgrade to 12.04 crashed I had to reinstall udev.

Here is the rules file.. 020_permission.rules

# default permissions for block devices
SUBSYSTEM=="block",             GROUP="disk"
SUBSYSTEM=="block", SYSFS{removable}=="1",  GROUP="floppy"

# IDE devices
BUS=="ide", KERNEL=="hd[a-z]*", PROGRAM="/etc/udev/scripts/removable.sh %k", RESULT=="1", \
  MODE="0640", GROUP="plugdev"
BUS=="ide", KERNEL=="hd[a-z]", SYSFS{removable}="1", \
  PROGRAM="/bin/cat /proc/ide/%k/media", RESULT=="cdrom*",      MODE="0660", GROUP="cdrom"
BUS=="ide", KERNEL=="ht[0-9]*",                 GROUP="tape"
BUS=="ide", KERNEL=="nht[0-9]*",                GROUP="tape"

# SCSI devices
BUS=="scsi", SYSFS{type}=="1",  GROUP="tape"
BUS=="scsi", SYSFS{type}=="5",  GROUP="cdrom"
BUS=="scsi", SYSFS{type}=="6",  GROUP="scanner"
BUS=="scsi", KERNEL=="sd[a-z]*", PROGRAM="/etc/udev/scripts/removable.sh %k 'usb ieee1394'", RESULT="1", MODE="0640", GROUP="plugdev"

# USB devices
BUS=="usb", KERNEL=="legousbtower*", MODE="0666"
BUS=="usb", KERNEL=="lp[0-9]*", GROUP="lp"
BUS=="usb", KERNEL=="ub[a-z]*", NAME="%k", MODE="0640", GROUP="plugdev"

# serial devices
SUBSYSTEM=="tty",   GROUP="dialout"
SUBSYSTEM=="capi",  GROUP="dialout"
SUBSYSTEM=="slamr", GROUP="dialout"

# vc devices (all members of the tty subsystem)
KERNEL=="ptmx",     MODE="0666", GROUP="root"
KERNEL=="console",  MODE="0600", GROUP="root"
KERNEL=="tty",      MODE="0666", GROUP="root"
KERNEL=="tty[0-9]*",    GROUP="root"

# video devices
SUBSYSTEM=="video4linux", GROUP="video"
SUBSYSTEM=="drm",   GROUP="video"
SUBSYSTEM=="dvb",   GROUP="video"
SUBSYSTEM=="em8300",    GROUP="video"
SUBSYSTEM=="graphics",  GROUP="video"
SUBSYSTEM=="nvidia",    GROUP="video"

# misc devices
KERNEL=="random",   MODE="0666"
KERNEL=="urandom",  MODE="0444"
KERNEL=="mem",      MODE="0640", GROUP="kmem"
KERNEL=="kmem",     MODE="0640", GROUP="kmem"
KERNEL=="port",     MODE="0640", GROUP="kmem"
KERNEL=="full",     MODE="0666"
KERNEL=="null",     MODE="0666"
KERNEL=="zero",     MODE="0666"
KERNEL=="inotify",  MODE="0666"
KERNEL=="sgi_fetchop",  MODE="0666"
KERNEL=="sonypi",   MODE="0666"
KERNEL=="agpgart",  GROUP="video"
KERNEL=="nvram",    GROUP="nvram"
KERNEL=="rtc",      MODE="0660", GROUP="audio"

KERNEL=="cdemu[0-9]*",  GROUP="cdrom"
KERNEL=="pktcdvd[0-9]*", GROUP="cdrom"
KERNEL=="pktcdvd",  MODE="0644"

# printers and parallel devices
SUBSYSTEM=="printer",   GROUP="lp"
SUBSYSTEM=="ppdev", GROUP="lp"
KERNEL=="pt[0-9]*", GROUP="tape"
KERNEL=="pht[0-9]*",    GROUP="tape"

# sound devices
SUBSYSTEM=="sound", GROUP="audio"

# ieee1394 devices       
KERNEL=="raw1394",  GROUP="disk"
KERNEL=="dv1394*",  GROUP="video"
KERNEL=="video1394*",   GROUP="video"

# input devices
KERNEL=="event[0-9]*",  PROGRAM="/etc/udev/scripts/inputdev.sh %k", \
            RESULT=="inputdev", MODE="0664", GROUP="video"
KERNEL=="js[0-9]*", MODE="0664"

# AOE character devices
SUBSYSTEM=="aoe",           MODE="0220", GROUP="disk"
SUBSYSTEM=="aoe", KERNEL=="err",    MODE="0440"

I am not very experienced with linux, but also not a complete noob. I tried to provide as much info as possible. Please let me know if you need more info. After searching online, on this and other forums for possible fixes, I could not find anything. What can I do to fix this? Thank you.

share|improve this question
Is that file still maintained by any package? A dpkg -S <filename> might show this. On a Ubuntu 12.04 LTS Desktop VM I do not see that file at all. –  TeTeT May 15 '13 at 20:02
Good idea, tnx. I will check tomorrow morning and let you know. –  frinx May 15 '13 at 23:46
add comment

migrated from stackoverflow.com Jun 9 '13 at 2:32

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

Your Answer


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

Browse other questions tagged or ask your own question.