5

How does udev create /dev/sr*? (Or: Which rule does create /dev/sr*?)

view full story
linux-howto

http://unix.stackexchange.com – udev is responsible for populating /dev. It adds and removes device nodes to /dev dynamically based on rules/configs/scripts under /lib/udev and /etc/udev/. If I have a CDROM device node /dev/sr0 I can add a symlink /dev/cdrom by adding a rule like: SUBSYSTEM=="block", KERNEL=="sr0", SYMLINK+="cdrom", GROUP="cdrom" I understand how symlinks are created in udev. But who (or "which rule") created /dev/sr0 (or another non symlink device node) in the first place? (HowTos)