Linux › Section C · Devices › Topic C.4

udev

When you plug in a USB stick, something must set up its device file, give it sensible permissions and tell the desktop it has arrived. On Linux that something is udev, a user-space service driven by kernel events and a set of rules you can read, test and extend.

In this topic

  • Why device management moved to user space
  • What happens when a device appears
  • Where rules live
  • How a rule is written
  • How the stable disk names are made
  • Inspecting devices with udevadm
  • Worked example: a fixed name for a serial adapter
  • Watching events with udevadm monitor
  • Worked example: watching a USB stick arrive
  • Common mistakes to avoid
  • Key takeaways

This topic is part of Wuanberri Pro. Checking your access…

← Previous topicNext topic →