A: Right, but Linux is supposed to load a module when a device is discovered
not to load a module when it's accessed.
-Q: But wait, I really want udev to automatically load drivers when they
- are not present but the device node is opened. It's the only reason I
- like using devfs. Please make udev do this.
-A: No. udev is for managing /dev, not loading kernel drivers.
-
Q: Oh come on, pretty please. It can't be that hard to do.
A: Such a functionality isn't needed on a properly configured system. All
devices present on the system should generate hotplug events, loading
to the devfs names. See the udev.rules.devfs file in the udev
release.
Note that the devfs scheme is not recommended or officially supported
- cause it is a really stupid idea to simply enumerate devices in a world
+ because it is a really stupid idea to simply enumerate devices in a world
where devices can come and go at any time. These numbers give you nothing
but problems, and are not useful to identify a device. Have a look at the
persistent disk rules for an example how to do it correctly in userspace
Q: Can I use udev to automount a USB device when I connect it?
A: Technically, yes, but udev is not intended for this. All major distributions
use HAL (http://freedesktop.org/wiki/Software_2fhal) for this, which also
- watches devices with removable media and integrates into the desktop software.
+ watches devices with removable media and integrates the Desktop environment.
Alternatively, it is easy to add the following to fstab:
/dev/disk/by-label/PENDRIVE /media/PENDRIVE vfat user,noauto 0 0
(The same problem exists when using PAM to change permissions on login.)
The simplest solution is to prevent the creation of hard links by putting
- /dev in a separate filesystem like tmpfs.
+ /dev on a separate filesystem like tmpfs.
Q: I have other questions about udev, where do I ask them?
A: The linux-hotplug-devel mailing list is the proper place for it. The
- address for it is linux-hotplug-devel@lists.sourceforge.net
- Information on joining can be found at
- <https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel>
- Archives of the mailing list can be found at:
- <http://marc.theaimsgroup.com/?l=linux-hotplug-devel>
+ address for it is:
+ linux-hotplug-devel@lists.sourceforge.net
+ Information on joining can be found at:
+ https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel