LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-05-2005, 04:04 PM   #1
philippeP
LQ Newbie
 
Registered: Sep 2005
Location: Germany
Distribution: Debian sarge/etch
Posts: 18

Rep: Reputation: 0
cdrecord problem with ide-cd (debian/sarge, kernel 2.6.12)


Hi,

I have a problem burning CDs since I have upgraded from 2.4 up to 2.6. The problem has persisted with different versions of 2.6, I am now runing 2.6.12. I could burn without anyproblem using SCSI emulation under 2.4.

** Symptoms:

CDburner recognised by "cdrecord -scanbus -dev=ATAPI:" as
"0,1,0 'HL-DT-ST' 'RW/DVD GCC-4240N' 'D110' Removable CD-ROM"



CDburner is also recognised by running "cdrecord -checkdrive" and returns:
##################
cdrecord: Warning: Running on Linux-2.6.12.320050813
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
scsidev: 'ATAPI:0,1,0'
devname: 'ATAPI'
scsibus: 0 target: 1 lun: 0
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Using libscg version 'schily-0.8'.
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'HL-DT-ST'
Identifikation : 'RW/DVD GCC-4240N'
Revision : 'D110'
Device seems to be: Generic mmc2 DVD-ROM.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-2 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
##################


When I try burning a CD, for example using "cdrecord dev=ATAPI:0,1,0 -v -dao -useinfo *.wav" I get the following error
##################
Cdrecord-Clone 2.01.01a01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 J�g Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
and thus may have bugs that are not present in the original version.
Please send bug reports and support requests to <cdrtools@packages.debian.org>.
The original author should not be bothered with problems of this version.

cdrecord: Warning: Running on Linux-2.6.12.320050813
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
TOC Type: 0 = CD-DA
scsidev: 'ATAPI:0,1,0'
devname: 'ATAPI'
scsibus: 0 target: 1 lun: 0
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Using libscg version 'schily-0.8'.
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'HL-DT-ST'
Identifikation : 'RW/DVD GCC-4240N'
Revision : 'D110'
Device seems to be: Generic mmc2 DVD-ROM.
Current: 0x0009
Profile: 0x0010
Profile: 0x0008
Profile: 0x0009 (current)
Profile: 0x000A
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-2 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1705200 = 1665 KB
FIFO size : 4194304 = 4096 KB
pregap1: -1
Track 01: audio 10 MB (01:05.20) no preemp
Track 02: audio 44 MB (04:23.02) no preemp pregapsize: 0
Track 03: audio 79 MB (07:52.86) no preemp pregapsize: 0
Track 04: audio 49 MB (04:56.80) no preemp pregapsize: 0
Track 05: audio 39 MB (03:52.64) no preemp pregapsize: 0
Track 06: audio 64 MB (06:21.02) no preemp pregapsize: 0
Track 07: audio 40 MB (04:02.50) no preemp pregapsize: 0
Track 08: audio 114 MB (11:22.16) no preemp pregapsize: 0
Track 09: audio 77 MB (07:42.93) no preemp pregapsize: 0
Track 10: audio 87 MB (08:40.93) no preemp pregapsize: 0
Track 11: audio 103 MB (10:14.60) no preemp pregapsize: 0
Total size: 712 MB (70:34.69) = 317602 sectors
Lout start: 712 MB (70:36/52) = 317602 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 6
Is not unrestricted
Is not erasable
Disk sub type: Medium Type A, low Beta category (A-) (2)
ATIP start of lead in: -11693 (97:26/07)
ATIP start of lead out: 359846 (79:59/71)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 5
Manufacturer: FORNET INTERNATIONAL PTE LTD.
Blocks total: 359846 Blocks current: 359846 Blocks remaining: 42244
Starting to write CD/DVD at speed 4 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 OFF.
Performing OPC...
Sending CUE sheet...
Writing pregap for track 1 at -150
cdrecord: Input/output error. write_g1: scsi sendcmd: no error
CDB: 2A 00 FF FF FF 6A 00 00 1B 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 24 00 00 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x24 Qual 0x00 (invalid field in cdb) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.002s timeout 200s
write track pad data: error after 0 bytes
BFree: 1665 K BSize: 1665 K
Starting new track at sector: 0
Track 01: 0 of 10 MB written.cdrecord: Input/output error. write_g1: scsi sendcmd: no error
CDB: 2A 00 00 00 00 00 00 00 1B 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 24 00 00 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x24 Qual 0x00 (invalid field in cdb) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.002s timeout 200s

