devfs
[Top] [All Lists]

Running cdrecord with devfs

To: devfs@xxxxxxxxxxx
Subject: Running cdrecord with devfs
From: Chris Martin <chris.martin2@xxxxxxxxxxxxxx>
Date: 15 May 2001 17:48:47 +0100
In-reply-to: <5.1.0.14.2.20010514133640.009d1480@xxxxxxxxxxxxxxxxx> (Ernesto CEDILLO-ARIAS's message of "Mon, 14 May 2001 13:40:18 -0600")
Sender: owner-devfs@xxxxxxxxxxx
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7
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?

<Prev in Thread] Current Thread [Next in Thread>