Hello ALUG,
I'm having problems with a CD-RW drive.
I haven't tried to use the drive until now (except when I used it to install the OS, Debian sarge net-install disc).
I was just getting round to designing the backup procedure for the machine and thought it would be neat if it automatically wrote the data to a CD.
But I've run into problems with the drive itself:
# cdrecord -scanbus
Cdrecord-Clone 2.01a34 (i686-pc-linux-gnu) Copyright (C) 1995-2004 JĀ°Zrg 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.
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver. cdrecord: For possible targets try 'cdrecord -scanbus'. 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 .
Hmm, so I tried,
# cat /etc/fstab # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /dev/hda2 none swap sw 0 0 /dev/hda1 / ext3 defaults,errors=remount-ro 0 1 /dev/hdb1 /home ext3 defaults 0 2 /dev/hdb2 /var ext3 defaults 0 2 /dev/hdc /media/cdrom iso9660 ro,user,noauto 0 0 /dev/fd0 /media/floppy auto rw,user,noauto 0 0 /dev/hdc /cdrom iso9660 ro,user,noauto 0 0
OK, so I tried mounting an ordinary CD-ROM
# mount /cdrom mount: wrong fs type, bad option, bad superblock on /dev/hdc, or too many mounted file systems
Hrmmm, and # dmesg | grep ATAPI hdc: LITE-ON LTR-16102B, ATAPI CD/DVD-ROM drive hdc: ATAPI 40X CD-ROM CD-R/RW drive, 2048kB Cache, DMA
And some excerpts from # lsmod isofs 32184 0 sg 34848 0 scsi_mod 109112 1 sg ide_cd 38020 0 cdrom 34720 1 ide_cd ide_disk 15872 6 ide_generic 1408 0 [permanent] ide_detect 1408 0 ide_core 141804 5 ide_cd,ide_disk,ide_generic,ide_detect,piix
I'm not very good with hardware. Does anyone know what's wrong?
Thanks very much, Richard
On 2004-10-03 15:07:10 +0100 Richard Lewis richardlewis@fastmail.co.uk wrote:
# cdrecord -scanbus
The problem is that cdrecord is a pig, IMO. It defaults to SCSI and your drive is ATAPI, like most. Try: cdrecord 'dev=atapi:' -scanbus
Then you will see the a,b,c numbers and can add those to your dev line for the burn command.
Roll on libburn-based software with sane command line syntax and some sensible defaults. Anyone fancy debugging it and writing some? http://icculus.org/burn/
On Sunday, October 3, 2004, at 10:41 PM, MJ Ray wrote:
On 2004-10-03 15:07:10 +0100 Richard Lewis richardlewis@fastmail.co.uk wrote:
# cdrecord -scanbus
The problem is that cdrecord is a pig, IMO. It defaults to SCSI and your drive is ATAPI, like most. Try: cdrecord 'dev=atapi:' -scanbus
Then you will see the a,b,c numbers and can add those to your dev line for the burn command.
I tried this but I got: # cdrecord 'dev=atapi:' -scanbus scsidev: 'atapi:' devname: 'atapi' scsibus: -1 target: -1 lun: -1 Warning: Open by 'devname' is unintentional and not supported. cdrecord: No such file or directory. Cannot open 'atapi'. Cannot open SCSI driver. cdrecord: For possible targets try 'cdrecord -scanbus'. 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 .
I've been having a read around; do I need to:
# modprobe ide-scsi
Cheers, Richard
PS. its debian "testing" with kernel 2.6.3.........
On 2004-10-04 10:31:41 +0100 Richard Lewis richardlewis@fastmail.co.uk wrote:
I tried this but I got: # cdrecord 'dev=atapi:' -scanbus
This is very odd. The version packaged in Debian testing (2.0a34) is later than the version which works on my other system (2.0a31). The Debian one seems to be case-sensitive, while the one I compiled isn't. Try ATAPI: instead of atapi: and see how that goes.
Otherwise, check this:
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
The output of that command should tell you acceptable names.
I've been having a read around; do I need to: # modprobe ide-scsi
Not with 2.6, you shouldn't. You can try that way, as more people know it, but translating SCSI into IDE always seems like an extra thing to go wrong to me.
On Monday, October 4, 2004, at 11:08 AM, MJ Ray wrote:
On 2004-10-04 10:31:41 +0100 Richard Lewis richardlewis@fastmail.co.uk wrote:
I tried this but I got: # cdrecord 'dev=atapi:' -scanbus
This is very odd. The version packaged in Debian testing (2.0a34) is later than the version which works on my other system (2.0a31). The Debian one seems to be case-sensitive, while the one I compiled isn't. Try ATAPI: instead of atapi: and see how that goes.
Aha! That got it!
Thanks for your help. Richard
On Monday, October 4, 2004, at 11:13 AM, Richard Lewis wrote:
On Monday, October 4, 2004, at 11:08 AM, MJ Ray wrote:
On 2004-10-04 10:31:41 +0100 Richard Lewis richardlewis@fastmail.co.uk wrote:
I tried this but I got: # cdrecord 'dev=atapi:' -scanbus
This is very odd. The version packaged in Debian testing (2.0a34) is later than the version which works on my other system (2.0a31). The Debian one seems to be case-sensitive, while the one I compiled isn't. Try ATAPI: instead of atapi: and see how that goes.
Aha! That got it!
Um, OK its still not quite working.
When I go: # cdrecord 'dev=ATAPI:' -speed=2 disc1.iso cdrecord: No write mode specified. cdrecord: Asuming -tao mode. cdrecord: Future versions of cdrecord may have different drive dependent defaults. cdrecord: Continuing in 5 seconds... Cdrecord-Clone 2.01a34 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jrg 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: 'ATAPI:' devname: 'ATAPI' scsibus: -1 target: -1 lun: -1 Warning: Using ATA Packet interface. Warning: The related Linux kernel interface code seems to be unmaintained. Warning: There is absolutely NO DMA, operations thus are slow. Using libscg version 'schily-0.8'. cdrecord: Cannot do inquiry for CD/DVD-Recorder. cdrecord: Input/output error. test unit ready: scsi sendcmd: fatal error CDB: 00 E0 00 00 00 00 cmd finished after 0.000s timeout 40s
and, # cdrecord 'dev=ATAPI:' -scanbus Cdrecord-Clone 2.01a34 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jrg 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: 'ATAPI:' devname: 'ATAPI' scsibus: -1 target: -1 lun: -1 Warning: Using ATA Packet interface. Warning: The related Linux kernel interface code seems to be unmaintained. Warning: There is absolutely NO DMA, operations thus are slow. Using libscg version 'schily-0.8'. scsibus0: 0,0,0 0) 'LITE-ON ' 'LTR-16102B ' 'OS05' 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) *
Any ideas?
Cheers, Richard
On Monday, October 4, 2004, at 05:17 PM, Richard Lewis wrote:
On Monday, October 4, 2004, at 11:13 AM, Richard Lewis wrote:
On Monday, October 4, 2004, at 11:08 AM, MJ Ray wrote:
On 2004-10-04 10:31:41 +0100 Richard Lewis richardlewis@fastmail.co.uk wrote:
I tried this but I got: # cdrecord 'dev=atapi:' -scanbus
This is very odd. The version packaged in Debian testing (2.0a34) is later than the version which works on my other system (2.0a31). The Debian one seems to be case-sensitive, while the one I compiled isn't. Try ATAPI: instead of atapi: and see how that goes.
Aha! That got it!
Um, OK its still not quite working.
Aha. Sorry, I've just found it: cdrecord -dev=ATAPI:0,0,0
Thanks for your help Richard