Gentoo Archives: gentoo-dev

From: Collins Richey <erichey2@××××.com>
To: gentoo-dev@××××××××××.org
Subject: Re: [gentoo-dev] devfs - scd0&1 devices
Date: Fri, 13 Jul 2001 05:13:26
Message-Id: 20010713052258.72bc38e7.erichey2@home.com
In Reply to: Re: [gentoo-dev] devfs - scd0&1 devices by Collins Richey
1 On Thu, 12 Jul 2001 21:29:06 +0000 Collins Richey <erichey2@××××.com>
2 wrote:
3
4 > On Thu, 12 Jul 2001 20:33:25 -0600 Daniel Robbins <drobbins@g.o>
5 > wrote:
6 >
7 > > On Thu, Jul 12, 2001 at 08:19:06PM +0000, Collins Richey wrote:
8 > > > I've got devfs working almost the way I want it. The stock
9 > > > /etc/devfsd.conf retains the permissions I've set for sound devices,
10 > > but
11 > > > how can I make it hang onto /dev/scd0&1 for my ide-scsi cdroms?
12 > Right
13 > > now
14 > > > I have to do MAKEDEV each time I want to use them; they disappear
15 > with
16 > > > each boot.
17 > >
18 > > Use /dev/cdroms/cdrom0 and 1 instead.
19 > > If you create new devices of the same type somewhere else in /dev,
20 > they
21 > > will
22 > > get backed up and restored as long as devfs is running.
23 > >
24 >
25 > Thanks. Interestingly enough, devfs generates them on my system as
26 > /dev/cdroms/cdrom4 and cdrom6 !!!
27 >
28
29 I've just learned from a user on another group that devfs will add the
30 /dev/srn entries (expected by some applications) if you modprobe sr_mod,
31 so I've added sr_mod to my /etc/rc.d/config/modules.
32
33 both /dev/cdromn and /dev/srn are actually symlinks, ie
34 /dev/cdrom4 -> /scsi/host0/bus0/target0/lun0/cd
35 /dev/cdrom6 -> ... /target1/ ...
36
37 if only ide-scsi is modprobed, cdrom4 and cdrom6 are generated. If sr_mod
38 is also present, cdrom0 and cdrom4 and sr0 and sr1 are generated.
39
40 --
41 Collins Richey
42 Denver Area
43 Gentoo_rc5 XFCE