LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-10-2005, 06:42 PM   #1
DPenguin
LQ Newbie
 
Registered: Feb 2005
Location: Tucson Arizona
Distribution: fedora core 3 and/or RH enterprise linux 3.0
Posts: 12

Rep: Reputation: 0
cdrecord: no media present - tray closed message


I have fedora core 3 kernel 2.6.10-1.760 installed on a gateway 7200x pc.

The system includes a samsung cd/dvd+-rw drive.

When I insert a blank cd/r disc or dvd/r disc and try to burn an iso onto it using the following command,

cdrecord -dao -dev=/dev/hda bkup.iso

I get the following output:
scsidev: '/dev/hda'
devname: '/dev/hda'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c 1.83 04/05/20 Copyright 1997 J. Schilling').
SCSI buffer size: 64512
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
TOC Type: 1 = CD-ROM
Using libscg version 'schily-0.8'.
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'TSSTcorp'
Identifikation : 'CD/DVDW TS-H552B'
Revision : 'GA02'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0000
Profile: 0x002B
Profile: 0x001B
Profile: 0x001A
Profile: 0x0014
Profile: 0x0013
Profile: 0x0011
Profile: 0x0010
Profile: 0x000A
Profile: 0x0009
Profile: 0x0008
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 : 373539177 = 364784 KB
FIFO size : 4194304 = 4096 KB
cdrecord: Success. test unit ready: scsi sendcmd: no 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 01 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x01 (medium not present - tray closed) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.000s timeout 200s
cdrecord: No disk / Wrong disk!
Track 01: data 330 MB
Total size: 380 MB (37:38.90) = 169418 sectors
Lout start: 380 MB (37:40/68) = 169418 sectors

The output from cdrecord --scanbus is:

scsidev: 'ATA'
devname: 'ATA'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c 1.83 04/05/20 Copyright 1997 J. Schilling').
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) 'TSSTcorp' 'CD/DVDW TS-H552B' 'GA02' Removable CD-ROM
0,1,0 1) 'SAMSUNG ' 'DVD-ROM SD-616E ' 'F500' 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) *

How do I get this to work?
 
Old 03-10-2005, 07:14 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Try this..
cdrecord -v dev=ATA:0,0,0 bkup.iso
 
Old 03-11-2005, 04:45 PM   #3
DPenguin
LQ Newbie
 
Registered: Feb 2005
Location: Tucson Arizona
Distribution: fedora core 3 and/or RH enterprise linux 3.0
Posts: 12

Original Poster
Rep: Reputation: 0
Homey,

I tried what you suggested and the results were as follows:

scsidev: 'ATA:0,0,0'
devname: 'ATA'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.5.27
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c 1.83 04/05/20 Copyright 1997 J. Schilling').
SCSI buffer size: 64512
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
TOC Type: 1 = CD-ROM
Using libscg version 'schily-0.8'.
atapi: -1
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'TSSTcorp'
Identifikation : 'CD/DVDW TS-H552B'
Revision : 'GA02'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0000
Profile: 0x002B
Profile: 0x001B
Profile: 0x001A
Profile: 0x0014
Profile: 0x0013
Profile: 0x0011
Profile: 0x0010
Profile: 0x000A
Profile: 0x0009
Profile: 0x0008
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 : 373539177 = 364784 KB
FIFO size : 4194304 = 4096 KB
cdrecord: Success. test unit ready: scsi sendcmd: no 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 01 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x01 (medium not present - tray closed) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.000s timeout 200s
cdrecord: No disk / Wrong disk!
Track 01: data 330 MB
Total size: 380 MB (37:38.90) = 169418 sectors
Lout start: 380 MB (37:40/68) = 169418 sectors
 
Old 03-11-2005, 05:02 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Quote:
The system includes a samsung cd/dvd+-rw drive.
0,1,0 1) 'SAMSUNG ' 'DVD-ROM SD-616E ' 'F500' Removable CD-ROM

Sorry, looks like I grabed the wrong device.
try this
cdrecord -v dev=ATA:0,1,0 bkup.iso
 
Old 03-11-2005, 05:35 PM   #5
DPenguin
LQ Newbie
 
Registered: Feb 2005
Location: Tucson Arizona
Distribution: fedora core 3 and/or RH enterprise linux 3.0
Posts: 12

Original Poster
Rep: Reputation: 0
homey,

No you were right the first time.
device 0,0,0 is the cd/dvdrw drive while 0,1,0 is a cd/dvd drive. I have tried both settings.
When I use 0,1,0 I get no cd/dvd recorder present.
 
Old 03-31-2005, 12:39 AM   #6
RickeyF
LQ Newbie
 
Registered: Mar 2005
Distribution: rh9,fc2
Posts: 1

Rep: Reputation: 0
DPenguin,

I noticed that you have an error message (medium not present - tray closed) and another "cdrecord: No disk / Wrong disk!". I had the same problem with Fedora Core 2 (kernel 2.6.5).

I know that in kernel 2.4.x, ide-cdrom drives have to emulate being a SCSI drive. I found the site:
http://linux.sgms-centre.com/howto/cdwriting.php
which describes the settings neccessary in the kernel configuration for scsi emulation. I found scsi emulation was not set. Once I set it and compiled the kernel, I was able to burn CDs.

However, it mentions to add the parameter "hdx=ide-scsi" to the kernel command line in grub.conf. I tried it and "cdrecord -scanbus" couldn't recognize anything. I removed it and all was well.

I used the command "cdrecord dev=ATAPI -scanbus" to find the scsibus,target,lun (which, in my case, was 0,1,0). I then used the command "cdrecord -dummy -dev ATAPI:0,1,0 -data <iso file>" to make sure everything was working properly. Once I was sure, I then updated /etc/cdrecord.conf as such:

CDR_DEVICE=cdrom
cdrom= ATAPI:0,1,0 -1 -1 burnfree

Now I can use the command "cdrecord -data <iso file>".

Rick
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Media tray empty(printing) vito_huang Linux - Hardware 0 12-18-2004 10:29 AM
Media tray Empty with Samsung Ml-1710 ??? m-blaster Linux - Hardware 3 09-25-2004 06:01 PM
Cups says "Media tray empty!" but I have +50 sheets of paper in tray... r_jensen11 Linux - Hardware 8 09-07-2004 10:46 PM
Epson C64 Media Tray Empty! Riley Linux - Hardware 1 04-29-2004 11:55 AM
rh9 usb officejet g85 "media tray empty" message skippy1969 Linux - Hardware 0 03-03-2004 06:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration