[osol-mktg] Re: Most advanced OS on the planet

Dennis Clarke dclarke at blastwave.org
Fri Jun 30 08:12:33 PDT 2006


> Shawn Walker <binarycrusader at gmail.com> wrote:
>
>> Actually that's
>>
>> /usr/bin/cdrw -l
>>
>> at least on my b42a box...
>
> On that box you could also call /usr/bin/cdrecord -scanbus
>
> Jörg
>

Actually cdrecord is now included in Solaris 10 Update 2 but one must be root
to use it.

Here is a comparison of the two tools that I use :

With cdrw I can burn almost anything.  Almost.  I do not need to be root
to use it and I don't need any special libraries ( libscg ) however, it is a
tad simple and can fail at times :

[ scan for devices ]

bash-3.1$ cdrw -l -v
Looking for CD devices...
    Node                   Connected Device                Device type
----------------------+--------------------------------+-----------------
 cdrom0               | SONY     DVD RW DRU-820A  1.0b | CD Reader/Writer
 cdrom1               | PIONEER  DVD-RW  DVR-107D 1.21 | CD Reader/Writer


[ examine the media in the SONY device ]
bash-3.1$ cdrw -v -M -d cdrom0

Device : SONY     DVD RW DRU-820A
Firmware : Rev. 1.0b ( Feb07 ,2006)

Track No. |Type    |Start address
----------+--------+-------------
 1        |Data    |0
Leadout   |Data    |317282

Last session start address: 0


[ blank that media ]
bash-3.1$ cdrw -v -d cdrom0 -b all
Initializing device...done.
Blanking the media (Can take several minutes)...done.


[ examine it again ]
bash-3.1$ cdrw -v -M -d cdrom0

Device : SONY     DVD RW DRU-820A
Firmware : Rev. 1.0b ( Feb07 ,2006)
Media is blank

[ try to burn CD1 from SUSE Enterprise Linux 10 ]
bash-3.1$ cdrw -v -d cdrom0 -i ./SLES-10-CD-x86_64-RC3-CD1.iso
Initializing device...done.
Size required (709224448 bytes) is greater than available space (681986048
bytes).

So that fails.  Possibly for good reason.

Now then, a look at cdrecord.  As the root user only <--- !!!

What version of cdrecord ?

# cdrecord --version
Cdrecord-ProDVD-Clone 2.01.01a09 (i386-pc-solaris2.11) Copyright (C)
1995-2006 Jörg Schilling

[ scan for devices ]

  ####    ####     ##    #    #  #####   #    #   ####
 #       #    #   #  #   ##   #  #    #  #    #  #
  ####   #       #    #  # #  #  #####   #    #   ####
      #  #       ######  #  # #  #    #  #    #       #
 #    #  #    #  #    #  #   ##  #    #  #    #  #    #
  ####    ####   #    #  #    #  #####    ####    ####

# cdrecord -v -scanbus
Cdrecord-ProDVD-Clone 2.01.01a09 (i386-pc-solaris2.11) Copyright (C)
1995-2006 Jörg Schilling
TOC Type: 1 = CD-ROM
Warning: Using USCSI interface.
Using libscg version 'schily-0.8'.
SCSI buffer size: 57344
scsibus0:
        0,0,0     0) 'SONY    ' 'DVD RW DRU-820A ' '1.0b' Removable CD-ROM
        0,1,0     1) 'PIONEER ' 'DVD-RW  DVR-107D' '1.21' Removable CD-ROM
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus1:
        1,0,0   100) 'SEAGATE ' 'ST39173W        ' '6244' Disk
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *
scsibus2:
        2,0,0   200) 'SEAGATE ' 'ST336704LSUN36G ' '032C' Disk
        2,1,0   201) *
        2,2,0   202) *
        2,3,0   203) *
        2,4,0   204) *
        2,5,0   205) *
        2,6,0   206) *
        2,7,0   207) *
scsibus3:
        3,0,0   300) 'SEAGATE ' 'ST336704LSUN36G ' '032C' Disk
        3,1,0   301) *
        3,2,0   302) *
        3,3,0   303) *
        3,4,0   304) *
        3,5,0   305) *
        3,6,0   306) *
        3,7,0   307) *
scsibus4:
        4,0,0   400) 'SEAGATE ' 'ST39102LW       ' '8320' Disk
        4,1,0   401) *
        4,2,0   402) *
        4,3,0   403) *
        4,4,0   404) *
        4,5,0   405) *
        4,6,0   406) *
        4,7,0   407) *
scsibus5:
        5,0,0   500) *
        5,1,0   501) *
        5,2,0   502) *
        5,3,0   503) *
        5,4,0   504) *
        5,5,0   505) 'HP      ' 'C3010           ' '0BA4' Disk
        5,6,0   506) *
        5,7,0   507) *

  You can see that cdrecord seems to find everything on every bus but does
not see the tape drive for some reason.

# mt -f /dev/rmt/0lbn status
DLT4000 tape drive:
   sense key(0x6)= Unit Attention   residual= 0   retries= 0
   file no= 0   block no= 0
# ls -lap /dev/rmt/0lbn
lrwxrwxrwx   1 root     root          61 Jun 30 10:17 /dev/rmt/0lbn ->
../../devices/pci at 0,0/pci1011,24 at 11/pci1000,1000 at 4/st at 4,0:lbn
#

Not that we care about the tape drive, it just seems odd that cdrecord can
detect every SCSI bus and every disk on every SCSI bus but does not report
SCSI tape devices as being present.  Interesting.

Now then .. let's just inquire about that SONY device :

# cdrecord -v -dev=0,0,0 -inq
Cdrecord-ProDVD-Clone 2.01.01a09 (i386-pc-solaris2.11) Copyright (C)
1995-2006 Jörg Schilling
TOC Type: 1 = CD-ROM
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Warning: Using USCSI interface.
Using libscg version 'schily-0.8'.
SCSI buffer size: 57344
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'SONY    '
Identifikation : 'DVD RW DRU-820A '
Revision       : '1.0b'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
#

Let's take a closer look at the media in the SONY drive :

# cdrecord -v -dev=0,0,0 -atip
Cdrecord-ProDVD-Clone 2.01.01a09 (i386-pc-solaris2.11) Copyright (C)
1995-2006 Jörg Schilling
TOC Type: 1 = CD-ROM
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Warning: Using USCSI interface.
Using libscg version 'schily-0.8'.
SCSI buffer size: 57344
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'SONY    '
Identifikation : 'DVD RW DRU-820A '
Revision       : '1.0b'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: CD-RW
Profile: DVD+R/DL
Profile: DVD+R
Profile: DVD+RW
Profile: DVD-R/DL layer jump recording
Profile: DVD-R/DL sequential recording
Profile: DVD-RW sequential overwrite
Profile: DVD-RW restricted overwrite
Profile: DVD-RAM
Profile: DVD-R sequential recording
Profile: DVD-ROM
Profile: CD-RW (current)
Profile: CD-R
Profile: CD-ROM
Profile: Removable Disk
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1114112 = 1088 KB
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 1
  Reference speed: 0
  Is not unrestricted
  Is erasable
  Disk sub type: Ultra High speed Rewritable media (2)
  ATIP start of lead in:  -11076 (97:34/24)
  ATIP start of lead out: 359849 (79:59/74)
  1T speed low: 16 1T speed high: 16
  2T speed low:  8 2T speed high: 24
  power mult factor: 4 5
  recommended erase/write power: 1
  A1 values: 66 4A 99
  A2 values: 38 80 00
  A3 values: 04 C4 A0
Disk type:    Phase change
Manuf. index: 11
Manufacturer: Mitsubishi Chemical Corporation
#

Now LOOK at all that information !  There you see the cdrecord will drag
into every nook and corner and tell you everything you ever wanted to know
but were afraid to ask :-)

Here is what I see right away :

  The device details in mixed English :

    Vendor_info    : 'SONY    '
    Identifikation : 'DVD RW DRU-820A '
    Revision       : '1.0b'

  What media is in this thing right now ?

    Current: CD-RW

  And a real big question, what can this SONY drive handle ?

    Profile: DVD+R/DL       <-- dual layer DVD
    Profile: DVD+R
    Profile: DVD+RW
    Profile: DVD-R/DL layer jump recording
    Profile: DVD-R/DL sequential recording
    Profile: DVD-RW sequential overwrite
    Profile: DVD-RW restricted overwrite
    Profile: DVD-RAM
    Profile: DVD-R sequential recording
    Profile: DVD-ROM
    Profile: CD-RW (current)
    Profile: CD-R
    Profile: CD-ROM
    Profile: Removable Disk

  What can we do with this drive using the current driver ?

    Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
    Driver flags   : MMC-3 SWABAUDIO BURNFREE
    Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R
                     RAW/R16 RAW/R96P RAW/R96R
    Drive buf size : 1114112 = 1088 KB
    Current Secsize: 2048

  That's a pile of information and it gets even better :

    ATIP info from disk:
      Indicated writing power: 1
      Reference speed: 0
      Is not unrestricted
      Is erasable
      Disk sub type: Ultra High speed Rewritable media (2)
      ATIP start of lead in:  -11076 (97:34/24)
      ATIP start of lead out: 359849 (79:59/74)
      1T speed low: 16 1T speed high: 16
      2T speed low:  8 2T speed high: 24
      power mult factor: 4 5
      recommended erase/write power: 1
      A1 values: 66 4A 99
      A2 values: 38 80 00
      A3 values: 04 C4 A0
    Disk type:    Phase change
    Manuf. index: 11
    Manufacturer: Mitsubishi Chemical Corporation

So essentially cdrecord scans the bus and tells me about every SCSI disk and
every ATAPI CDROM/DVD drive.  It also tells me more than I want to know
about the SONY unit, the driver, the options supported, the media size and
speed and the manufacturer.  Well done Jörg Schilling !!

Now let's try to burn that SUSE Linux disk with cdrecord :

# ls -lap /export/nfs/linux/suse
total 4712584
drwxr-xr-x   2 dclarke  csw          512 Jun 30 00:11 ./
drwxr-xr-x   3 dclarke  csw          512 Jun 29 23:24 ../
-rw-r-----   1 dclarke  csw      709224448 Jun 28 19:44
SLES-10-CD-x86_64-RC3-CD1.iso
-rw-r-----   1 dclarke  csw      699164672 Jun 28 21:39
SLES-10-CD-x86_64-RC3-CD2.iso
-rw-r-----   1 dclarke  csw      435552256 Jun 28 22:50
SLES-10-CD-x86_64-RC3-CD3.iso
-rw-r-----   1 dclarke  csw      567654400 Jun 29 00:10
SLES-10-CD-x86_64-RC3-CD4.iso
-rw-r-----   1 dclarke  csw          303 Jun 28 22:56 md5sum.txt
#
#

# time -p cdrecord -v -dev=0,0,0 -sao \
> /export/nfs/linux/suse/SLES-10-CD-x86_64-RC3-CD1.iso
Cdrecord-ProDVD-Clone 2.01.01a09 (i386-pc-solaris2.11) Copyright (C)
1995-2006 Jörg Schilling
TOC Type: 1 = CD-ROM
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Warning: Using USCSI interface.
Using libscg version 'schily-0.8'.
SCSI buffer size: 57344
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'SONY    '
Identifikation : 'DVD RW DRU-820A '
Revision       : '1.0b'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: CD-RW
Profile: DVD+R/DL
Profile: DVD+R
Profile: DVD+RW
Profile: DVD-R/DL layer jump recording
Profile: DVD-R/DL sequential recording
Profile: DVD-RW sequential overwrite
Profile: DVD-RW restricted overwrite
Profile: DVD-RAM
Profile: DVD-R sequential recording
Profile: DVD-ROM
Profile: CD-RW (current)
Profile: CD-R
Profile: CD-ROM
Profile: Removable Disk
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1114112 = 1088 KB
FIFO size      : 33554432 = 32768 KB
Track 01: data   676 MB
Total size:      776 MB (76:57.34) = 346301 sectors
Lout start:      777 MB (76:59/26) = 346301 sectors
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 1
  Reference speed: 0
  Is not unrestricted
  Is erasable
  Disk sub type: Ultra High speed Rewritable media (2)
  ATIP start of lead in:  -11076 (97:34/24)
  ATIP start of lead out: 359849 (79:59/74)
  1T speed low: 16 1T speed high: 16
  2T speed low:  8 2T speed high: 24
  power mult factor: 4 5
  recommended erase/write power: 1
  A1 values: 66 4A 99
  A2 values: 38 80 00
  A3 values: 04 C4 A0
Disk type:    Phase change
Manuf. index: 11
Manufacturer: Mitsubishi Chemical Corporation
Blocks total: 359849 Blocks current: 359849 Blocks remaining: 13548
Starting to write CD/DVD at speed 24 in real SAO mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
BURN-Free is ON.
Turning BURN-Free off
Performing OPC...
Sending CUE sheet...
cdrecord: WARNING: Drive returns wrong startsec (0) using -150
Writing pregap for track 1 at -150
Starting new track at sector: 0
Track 01:  144 of  676 MB written (fifo 100%) [buf  96%]  14.5x.
Track 01:  318 of  676 MB written (fifo 100%) [buf  96%]  18.5x.
Track 01:  391 of  676 MB written (fifo  99%) [buf  96%]  20.0x.
Track 01:  587 of  676 MB written (fifo  99%) [buf  96%]  23.3x.
Track 01:  650 of  676 MB written (fifo 100%) [buf  96%]  24.2x.
Track 01:  676 of  676 MB written (fifo 100%) [buf  96%]  24.1x.
Track 01: Total bytes read/written: 709224448/709224448 (346301 sectors).
Writing  time:  306.983s
Average write speed  15.6x.
Min drive buffer fill was 92%
Fixating...
Fixating time:    7.438s
cdrecord: fifo had 12368 puts and 12368 gets.
cdrecord: fifo was 0 times empty and 8478 times full, min fill was 99%.

real 327.48
user 0.60
sys 18.47
#

Well golly gee.  Looks like cdrecord just moves along at high speed and
has no problems with that ISO image.

How do I know that its really any good though ?

There is a tool called readcd that does a nice job of reading the ISO image
from the drive and dumps it into a file for us.

Thus we can verify the burn was absolutely accurate :

# which readcd
/root/schily/bin/readcd
# readcd -v -dev=0,0,0 meshpoints=20 \
> f=/export/nfs/linux/suse/SLES-10-CD-x86_64-RC3-CD1.verify
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Warning: Using USCSI interface.
Read  speed:  7056 kB/s (CD  40x, DVD  5x).
Write speed:  4234 kB/s (CD  24x, DVD  3x).
Capacity: 346301 Blocks = 692602 kBytes = 676 MBytes = 709 prMB
Sectorsize: 2048 Bytes
Copy from SCSI (0,0,0) disk to file
'/export/nfs/linux/suse/SLES-10-CD-x86_64-RC3-CD1.verify'
end:    346301
addr:    17332 cnt: 28   17332  2170.34
addr:    34636 cnt: 28   34636  3057.69
addr:    51968 cnt: 28   51968  3297.04
addr:    69272 cnt: 28   69272  3520.27
addr:    86576 cnt: 28   86576  3717.85
addr:   103908 cnt: 28  103908  3928.28
addr:   121212 cnt: 28  121212  4114.07
addr:   138544 cnt: 28  138544  4297.85
addr:   155848 cnt: 28  155848  4474.57
addr:   173152 cnt: 28  173152  4637.95
addr:   190484 cnt: 28  190484  4798.69
addr:   207788 cnt: 28  207788  4939.18
addr:   225120 cnt: 28  225120  5105.86
addr:   242424 cnt: 28  242424  5251.72
addr:   259728 cnt: 28  259728  5394.82
addr:   277060 cnt: 28  277060  5533.27
addr:   294364 cnt: 28  294364  5670.17
addr:   311696 cnt: 28  311696  5801.89
addr:   329000 cnt: 28  329000  5932.14
addr:   346301 cnt: 25
Time total: 165.228sec
Read 692602.00 kB at 4191.8 kB/sec.
#

So what ?  So we managed to read back a big pile of data.
Do we really have an accurate burn ?

# grep CD1 /export/nfs/linux/suse/md5sum.txt
SLES-10-CD-x86_64-RC3-CD1.iso           0120df7572ae6006d58ff81d52f93e2f
# /opt/csw/bin/gmd5sum /export/nfs/linux/suse/SLES-10-CD-x86_64-RC3-CD1.iso
0120df7572ae6006d58ff81d52f93e2f 
/export/nfs/linux/suse/SLES-10-CD-x86_64-RC3-CD1.iso
# /opt/csw/bin/gmd5sum /export/nfs/linux/suse/SLES-10-CD-x86_64-RC3-CD1.verify
0120df7572ae6006d58ff81d52f93e2f 
/export/nfs/linux/suse/SLES-10-CD-x86_64-RC3-CD1.verify
#

The answer is a resounding yes.

So what is the deal with cdrw ?

Everything that I have done is with snv_38 on a dual Pentium 400MHz that
I have been using for years.  Its a solid machine.

# uname -a
SunOS titan 5.11 snv_38 i86pc i386 i86pc

I took a look at cdrw for the first time in years and was happily
surprised to see that I seem to be able to write and blank all of
the following :

  (1) DVD-RW  80mm  [ 2.8 GB dual sided for SONY HandyCam ]
  (2) DVD-RW 120mm
  (3) DVD-RW  80mm 1.4GB single sided Verbatim
  (4) DVD-R   80mm
  (5) DVD-R  120mm

The concept of "blanking" means nothing with the following but they write
just fine :

  (5) DVD+R  120mm
  (6) DVD+RW 120mm

I do not know what I can do with this yet :

  (6) DVD+R DL this is the 8.5GB media

The issue here is that sometimes, for rare circumstances I am sure, cdrw
will fail to burn or fail to create an accurate burn while cdrecord just
works.

I can not report anything positive about DVD+R/DL yet .

Dennis

_______________________________________________
opensolaris-mktg mailing list
opensolaris-mktg at opensolaris.org



More information about the opensolaris-mktg mailing list