Re: udev for dummies
From: David T Hollis (dhollis_at_davehollis.com)
To: "J.A. Magallon" <firstname.lastname@example.org> Date: Thu, 11 Dec 2003 17:59:14 -0500
On Thu, 2003-12-11 at 17:16, J.A. Magallon wrote:
> Hi all...
> I am starting to use 2.6, and I really would like to use udev.
> But I can't find a doc about how to move from taditional heavily
> populated /dev to new method.
> Any pointer ?
> I have installed udev and hotplug utils, and have hotplug enabled in
> As I undestand it, I should do now something like
> - run udev for the first time, so it populates /udev
> - check that basic dev files are there
> - move /dev to /dev.old, and ln -s /udev /dev (or real-move it and
> change udev.conf to write directly on /dev)
> Or just create and empty /dev, and let hotplug call hotplug scripts
> on boot which in turn call udev. Is this correct ? Will hotplug call
> udev for the built-in drivers ?
> Could it also work without hotplugging, ie, can I use udev to just
> create a minimal /dev for my system ?
> After installing udev, I run /sbin/udev and nothing appears on
> What am I missing / misunderstanding ?
You may be overthinking it a bit. I just set up udev on my box and it's
working quite well. It's not really intending to completely replace
/dev, rather it provides a dynamic device structure based on hotplugged
devices. When you plug in some new device (USB thing, firewire,
whatever), hotplug is run. hotplug winds up calling udev which is able
to use it's defined rules and permissions to create a device node in
/udev (NOTE: not /dev). These device nodes are perfectly valid for use
by anything (/dev is really just a convention. There isn't much/any
other real significance to it). The big win with udev is I can create
my own rules so that certain things always have a device node that I
want. For example, I have a San Disk Cruzer USB storage device. I
don't want that to show up as /dev/sdX (where X can vary based on other
things I have plugged in). I tell udev to always create it's device as
/udev/cruzer. This way I can easily have entries in fstab to mount it,
etc etc. Ditto for my other USB storage devices.
In short, don't start deleting your /dev directory just yet!
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/