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

Observations with cdrecord-2.01.01a64 -minfo



Hi Joerg,

while exploring the behavior of cdrecord -minfo
i noticed some problems and some output which i
deem not totally consistent with the user's
perception of media type and state.

Potential bugs:

- Option -eject prevents -minfo output.

- "Phys disk size" gets computed from BD Disc
  Type Identifier strings "BDR", "BDW". 

Unexpected drive behavior:

- (Pseudo-) BD-ROM track size larger than read
  capacity.

Odd statements forwarded from MMC conformant drive
replies:

- Is "incomplete/appendable BD-ROM" intentional ?

- Shall one really declare overwriteable media
  "erasable" and "complete" ?


In detail:
------------------------------------------------

This run with -minfo -eject ends quite early:

  # cdrecord-2.01.01a64  dev=5,0,0 -minfo -eject
  Cdrecord-ProDVD-ProBD-Clone 2.01.01a64 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2009 Jörg Schilling
  scsidev: '5,0,0'
  scsibus: 5 target: 0 lun: 0
  Linux sg driver version: 3.5.27
  Using libscg version 'schily-0.9'.
  Device type    : Removable CD-ROM
  Version        : 0
  Response Format: 2
  Capabilities   : 
  Vendor_info    : 'HL-DT-ST'
  Identifikation : 'BDDVDRW GGC-H20L'
  Revision       : '1.03'
  Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
  Using generic SCSI-3/mmc-3 DVD+R driver (mmc_dvdplusr).
  Driver flags   : NO-CD DVD MMC-3 SWABAUDIO BURNFREE 
  Supported modes: PACKET SAO LAYER_JUMP
  #

It seems to happen with any type of media.

The same run without -eject tells -minfo lines:

  # cdrecord-2.01.01a64  dev=5,0,0 -minfo
  Cdrecord-ProDVD-ProBD-Clone 2.01.01a64 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2009 Jörg Schilling
  scsidev: '5,0,0'
  scsibus: 5 target: 0 lun: 0
  ...
  Driver flags   : NO-CD DVD MMC-3 SWABAUDIO BURNFREE 
  Supported modes: PACKET SAO LAYER_JUMP
  Mounted media class:      DVD
  Mounted media type:       DVD+R
  Disk Is not erasable
  data type:                standard
  disk status:              complete
  session status:           complete
  BG format status:         none
  first track:              1
  number of sessions:       154
  first track in last sess: 154
  last track in last sess:  154
  Disk Is unrestricted
  Disk type: DVD, HD-DVD or BD

  Track  Sess Type   Start Addr End Addr   Size
  ==============================================
      1     1 Data   0          104879     104880
      2     2 Data   106928     113871     6944
  ...
    153   153 Data   1403424    1404223    800
    154   154 Data   1406272    1416159    9888

  Last session start address:         1406272
  Last session leadout start address: 1416160
  #


---------------------------------------------------

BD-R media causes cdrecord to complain

  WARNING: Phys disk size 4452354 differs from rzone size 12219392! Prerecorded disk?
  WARNING: Phys start: 25088 Phys end 4477441

This happens in both profile roles: BD-ROM and
BD-R. It does not happen with BD-RE media in
the profile role as BD-RE, but it happens as
BD-ROM. (BD-ROM profile reported by BD-ROM drive.)

Can it be that this is a misperception from
the BD specific reply of 51h READ DISC INFORMATION
as described in MMC-5 6.23.3.3.1 Format Code 00h:
  byte  8 size 3 : Disc Type Identifier =
                   BDO for BD-ROM, BDW for BD-RE,
                   BDR for BD-R
  byte 11 size 1 : Size/Class/Version
                  (no information available)
in comparison to the DVD specific reply as
described in 6.23.3.2.1 Format Code 00h:
  byte  8  00h
  byte  9  (MSB)--------------------------------------
  byte 10  | End Physical Sector Number of Data Area |
  byte 11  (LSB)--------------------------------------

'D' * (1 << 16) + 'R' * (1 << 8) + 1 = 4477441
                         + 1 - 25088 = 4452354 

These are the sizes cdrecord warns about.


With BD-RE in ROM drive as BD-ROM i see:

  WARNING: Phys start: 25344 Phys end 4478722

'D' * (1 << 16) + 'W' * (1 << 8) + 2 = 4478722


