[Debburn-devel] scsci host num / busno is getting to high at wodim and cdrdao

Thomas Schmitt scdbackup at gmx.net
Thu Jun 25 14:31:57 UTC 2009


Hi,

> we also don't use the numbers - we are using the device files all the
> time but cdrdao and cdrecord/wodim refuse to work if it is a device file
> with busno > x.

Yep. Within the realm of Linux (and FreeBSD at
least) this is purely deliberate.
One has to dig the pit in which one falls.


> we use a lot of commands like "cdrdao disk-info --device
> /dev/sr2" and parse the output in our scripts.

Me try ... cdrdao has a unique way to react on
not loaded tray ... it calls a 12x CD-RW a
"0X - 8X" CD-RW ... it says "CD-RW yes" to a
sequential DVD-RW :
  CD-RW                : yes
  Total Capacity       : 00:00:00 (-150 blocks, -1/-1 MB)
  CD-R medium          : n/a
  Recording Speed      : n/a
  CD-R empty           : no
  Toc Type             : CD-DA or CD-ROM
  Sessions             : 3
  Last Track           : 3
  Appendable           : yes
  Start of last session: 283984 (63:08:34)
  Start of new session : 4500 (01:02:00)

Looks like a pre MMC-3 view on the SCSI specs.
The existing competitor in cdrskin would be

  $ cdrskin -v dev=/dev/sr2 -atip -toc
  ...
  cdrskin: status 3 BURN_DISC_APPENDABLE "There is an incomplete disc in the drive"
  ...
  cdrskin: burn_drive_get_write_speed = 2770  (2.0x)
  Current: DVD-RW sequential recording
  ...
  first: 1 last 3
  track:   1 lba:         0 (        0) 00:02:00 adr: 1 control: 4 mode: 1
  track:   2 lba:    188944 (   755776) 42:01:19 adr: 1 control: 4 mode: 1
  track:   3 lba:    283984 (  1135936) 63:08:34 adr: 1 control: 4 mode: 1
  track:lout lba:    348080 (  1392320) 77:23:05 adr: 1 control: 4 mode: -1


> Maybe I could send you a list of commands that
> we need/use for a ongoing discussion.

I could emulate above cdrdao command if
you tell me what this line shall mean:
  Toc Type             : CD-DA or CD-ROM
With DVD-RW i would tolerate this statement, but
with DVD+RW or BD-RE it is quite unbelievable.

So for modern media we would have to negociate
more plausible output.


Have a nice day :)

Thomas




More information about the Debburn-devel mailing list