Operating System - HP-UX
1820619 Members
1854 Online
109626 Solutions
New Discussion юеВ

Re: cdrecord - no disk/wrong disk

 
Susan Prosser
Advisor

cdrecord - no disk/wrong disk

cdr at /dev/dsk/c0t0d0

I cannot mount the cdrom with a blank cd in it, says devide busy.
I can run cdrecord dev=0,0,0, -inq and get some info back.
But if I try to write a directory to it, or load it, I get an error.......

scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Using libscg version 'schily-0.5'
Device type : Removable CD-ROM
Version : 2
Response Format: 1
Vendor_info : 'HP '
Identifikation : 'CD-Writer cd16r '
Revision : 'OKS3'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : SWABAUDIO
cdrecord: I/O error. test unit ready: scsi sendcmd: retryable error
CDB: 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 3A 00 00 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.590s timeout 40s
cdrecord: No disk / Wrong disk!

any ideas? have to say that this is the first time I have tried to use this software
Thanks in Advance
2 REPLIES 2
Ralph Grothe
Honored Contributor

Re: cdrecord - no disk/wrong disk

Hi,

though I've never used cdrecord on HP-UX I make haevy use of it on a Linux box.

I hope the basic handling is similar.

First I'd read the manpage of cdrecord (it has dozens of options) because it really depends on what kind of image you want to write (e.g. ISO, bootable, raw data etc.)

Then check if your drive is found

# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J??rg Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) *
0,1,0 1) *
0,2,0 2) 'PIONEER ' 'DVD-ROM DVD-305 ' '1.03' Removable CD-ROM
0,3,0 3) 'PLEXTOR ' 'CD-R PX-W1210S' '1.04' Removable CD-ROM
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
0,15,0 15) 'FUJITSU ' 'MAN3367MP ' '0109' Disk


Usually before you burn a CDROM you have already mastered an image.
Most of the times I use an ISO image if I need to read the CD under different OS.
Therefore you'd need some software to master this image.
On Linux I use mkisofs which today I guess is shipped together with cdrecord (at least it is maintained by the same guy J??rg Schilling).
See manpage of mkisofs for details.

Given I already have an ISO image at /opt/store/myexmail.iso I'd issue

# cdrecord dev=0,3,0 fs=4m speed=8 -isosize -dummy -nofix /opt/store/myexmail.iso

Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J??rg Schilling
scsidev: '0,3,0'
scsibus: 0 target: 3 lun: 0
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
Device type : Removable CD-ROM
Version : 2
Response Format: 2
Capabilities : SYNC LINKED
Vendor_info : 'PLEXTOR '
Identifikation : 'CD-R PX-W1210S'
Revision : '1.04'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : SWABAUDIO
Starting to write CD/DVD at speed 8 in dummy mode for single session.
Last chance to quit, starting dummy write in 0 seconds. Operation starts.

where the dev= is the device target of your drive, the same -scanbus showed, fs= is the FIFO size, speed= is obvious.
The additional switches -dummy and -nofix will prevent the disk from actually being burned and fixated.
You would omit these after you have made sure everything works properly.

You don't have to supply most of the arguments to cdrecord, but may rather put the in /etc/cdrecord.conf.

Apart from ISO images you can also burn in raw mode by simply piping from another command if you can guarantee a continous data stream to protect from buffer underruns which could render your CD-R useless

e.g.

tar cf - /home | cdrecord -v -data -





Madness, thy name is system administration
Ralph Grothe
Honored Contributor

Re: cdrecord - no disk/wrong disk

Hi,

though I've never used cdrecord on HP-UX I make heavy use of it on a Linux box.

I hope the basic handling is similar.

First I'd read the manpage of cdrecord (it has dozens of options) because it really depends on what kind of image you want to write (e.g. ISO, bootable, raw data etc.)

Then check if your drive is found

# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J??rg Schilling
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) *
0,1,0 1) *
0,2,0 2) 'PIONEER ' 'DVD-ROM DVD-305 ' '1.03' Removable CD-ROM
0,3,0 3) 'PLEXTOR ' 'CD-R PX-W1210S' '1.04' Removable CD-ROM
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
0,15,0 15) 'FUJITSU ' 'MAN3367MP ' '0109' Disk


Usually before you burn a CDROM you have already mastered an image.
Most of the times I use an ISO image if I need to read the CD under different OS.
Therefore you'd need some software to master this image.
On Linux I use mkisofs which today I guess is shipped together with cdrecord (at least it is maintained by the same guy viz. J??rg Schilling).
See manpage of mkisofs for details.

Given I already have an ISO image at /opt/store/myexmail.iso I'd issue

# cdrecord dev=0,3,0 fs=4m speed=8 -isosize -dummy -nofix /opt/store/myexmail.iso

Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J??rg Schilling
scsidev: '0,3,0'
scsibus: 0 target: 3 lun: 0
Linux sg driver version: 3.1.22
Using libscg version 'schily-0.5'
Device type : Removable CD-ROM
Version : 2
Response Format: 2
Capabilities : SYNC LINKED
Vendor_info : 'PLEXTOR '
Identifikation : 'CD-R PX-W1210S'
Revision : '1.04'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : SWABAUDIO
Starting to write CD/DVD at speed 8 in dummy mode for single session.
Last chance to quit, starting dummy write in 0 seconds. Operation starts.

where the dev= is the device target of your drive, the same -scanbus showed, fs= is the FIFO size, and speed= is obvious.
The additional switches -dummy and -nofix will prevent the disk from actually being burned and fixated.
You would omit these after you have made sure everything works properly.

You don't have to supply most of the arguments to cdrecord, but may rather put them in /etc/cdrecord.conf.

Apart from ISO images you can also burn in raw mode by simply piping from another command if you can guarantee a continous data stream to protect from buffer underruns which could render your CD-R useless

e.g.

tar cf - /home | cdrecord -v -data -





Madness, thy name is system administration