lkml.org 
[lkml]   [2003]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: udev for dummies
From
Date
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
> kernel.
> 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
> /udev.
>
> What am I missing / misunderstanding ?
>
> TIA

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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.046 / U:0.928 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site