write track data: error after 0 bytes
cdrecord: A write error occured.
cdrecord: Please properly read the error message above.
Writing time: 9.955s
Average write speed 844.9x.
Fixating...
Fixating time: 0.003s
cdrecord: fifo had 64 puts and 1 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
##################



I have searched the web quite a bit and see similar problems with no solution. (Yes, I do have udma2 activated for /dev/hdb).

I am using debian/sarge and running kernel 2.6.12.3 with ide-cd compiled in the kernel. Do not use any lilo boot options.

Is this a kernel configuration issue? Hardware issue? I would really appreciate any possible help, this problem is driving me nuts. I just love kernel upgrades...

Thanks to any kind and knowledgeable linux user out there.
Philippe
 
Old 09-06-2005, 06:24 AM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Are you sure the burner isn't /dev/hdc instead of hdb?
Anyway, with 2.6.x kernels you can skip scsi emulation and write directly to /dev/hdx instead of using the atapi scsidev.
 
Old 09-06-2005, 06:23 PM   #3
philippeP
LQ Newbie
 
Registered: Sep 2005
Location: Germany
Distribution: Debian sarge/etch
Posts: 18

Original Poster
Rep: Reputation: 0
Hi and most of all thank you!! Indeed using directly "dev=/dev/hdb" solved the problem.

The problem is solved but actually I don't really understand why. Is an easy explanation possible? For example, if I want to detect my drive, typing only "cdrecord -scanbus" doesn't work. I *have* to do something like "cdrecord -scanbus dev=ATAPI:" (or with "dev=ATA:" or also "dev=/dev/hdb") and only then I get the result shown in my original post, with a drive recognised on 0,1,0.

Isn't this "ATAPI:" transport layer indicator exactly there to tell cdrecord to use normal ide-burning?? Then, what is the difference between "dev=ATAPI:0,1,0" and "dev=/dev/hdb".

Thanks again
PhilippeP

Thank you very very much :-)
PhilippeP
 
Old 09-07-2005, 03:19 AM   #4
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
There was a largish flame war between shilling, the creator of cdrecord, and linux people a couple of years ago. You can google for posts like this http://programming.linux.com/article...&tid=40&tid=91

In the end ide-scsi was forgotten and atapi was a workaround. I don't recall why /dev/hdx was better than atapi, I just noticed with kernel 2.6.8 when iirc cdrecording broke, that even with a kernel upgrade to 2.6.8.2, only direct dev writing worked for me. Haven't changed back since then.
To find your burner you don't need cdrecord, just do: dmesg |grep CD

EDIT: found the lkml thread: http://lkml.org/lkml/2004/8/4/89

Last edited by makuyl; 09-07-2005 at 03:29 AM.
 
  


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
IDE Raid5 in Debian Sarge skumse Linux - Hardware 0 12-02-2004 09:59 AM
debian sarge & new kernel => weird internet problem mikey79 Linux - Networking 2 08-31-2004 09:00 AM
Problem getting XFree86 4.3.0.1 running, debian "sarge" 2.6.6 kernel Motivez Linux - Software 9 06-08-2004 03:45 PM
cdrecord ide/scsi problem azacid Linux - Software 8 03-04-2004 05:37 PM
CDRecord IDE CDwritter and kernel 2.4.18 LabRad Linux - Hardware 7 04-03-2002 12:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:26 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration