devfs
[Top] [All Lists]

Re: Running cdrecord with devfs

To: Chris Martin <chris.martin2@xxxxxxxxxxxxxx>
Subject: Re: Running cdrecord with devfs
From: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Date: Mon, 30 Jul 2001 22:08:51 -0400
Cc: devfs@xxxxxxxxxxx
In-reply-to: <m3eltq5zio.fsf@xxxxxxxxxxxxxxxxxxxxxxxxx>
References: <5.1.0.14.2.20010514133640.009d1480@xxxxxxxxxxxxxxxxx> <m3eltq5zio.fsf@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-devfs@xxxxxxxxxxx
Chris Martin writes:
> I am running ROCK Linux 1.3.11.
> 
> I have compiled 2.4.4 with the SCSI generic stuff to run cdrecord.
> 
> I have the following lines in /etc/devfsd.conf
> 
> LOOKUP .* MODLOAD
> CREATE /dev/scsi/host0/bus0/target0/lun0/cd CFUNCTION GLOBAL symlink sg0 cd
> 
> these lines (among others) in /etc/modules.conf (a scattergun
> approach, I'm afraid)
> 
> alias scsi_hostadapter ide-scsi
> alias cdrom ide-scsi
> alias sga ide-scsi
> probeall scsi-hosts ide-scsi
> 
> and the standard /etc/modules.devfs (3-JUL-2000)
> 
> On booting, lsmod shows no modules loaded.
> 
> On entering
> 
>   l /dev/scsi
> 
> the info from loading the ide-scsi module is shown with
> 
>   Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
> 
> and
> 
>   /dev/scsi/host0/bus0/target0/lun0/cd
>   /dev/scsi/host0/bus0/target0/lun0/generic
> 
> are both created but no sg0.
> 
> /dev/cdrom is a symbolic link to /dev/cdroms/cdrom0 and
> /dev/cdroms/cdrom0 is a symbolic link to
> ../scsi/host0/bus0/target0/lun0/cd
> 
> Running cdrecord -scanbus fails as it can't find /dev/sg0 (or
> sg1...sg31, sga..sgz)
> 
> However, manually putting in the symlink would be OK if I wasn't using
> a CR-ROM for testing...
> 
> Can you tell me what I am missing about CREATE?

Read the man page more carefully. You probably want the REGISTER
event. Also, you probably want to use the MKOLDCOMPAT action. The
sample devfs.conf file that I ship sets up compatibility entries.

                                Regards,

                                        Richard....
Permanent: rgooch@xxxxxxxxxxxxx
Current:   rgooch@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Running cdrecord with devfs, Richard Gooch <=