A similar message appears with DVD-RAM
  WARNING: Phys disk size 2314080 differs from rzone size 2236704! Prerecorded disk?
  WARNING: Phys start: 200704 Phys end 2514783
  ...
  Mounted media type:       DVD-RAM
  ...
  disk status:              illegal

MMC-5 6.23.3.2.1 Format Code 00h (for DVD):
"The End Physical Sector Number of Data Area field specifies the last sector
 of the user data in the last layer of the media. For DVD-RAM, the End
 Physical Sector Number of Data Area is the PSN for the last spare sector of
 the last zone."

So it seems normal, that DVD-RAM has differing
values here.

                     
---------------------------------------------------

With a closed BD-R, i get from cdrecord

  Mounted media type:       BD-ROM
  ...
  disk status:              complete
  session status:           complete
  ...
      1     1 Data   0          12219391   12219392
  ...
  Last session leadout start address: 12219392

So far so good. But the drive tells two sizes:
52h READ TRACK INFORMATION reports      12219392
25h READ CAPACITY reports as last block 11217567
43h READ TOC/PMA/ATIP Form 0 reports    11217568

All 12219392 blocks are readable from media.

Nevertheless there is a better info about the
really written size. So i propose to put out an
additional minfo line with -ROM profiles.
Like:

  Last session start address:         0         
  Last session leadout start address: 12219392  
  Read capacity:                      11217568  


---------------------------------------------------

A BD-R in a BD-ROM drive appears as "BD-ROM"
which is "incomplete/appendable":

  Mounted media class:      BD
  Mounted media type:       BD-ROM
  Disk Is not erasable
  disk status:              incomplete/appendable
  session status:           empty
  ...
  number of sessions:       5
  ...
      4     4 Data   4379200    6595263    2216064
      5     5 Blank  6595264    12219391   5624128

  Last session start address:         4379200
  Last session leadout start address: 6595264

This happens on a DVD-burner/BD-ROM combo drive
  Vendor_info    : 'HL-DT-ST'
  Identifikation : 'BDDVDRW GGC-H20L'
  Revision       : '1.03'
with an appendable BD-R inserted.
I have no CD/DVD combo drive and cdrecord refuses
-minfo on my DVD-ROM drive. So i cannot test whether
this happens to appendable DVD media too if they
appear as DVD-ROM.

The status parameters are correct. But is it
consistent to show them with an alleged BD-ROM ?
Shouldn't it rather be:
  disk status:              complete
  session status:           complete
  first track:              1
  number of sessions:       4
  first track in last sess: 4
  last track in last sess:  4
  ...
  number of sessions:       4
  ...
      4     4 Data   4379200    6595263    2216064

  Last session start address:         4379200
  Last session leadout start address: 6595264

---------------------------------------------------

-minfo reports with overwriteable media (DVD+RW,
DVD-RAM, formatted DVD-RW, BD-RE) literally
what 51h READ DISC INFORMATION replies:

  Disk Is erasable
  ...
  disk status:              complete
  session status:           complete
  ...
      1     1 Data   0          2295103    2295104

  Last session start address:         0
  Last session leadout start address: 2295104

This complies with MMC but seems inconsistent
from the view of a burn willing user:

  cdrecord -minfo refuses on read-only drives.
  So it is obviously oriented to the write
  capabilities and not so much to read capabilities
  of the media.

  There is no BLANK command for DVD+RW and one can
  write them from scratch without any precautions
  (at least from user view).

So shouldn't -minfo be rather like:

  Disk Is not erasable
  ...
  disk status:              empty
  session status:           empty
  ...
      1     1 Blank  0          2295103    2295104   

  Next writable address:              0         
  Remaining writable size:            2295104   

---------------------------------------------------

Tested media:

CD-R    blank, appendable, closed, data, audio
CD-RW   blank, appendable, closed, data, audio
DVD+R   blank, appendable, closed
DVD+RW  formatted
DVD-R   blank, closed
DVD-RW  blank, appendable, restricted overwrite
DVD-RAM formatted
BD-R    blank, appendable, appendable in BD-ROM drive,
        closed
BD-RE   formatted

If you want to see particular outputs, feel free
to ask.

---------------------------------------------------


Have a nice day :)

Thomas


Reply to: