Kyle McDonald <[EMAIL PROTECTED]> wrote:

>
> I'm trying to use cdrecord to burn .iso files I create on OpenSolaris.
>
> Some need to go on DVD's even when they're not bigger than a CD. Others 
> need to go on CD's no matter what.
>
> I've been tasked with writing a front-end script for users to use to 
> burn the ISO's, and I'd like to have the script verify that the type of 
> media in the drive matches the requested type before I burn it.
>
> Since it's a multi-user machine with 4 recorders, we keep the drives 
> loaded with blank media, but sometimes one drive is left with the wrong 
> blank media, and a CD ISO is burned to DVD (or the other way around) by 
> mistake.
>

The best idea is to call cdrecord -minfo (media information)

 cdrecord -minfo  
Cdrecord-ProDVD-ProBD-Clone 2.01.01a38 (i386-pc-solaris2.11) Copyright (C) 
1995-2008 Jörg Schilling
scsidev: 'USCSI:1,0,0'
devname: 'USCSI'
scsibus: 1 target: 0 lun: 0
Warning: Using USCSI interface.
Using libscg version 'schily-0.9'.
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   : 
Vendor_info    : 'HL-DT-ST'
Identifikation : 'DVD-RAM GSA-H55N'
Revision       : '1.02'
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
Mounted media class:      DVD
Mounted media type:       DVD+R
Disk Is not erasable
data type:                standard
disk status:              empty
session status:           empty
BG format status:         none
first track:              1
number of sessions:       1
first track in last sess: 1
last track in last sess:  1
Disk Is unrestricted
Disk type: DVD, HD-DVD or BD

Track  Sess Type   Start Addr End Addr   Size
==============================================
    1     1 Blank  0          2295103    2295104

Next writable address:              0
Remaining writable size:            2295104

-----> An empty DVD+R

cdrecord -minfo dev=USCSI:2,0,0
Cdrecord-ProDVD-ProBD-Clone 2.01.01a38 (i386-pc-solaris2.11) Copyright (C) 
1995-2008 Jörg Schilling
scsidev: 'USCSI:2,0,0'
devname: 'USCSI'
scsibus: 2 target: 0 lun: 0
Warning: Using USCSI interface.
Using libscg version 'schily-0.9'.
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   : 
Vendor_info    : 'MATSHITA'
Identifikation : 'BD-MLT SW-5582  '
Revision       : 'BDB2'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc-3 BD-RE driver (mmc_bdre).
Driver flags   : NO-CD BD MMC-3 BURNFREE 
Supported modes: PACKET SAO LAYER_JUMP
Mounted media class:      BD
Mounted media type:       BD-RE
Disk Is erasable
data type:                standard
disk status:              complete
session status:           complete
BG format status:         none
first track:              1
number of sessions:       1
first track in last sess: 1
last track in last sess:  1
Disk Is unrestricted
Disk type: DVD, HD-DVD or BD

Track  Sess Type   Start Addr End Addr   Size
==============================================
    1     1 Data   0          23652351   23652352

Last session start address:         0
Last session leadout start address: 23652352

-----> A formatted but empty rewritable dual layer BluRay


cdrecord -minfo dev=USCSI:1,1,0
Cdrecord-ProDVD-ProBD-Clone 2.01.01a38 (i386-pc-solaris2.11) Copyright (C) 
1995-2008 Jörg Schilling
scsidev: 'USCSI:1,1,0'
devname: 'USCSI'
scsibus: 1 target: 1 lun: 0
Warning: Using USCSI interface.
Using libscg version 'schily-0.9'.
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   : 
Vendor_info    : 'PLEXTOR '
Identifikation : 'DVDR   PX-755A  '
Revision       : '1.07'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc-2 DVD-R/DVD-RW/DVD-RAM driver (mmc_dvd).
Driver flags   : NO-CD DVD MMC-3 SWABAUDIO BURNFREE 
Supported modes: PACKET SAO
WARNING: Phys disk size 1337760 differs from rzone size 0! Prerecorded disk?
WARNING: Phys start: 196608 Phys end 1534367
Mounted media class:      DVD
Mounted media type:       DVD-RW sequential recording
Disk Is erasable
data type:                standard
disk status:              complete
session status:           complete
BG format status:         none
first track:              1
number of sessions:       1
first track in last sess: 1
last track in last sess:  1
Disk Is not unrestricted
Disk type: DVD, HD-DVD or BD

Track  Sess Type   Start Addr End Addr   Size
==============================================
    1     1 Data   0          1337759    1337760

Last session start address:         0
Last session leadout start address: 1337760

-----> A partially filled up DVD-RW


Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to