[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Configuring an atapi CD-RW under Debian



I'm running Debian Sarge and have a CD-RW (atapi) drive installed that I
want to be able to record to.   As I understand it from the various help
pages around on the internet, I need to stop it being recognised by the
system as IDE (it is actually on hdc), and use a SCSI emulator.

I've installed the cdrecord package, and attempted various changes to config
files, to start with I got nothing from the output of cdrecord -scanbus, but
now it appears to show the drive up correctly, but I still can't record
anything.   More to the point, the 'cdrecord' command seems to solely deal
with writing music tracks or ISO images - I'd really like to mount the CD-RW
as an proper, ordinary filesystem to do backups.  Can I do that and what do
I need to specify as the filesystem?

Plenty of output from various commands / config below if you can point me in
the right direction.

Thanks in advance,
William



platypus:/dev# dmesg | grep CD
hdc: SONY CD-RW CRX230E, ATAPI CD/DVD-ROM drive
  Vendor: SONY      Model: CD-RW  CRX230E    Rev: QYS1
  Type:   CD-ROM                             ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Uniform CD-ROM driver Revision: 3.12
Unable to identify CD-ROM format.
Unable to identify CD-ROM format.
Unable to identify CD-ROM format.
Unable to identify CD-ROM format.
Unable to identify CD-ROM format.

Lines I added to /etc/modules.conf:

options ide-cd ignore=hdc               # tell the ide-cd module to ignore
hdb
alias scd0 sr_mod                       # load sr_mod upon access of scd0
pre-install sg modprobe ide-scsi        # before sg, load ide-scsi
pre-install sr_mod modprobe ide-scsi    # before sr_mod, load ide-scsi

platypus:/dev# ls -l cdrom
lrwxrwxrwx    1 root     root            9 Apr 24 23:42 cdrom -> /dev/scd0
platypus:/dev# ls -l scd0
brw-rw----    1 root     cdrom     11,   0 Mar 10 10:40 scd0

(typing eject /dev/scd0 works, I can also read from an ordinary CD-ROM if I
mount it)

platypus:/home/william# cdrecord -scanbus
Cdrecord-Clone 2.01a27 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg
Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of
cdrecord
      and thus may have bugs that are not present in the original version.
      Please send bug reports and support requests to
<cdrtools@packages.debian.org>.
      The original author should not be bothered with problems of this
version.

Linux sg driver version: 3.1.25
Using libscg version 'schily-0.8'.
scsibus0:
        0,0,0     0) 'SONY    ' 'CD-RW  CRX230E  ' 'QYS1' Removable CD-ROM
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *


Attempting to blank an inserted CD-RW:

platypus:/home/william# cdrecord blank=all
Cdrecord-Clone 2.01a27 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg
Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of
cdrecord
      and thus may have bugs that are not present in the original version.
      Please send bug reports and support requests to
<cdrtools@packages.debian.org>.
      The original author should not be bothered with problems of this
version.

scsidev: '1,5,0'
scsibus: 1 target: 5 lun: 0
Linux sg driver version: 3.1.25
cdrecord: No such file or directory. Cannot open '/dev/pg5'. Cannot open
SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are
root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
cdrecord:
cdrecord: For more information, install the cdrtools-doc
cdrecord: package and read /usr/share/doc/cdrecord/README.ATAPI.setup .



Here's some more output about my system:

platypus:/home/william# cdrecord dev=help

Cdrecord-Clone 2.01a27 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg
Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of
cdrecord
      and thus may have bugs that are not present in the original version.
      Please send bug reports and support requests to
<cdrtools@packages.debian.org>.
      The original author should not be bothered with problems of this
version.

Supported SCSI transports for this platform:

Transport name:         sg
Transport descr.:       Generic transport independent SCSI
Transp. layer ind.:
Target specifier:       bus,target,lun
Target example:         1,2,0
SCSI Bus scanning:      supported
Open via UNIX device:   not supported

Transport name:         pg
Transport descr.:       SCSI transport for ATAPI over Parallel Port
Transp. layer ind.:
Target specifier:       bus,target,lun
Target example:         1,2,0
SCSI Bus scanning:      supported
Open via UNIX device:   not supported

Transport name:         ATA
Transport descr.:       ATA Packet specific SCSI transport
Transp. layer ind.:     ATAPI:
Target specifier:       bus,target,lun
Target example:         ATAPI:1,2,0
SCSI Bus scanning:      supported
Open via UNIX device:   not supported

Transport name:         ATA
Transport descr.:       ATA Packet specific SCSI transport using sg
interface
Transp. layer ind.:     ATA:
Target specifier:       bus,target,lun
Target example:         1,2,0
SCSI Bus scanning:      supported
Open via UNIX device:   not supported

Transport name:         RSCSI
Transport descr.:       Remote SCSI
Transp. layer ind.:     REMOTE:
Target specifier:       rscsi@host:bus,target,lun
Target example:         REMOTE:rscsi@host:1,2,0
SCSI Bus scanning:      supported
Open via UNIX device:   not supported




Reply to: