[Gllug] CD-Rom writing

Russell Howe rhowe at siksai.co.uk
Wed May 4 14:45:00 UTC 2005


On Wed, May 04, 2005 at 10:02:00AM +0100, Peter Childs wrote:
> the strange thing is both ide-scsi and ide_cd are loaded

This is probably going to cause problems (although maybe not..)

With 2.6.x you can write to the CD without using the ide-scsi emulation
for ATAPI devices (which is the Linux equivalent of using ASPI in
Windows). So, with 2.6.x you will probably get most joy by removing any
'hdX=ide-scsi' kernel command line parameters you may have left over
from 2.4.x (check your bootloader's configuration for 'append' lines
etc), and using cdrecord's direct ATAPI support.

There are 3 ways of invoking cdrecord you can try if you're not using
ide-scsi (which I would avoid if it works without it):

$ cdrecord dev=ATAPI -scanbus
$ cdrecord dev=ATA -scanbus
$ cdrecord dev=/dev/hd$device -scanbus

$ uname -a
Linux paobu 2.6.11.6-paobu #1 SMP Thu Apr 7 00:32:26 BST 2005 i686 GNU/Linux

$ /usr/bin/cdrecord dev=ATAPI -scanbus
Cdrecord-Clone 2.01.01a01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Joerg 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 at packages.debian.org>.
      The original author should not be bothered with problems of this version.

cdrecord: Warning: Running on Linux-2.6.11.6-paobu
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
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 'ubuntu-0.8ubuntu1'.
cdrecord: Warning: using inofficial version of libscg (ubuntu-0.8ubuntu1
'@(#)scsitransp.c      1.91 04/06/17 Copyright 1988,1995,2000-2004 J. Schilling').
scsibus0:
        0,0,0     0) 'SONY    ' 'DVD RW DRU-510A ' '1.0f' Removable CD-ROM

(other IDs skipped)

Note the warning about no DMA with dev=ATAPI.

With dev=ATA:

$ /usr/bin/cdrecord dev=ATA -scanbus
Cdrecord-Clone 2.01.01a01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Joerg 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 at packages.debian.org>.
      The original author should not be bothered with problems of this version.

cdrecord: Warning: Running on Linux-2.6.11.6-paobu
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or
Solaris.
scsidev: 'ATA'
devname: 'ATA'
scsibus: -2 target: -2 lun: -2
Warning: Using badly designed ATAPI via /dev/hd* interface.
Linux sg driver version: 3.5.27
Using libscg version 'ubuntu-0.8ubuntu1'.
cdrecord: Warning: using inofficial version of libscg (ubuntu-0.8ubuntu1
'@(#)scsitransp.c      1.91 04/06/17 Copyright 1988,1995,2000-2004 J. Schilling').
scsibus0:
        0,0,0     0) 'SONY    ' 'DVD RW DRU-510A ' '1.0f' Removable CD-ROM
(other IDs skipped)

Doesn't complain half as much.

With dev=/dev/hda:
$ /usr/bin/cdrecord dev=/dev/hda -scanbus
Cdrecord-Clone 2.01.01a01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Joerg 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 at packages.debian.org>.
      The original author should not be bothered with problems of this version.

cdrecord: Warning: Running on Linux-2.6.11.6-paobu
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or
Solaris.
scsidev: '/dev/hda'
devname: '/dev/hda'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Using libscg version 'ubuntu-0.8ubuntu1'.
cdrecord: Warning: using inofficial version of libscg (ubuntu-0.8ubuntu1
'@(#)scsitransp.c      1.91 04/06/17 Copyright 1988,1995,2000-2004 J. Schilling').
scsibus0:
        0,0,0     0) 'SONY    ' 'DVD RW DRU-510A ' '1.0f' Removable CD-ROM
(other IDs skipped)

Gives the same result as with dev=ATA. Personally I'd be tempted to
ignore Joerg's complaints about "open by devname is unintentional" and
use that method. If he doesn't want people to do it, he's quite able to
remove the code.

This cdrecord is from Debian sid - I guess the packages are identical to
the ubuntu ones - cdrecord doesn't exactly depend on much that would be
specific to one distribution or another..

See if any of that helps..

if dev=ATA or dev=ATAPI works, then you need to do, for example,
dev=ATAPI:0,0,0 to specify the drive.

-- 
Russell Howe       | Why be just another cog in the machine,
rhowe at siksai.co.uk | when you can be the spanner in the works?
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list