Gentoo Archives: gentoo-user

From: Alan Mackenzie <acm@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Beta test Gentoo with mdev instead of udev; version 5 - failure :-(
Date: Wed, 14 Mar 2012 20:01:50
Message-Id: 20120314195943.GA29514@acm.acm
In Reply to: Re: [gentoo-user] Beta test Gentoo with mdev instead of udev; version 5 - failure :-( by Stroller
1 Good evening, Stroller.
2
3 On Wed, Mar 14, 2012 at 05:56:34PM +0000, Stroller wrote:
4
5 > On 13 March 2012, at 22:20, Alan Mackenzie wrote:
6 > > …
7 > >> udev does a *lot* more than that, for example the persistent naming of
8 > >> network interfaces. More significantly, it can run programs based on
9 > >> device rules.
10
11 > > This is where I start getting unhappy. Is there any need for this
12 > > blurring? Having device nodes is essential to a linux system, and
13 > > some programs use these nodes. Why must they be mashed together into a
14 > > tasteless mush? Is there some advantage to this I haven't twigged yet?
15
16 > Ok, so my system has 2 network cards. Maybe I only use one of them, or
17 > maybe they need to be physically connected in a certain way (one to
18 > LAN, the other WAN).
19
20 > Before asking this question, with the knowledge and understanding that
21 > we all already have, don't you have to first have to explain how you're
22 > going to ensure that eth0 is always assigned by the system to the first
23 > NIC and eth1 always to the second NIC?
24
25 By kernel parameters? I once had a problem with the kernel not finding
26 my hard drives. I solved it by putting the following kernel parameters
27 into my lilo.conf:
28
29 ide2=0xd000,0xd402,11 ide3=0xd800,0xdc02,11
30
31 The same could be done for network cards.
32
33 > >> You could use this to argue that /usr should be mounted before udev is
34 > >> started, but you could just as well use it to argue that udev should not
35 > >> be trying to run such rules at the boot runlevel.
36
37 > > Or that udev shouldn't have "rules". I still don't understand the basic
38 > > concept driving this thing. My HDDs don't need rules - they just need a
39 > > mapping from /dev/sd[ab] into device 8/0 and 8/16, and the appropriate
40 > > drivers built into my kernel.
41
42 > I'm assuming, then, that you're happy opening a terminal and typing
43 > `mkdir /mnt/diskname` and mounting the device every time you plug a new
44 > disk in?
45
46 You might be taking me just a wee bit _too_ literally there. But yes, I
47 mount each removable device I plug in.
48
49 > Wouldn't it just be nice to plug in your USB devices - hard-drives and
50 > flash drives - and have them magically appear on the desktop like they
51 > do on every other desktop operating system?
52
53 Yes.
54
55 > Stroller.
56
57 --
58 Alan Mackenzie (Nuremberg, Germany).