Lars Kellogg-Stedman wrote:
>>But with CentOS 4.2, there are no /dev/sg* entries in /dev.
>>So I created them with MAKEDEV, and then it would work (but not the same as
>>before). But if I reboot, those /dev entries disappear.
>
>
> Centos (and Fedora and RHEL) use udev to manage device nodes in /dev.
Not in RHEL 3, but it seems to be true in RHEL 4.
> Don't use MAKEDEV; instead, take a look at the files in /etc/udev.d.
In CentOS 4.2 there is no such directory. There is a /etc/udev with this in it:
[/etc/udev]$ ls -lR
..:
total 40
drwxr-xr-x 2 root root 4096 Aug 21 20:41 devices
drwxr-xr-x 2 root root 4096 Oct 26 08:59 permissions.d
drwxr-xr-x 2 root root 4096 Oct 26 08:59 rules.d
drwxr-xr-x 2 root root 4096 Oct 26 08:59 scripts
-rw-r--r-- 1 root root 1128 Aug 21 20:41 udev.conf
../devices:
total 0
../permissions.d:
total 8
-rw-r--r-- 1 root root 3508 Aug 21 20:41 50-udev.permissions
../rules.d:
total 8
-rw-r--r-- 1 root root 3230 Aug 21 20:41 50-udev.rules
../scripts:
total 40
-rwxr-xr-x 1 root root 733 Aug 21 20:41 MAKEDEV.dev
-rwxr-xr-x 1 root root 662 Aug 21 20:41 check-cdrom.sh
-rwxr-xr-x 1 root root 599 Aug 21 20:41 hotplug.dev
-rwxr-xr-x 1 root root 216 Aug 21 20:41 ide-media.sh
-rwxr-xr-x 1 root root 978 Aug 21 20:41 pam_console.dev
> But before you do *that*, just try loading the 'sg' module, and you'll
> probably find that you now have the necessary /dev/sg* device nodes
> without any further intervention on your part.
Where is the right place to insert the _modprobe sg_? I.e., in what file? It
seems to me that there is a standard file to put that in, but I disremember
where it is.
>
> It doesn't make sense to create the devices with MAKEDEV if the
> appropriate kernel module isn't loaded.
Somehow, it does got loaded after I created the /dev/sg* entries with
MAKEDEV. It may be that, since I have two scsi controllers, something else
loads them. I will have to reboot that system to find out what else might
have loaded them. Doing that now...
OK, now there are no /dev/sg* and the sg module is not loaded.
I then loaded it by manually doing
/sbin/modprobe sg
This created /dev/sg[0-4], but no /dev/sg[a-e], but I think I will be able
to handle that.
OK all seems to work other than finding where to put the modprobe command.
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ PGP-Key: 9A2FC99A Registered Machine 241939.
/( )\ Shrewsbury, New Jersey
http://counter.li.org
^^-^^ 08:55:00 up 5 days, 19:25, 3 users, load average: 4.05, 4.10, 4.14