Menu

'read-cd' command fails under MacOSX 10.4

Help
2005-05-30
2013-04-30
  • Robert Allerstorfer

    Hi,

    I have built cdrdao 1.1.9 under MacOSX 10.4 (see
    http://sourceforge.net/forum/forum.php?thread_id=1183333&forum_id=6284
    ) and can use the 'disk-info' and 'discid' commands successfully with my iBook's MATSHITA CD-RW  CW-8124 combo-drive:

    osx:~ roal$ disktool -u disk2; cdrdao discid
        disk2 device will be unmounted ...
        ***Notifications Complete for type 1
        ***Responding yes to unmount - disk2
        ***Disk Unmounted('disk2')
        Cdrdao version 1.1.9 - (C) Andreas Mueller <andreas@daneb.de>
          SCSI interface library - (C) Joerg Schilling
          Paranoia DAE library - (C) Monty
       
        Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.
       
        Using libscg version 'schily-0.8'
       
        IODVDServices: MATSHITA CD-RW  CW-8124  Rev: DB0D
        Using driver: Generic SCSI-3/MMC - Version 2.0 (options 0x0000)
       
       
        Track   Mode    Flags  Start                Length
        ------------------------------------------------------------
         1      AUDIO   0      00:00:00(     0)     05:32:60( 24960)
         2      AUDIO   0      05:32:60( 24960)     04:09:12( 18687)
        Leadout AUDIO   0      09:41:72( 43647)
       
        PQ sub-channel reading (audio track) is supported, data format is BCD.
        Raw P-W sub-channel reading (audio track) is supported.
        Analyzing track 01 (AUDIO): start 00:00:00, length 05:32:60...
        Found ISRC code.
        Analyzing track 02 (AUDIO): start 05:32:60, length 04:09:12...
        Found ISRC code.
        Found disk catalogue number.
               
        CDDB: Connecting to cddbp://freedb.freedb.org:888 ...
        CDDB: Ok.
            [...]

    As you can see, the "IODVDServices" device will be used successfully (specified in '/private/etc/cdrdao.conf'). The used driver is the default  "generic-mmc".

    However, the 'read-cd' command fails:

    osx:~ roal$ disktool -u disk2; cdrdao read-cd --datafile myimage.bin myimage.toc
    disk2 device will be unmounted ...
    ***Notifications Complete for type 2
    ***Responding yes to unmount - disk2
    ***Disk Unmounted('disk2')
    Cdrdao version 1.1.9 - (C) Andreas Mueller <andreas@daneb.de>
      SCSI interface library - (C) Joerg Schilling
      Paranoia DAE library - (C) Monty

    Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.

    Using libscg version 'schily-0.8'

    IODVDServices: MATSHITA CD-RW  CW-8124  Rev: DB0D
    Using driver: Generic SCSI-3/MMC - Version 2.0 (options 0x0000)

    Reading toc and track data...

    Track   Mode    Flags  Start                Length
    ------------------------------------------------------------
    1      AUDIO   0      00:00:00(     0)     05:32:60( 24960)
    2      AUDIO   0      05:32:60( 24960)     04:09:12( 18687)
    Leadout AUDIO   0      09:41:72( 43647)

    PQ sub-channel reading (audio track) is supported, data format is BCD.
    Raw P-W sub-channel reading (audio track) is supported.
    Copying audio tracks 1-2: start 00:00:00, length 09:41:72 to "myimage.bin"...
    Track 1...
    Found ISRC code.
    00:09:00   <------------  Hangs here

    ?: Error 0. Cannot send SCSI cmd via ioctl

    Any suggestions? Has anybody used cdrdao with this DVD-drive on OS 10.4 successfully?

    Thanks!

     
    • Denis Leroy

      Denis Leroy - 2005-05-31

      Looks like a cdrtools issue. Did you compile cdrdao against the provided scsilib, or did you compile it against an "official" OS-X version of cdrtools (aka cdrecord-devel) ? The latter is recommended, as it may come with OS-specific patches...

      -denis

       
      • Robert Allerstorfer

        Hi Denis,

        thanks for replying and the hint. Yes, cdrdao has been compiled against its own libscg sources (the DarwinPorts package manager I've used did not use any other configure arguments than '--mandir').

        Thus, I have now installed the "cdrtools" bundle (also via DarwinPorts, which does not seem to produce an "official" OS-X version). Similar than providing a '/private/etc/cdrdao.conf' file for cdrdao containing
            read_device: "IODVDServices"
            write_device: "IODVDServices"
        to specify the iBook's CD-Combo-drive (being device IODVDServices), I provided a '/private/etc/default/cdrecord' file for cdrtools' cdrecord and readcd binaries, containing
            CDR_DEVICE=IODVDServices

        cdrecord successfully checks the drive, however readcd also fails to read the Audio-CD's content:

        osx:~ roal$ disktool -u disk2; cdrecord dev=IODVDServices -checkdrive
        disk2 device will be unmounted ...
        ***Notifications Complete for type 1
        ***Responding yes to unmount - disk2
        ***Disk Unmounted('disk2')
        Cdrecord-Clone 2.01 (powerpc-apple-macosx8.1.0) Copyright (C) 1995-2004 Jrg Schilling
        scsidev: 'IODVDServices'
        devname: 'IODVDServices'
        scsibus: -2 target: -2 lun: -2
        Using libscg version 'schily-0.8'.
        Device type    : Removable CD-ROM
        Version        : 0
        Response Format: 2
        Capabilities   :
        Vendor_info    : 'MATSHITA'
        Identifikation : 'CD-RW  CW-8124  '
        Revision       : 'DB0D'
        Device seems to be: Generic mmc2 DVD-ROM.
        Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
        Driver flags   : MMC-2 SWABAUDIO BURNFREE
        Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R

        osx:~ roal$ disktool -u disk2; readcd f=mycd
        disk2 device will be unmounted ...
        ***Notifications Complete for type 1
        ***Responding yes to unmount - disk2
        ***Disk Unmounted('disk2')
        Read  speed:  4233 kB/s (CD  24x, DVD  3x).
        Write speed:  4233 kB/s (CD  24x, DVD  3x).
        Capacity: 43647 Blocks = 87294 kBytes = 85 MBytes = 89 prMB
        Sectorsize: 2048 Bytes
        Copy from SCSI (0,0,0) disk to file 'mycd'
        end:     43647
        readcd: Input/output error. read_g1: scsi sendcmd: no error
        CDB:  28 00 00 00 00 00 00 00 10 00
        status: 0x2 (CHECK CONDITION)
        Sense Bytes: F0 00 05 00 00 00 00 0A 00 00 00 00 64 00 00 00 00 00
        Sense Key: 0x5 Illegal Request, Segment 0
        Sense Code: 0x64 Qual 0x00 (illegal mode for this track) Fru 0x0
        Sense flags: Blk 0 (valid)
        resid: 32768
        cmd finished after 2.713s timeout 40s
        readcd: Input/output error. Cannot read source disk
        readcd: Retrying from sector 0.
        .~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~+~~~-~~~
        readcd: Input/output error. Error on sector 0 not corrected. Total of 1 errors.

        Time total: 54.060sec
        Read 0.00 kB at 0.0 kB/sec.
        Max corected retry count was 0 (limited to 128).
        The following 1 sector(s) could not be read correctly:
        0

        So it seems I first have to investigate to get cdrtools' libscg driver working on this system, before looking into cdrdao. Maybe the MATSHITA CW-8124 isn't supported, or the driver does not work under OS X 10.4?

        rob.

         

Log in to post a comment.