Web lists-archives.com

Re: Playing or Ripping UDF CDs Under jessie




"Thomas Schmitt" <scdbackup@xxxxxxx> writes:

> First issue will be to clarify the true nature of this CD medium.
> Audio CDs (CD-DA) are recorded without any filesystem. There are "tracks"
> which usually each contain one piece of music. Tracks may be grouped
> by sessions. But that's rare with commercially mastered CDs.
> 
> There are hybrid formats somewhere between CD-DA and CD-ROM which usually
> has ISO 9660 and/or UDF filesystems. The first track might contain the
> filesystem and further tracks contain audio or video streams.
> 
> Please run one of
> 
>   wodim -v dev=/dev/sr0 -toc
> 
>   cdrskin -v dev=/dev/sr0 -toc
> 
> A commercial audio CD-DA will show some tracks like:
> 
>   first: 1 last 10
>   track:   1 lba:         0 (        0) 00:02:00 adr: 1 control: 0 mode: 0
>   track:   2 lba:     23260 (    93040) 05:12:10 adr: 1 control: 0 mode: 0
>   track:   3 lba:     45067 (   180268) 10:02:67 adr: 1 control: 0 mode: 0
>   track:   4 lba:     61932 (   247728) 13:47:57 adr: 1 control: 0 mode: 0
>   track:   5 lba:     81697 (   326788) 18:11:22 adr: 1 control: 0 mode: 0
>   track:   6 lba:    101667 (   406668) 22:37:42 adr: 1 control: 0 mode: 0
>   track:   7 lba:    125462 (   501848) 27:54:62 adr: 1 control: 0 mode: 0
>   track:   8 lba:    143957 (   575828) 32:01:32 adr: 1 control: 0 mode: 0
>   track:   9 lba:    164232 (   656928) 36:31:57 adr: 1 control: 0 mode: 0
>   track:  10 lba:    185992 (   743968) 41:21:67 adr: 1 control: 0 mode: 0
>   track:lout lba:    202362 (   809448) 45:00:12 adr: 1 control: 0 mode: 
> -1
> 
> A CD-ROM with several data tracks and sessions:
> 
>   first: 1 last 4
>   track:   1 lba:         0 (        0) 00:02:00 adr: 1 control: 4 mode: 1
>   track:   2 lba:     75614 (   302456) 16:50:14 adr: 1 control: 4 mode: 1
>   track:   3 lba:    102249 (   408996) 22:45:24 adr: 1 control: 4 mode: 1
>   track:lout lba:    121984 (   487936) 27:08:34 adr: 1 control: 4 mode: 
> -1
>   track:   4 lba:    128884 (   515536) 28:40:34 adr: 1 control: 4 mode: 1
>   track:lout lba:    132116 (   528464) 29:23:41 adr: 1 control: 4 mode: 
> -1
> 
> Whether a track is in CD-DA or CD-ROM format does not depend on the CD 
> medium
> type CD-R, CD-RW, readily pressed CD.

	Okay.  What we got was surprisingly similar between a normal iso9660 audio cd that will play on any
functioning CD player since 1983 and the mystery format CD .  Here is the output from a normal music CD.

scsidev: '/dev/sr1'
devname: '/dev/sr1'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Wodim version: 1.1.11
SCSI buffer size: 64512
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
communication breaks or freezes immediately after that.
TOC Type: 1 = CD-ROM
Device type    : Removable CD-ROM
Version        : 5
Response Format: 2
Capabilities   : 
Vendor_info    : 'SONY    '
Identification : 'CD-RW  CRX140E  '
Revision       : '1.0n'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-2 SWABAUDIO 
Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R
Drive buf size : 4183808 = 4085 KB
Drive DMA Speed: 21942 kB/s 124x CD 15x DVD
Current Secsize: 2048
first: 1 last 17
track:   1 lba:         0 (        0) 00:02:00 adr: 1 control: 0 mode: 0
track:   2 lba:     19142 (    76568) 04:17:17 adr: 1 control: 0 mode: 0

all the way up to 

track:  17 lba:    351017 (  1404068) 78:02:17 adr: 1 control: 4 mode: 1
track:lout lba:    351785 (  1407140) 78:12:35 adr: 1 control: 4 mode: -1

This is the output on the same drive from the mystery CD.

scsidev: '/dev/sr1'
devname: '/dev/sr1'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Wodim version: 1.1.11
SCSI buffer size: 64512
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
communication breaks or freezes immediately after that.
TOC Type: 1 = CD-ROM
Device type    : Removable CD-ROM
Version        : 5
Response Format: 2
Capabilities   : 
Vendor_info    : 'SONY    '
Identification : 'CD-RW  CRX140E  '
Revision       : '1.0n'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-2 SWABAUDIO 
Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R
Drive buf size : 4183808 = 4085 KB
Drive DMA Speed: 21504 kB/s 122x CD 15x DVD
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 5
  Is not unrestricted
  Is not erasable
  Disk sub type: Medium Type A, high Beta category (A+) (3)
  ATIP start of lead in:  -11634 (97:26/66)
  ATIP start of lead out: 359846 (79:59/71)
Disk type:    Short strategy type (Phthalocyanine or similar)
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation
first: 1 last 20
track:   1 lba:         0 (        0) 00:02:00 adr: 1 control: 0 mode: 0
track:   2 lba:     17271 (    69084) 03:52:21 adr: 1 control: 0 mode: 0

all the way up to

track:  19 lba:    280452 (  1121808) 62:21:27 adr: 1 control: 0 mode: 0
track:  20 lba:    293350 (  1173400) 65:13:25 adr: 1 control: 0 mode: 0
track:lout lba:    306751 (  1227004) 68:12:01 adr: 1 control: 0 mode: -1
> 
> > I got a spew of errors relating to low-level disk issues such as
> > sector numbers, etc and it finally gave up and never mounted.
> 
> Mind to share a few examples of such messages ?

Not a bit.  Here are 7 lines minus all the uninteresting stuff like pid number, etc:

sr 1:0:1:0: [sr1]  Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sr 1:0:1:0: [sr1]  Sense Key : Illegal Request [current] 
 Info fld=0x506a2
sr 1:0:1:0: [sr1]  <<vendor>> ASC=0xc6 ASCQ=0x2ASC=0xc6 ASCQ=0x2
sr 1:0:1:0: [sr1] CDB: Read(10): 28 00 00 05 06 a2 00 00 02 00
 end_request: I/O error, dev sr1, sector 1317512
Buffer I/O error on device sr1, logical block 164689

	It looks like it probably can read normally if one skips some of the control sectors.

	Thanks.  This is interesting.