LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-28-2004, 12:08 PM   #1
Hell255
LQ Newbie
 
Registered: May 2004
Posts: 24

Rep: Reputation: 15
Problems burning CDs with kernel 2.6.5


Hello,

here the facts:
i have a MITSUMI CDR-4802TE 4x, ATAPI, cd writer...
Debian sarge with 2.6.5
The writer is on the compatibility list of cdrecord. I didnt install any SCSI emulation, cause
i read somewhere that the new kernel doesnt need this.

I am a total newbie on burning CDs with linux. So i installed xcdroaster,tried to burn a CD but it didnt work. So i tried the command line version with:

cdrecord -v dev=/dev/hdc /tmp/track-01.img


here is the log file:
------------------------------------------------------------------------------------------------------------
Hell-linux:~# cdrecord -v dev=/dev/hdd /tmp/track-01.img
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01a27 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg 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.

TOC Type: 1 = CD-ROM
scsidev: '/dev/hdd'
devname: '/dev/hdd'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'MITSUMI '
Identifikation : 'CR-4802TE '
Revision : '1.4D'
Device seems to be: Philips CDD-522.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC SWABAUDIO
Supported modes: TAO PACKET SAO SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1638400 = 1600 KB
FIFO size : 4194304 = 4096 KB
Track 01: data 4 MB
Total size: 5 MB (00:33.64) = 2523 sectors
Lout start: 5 MB (00:35/48) = 2523 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Is not unrestricted
Is not erasable
Disk sub type: Medium Type B, low Beta category (B-) (4)
ATIP start of lead in: -12421 (97:16/29)
ATIP start of lead out: 359848 (79:59/73)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 71
Manufacturer: SHENZEN SG&GAST DIGITAL OPTICAL DISCS
Manufacturer is guessed because of the orange forum embargo.
The orange forum likes to get money for recent information.
The information for this media may not be correct.
Blocks total: 359848 Blocks current: 359848 Blocks remaining: 357325
Starting to write CD/DVD at speed 4 in real TAO 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.
resid: 198
cdrecord: Success. mode select g1: scsi sendcmd: no error
CDB: 55 10 00 00 00 00 00 01 02 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 06 00 00 00 00 1A 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x1A Qual 0x00 (parameter list length error) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.002s timeout 40s
cdrecord: Warning: using default CD write parameter data.
Mode Select Data 00 10 00 00 05 32 01 04 08 00 00 00 00 00 00 00 00 00 00 96 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cdrecord: Cannot open new session.
cdrecord: Success. prevent/allow medium removal: scsi sendcmd: no error
CDB: 1E 00 00 00 00 00
status: 0x1 (GOOD STATUS)
cmd finished after 0.000s timeout 40s
Writing time: 0.020s
cdrecord: fifo had 64 puts and 0 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
Hell-linux:~#
------------------------------------------------------------------------------------------------------------------

Please help.. i dont wanna boot windows =(
greets
 
Old 05-28-2004, 01:31 PM   #2
nhs
Member
 
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
I haven't ever burned discs under the 2.6 kernel however the line "is not unrestricted" hints to me that the disc has already had something burned to it and is a single write disc. As another option I think cdrecord likes the drive specified as dev=ATAPI:0,1,0 or similar when burning to ATAPI drives. The scsi errors might indicate that it was still treating it as a SCSI device. Just a few thoughts on the problem.
 
Old 05-28-2004, 02:11 PM   #3
Hell255
LQ Newbie
 
Registered: May 2004
Posts: 24

Original Poster
Rep: Reputation: 15
a

i just burned the cd with nero..worked perfectly... any other clues?
 
Old 05-28-2004, 05:17 PM   #4
BinaryDigit01
LQ Newbie
 
Registered: May 2004
Posts: 13

Rep: Reputation: 0
I think the problem is that there's already data on the CD (4 MB) and that you didn't make it a multi-session CD, so you can't write on it again. Did you try burning on an empty CD? If so, did it give you the same problems?

Here's the line that makes me believe that you've already burned data on this CD:
'cdrecord: Cannot open new session.'

Of course, if you made it a multi-session CD using Nero or any other Windows-based CD-writing program and then want to add another session, I'm not sure how cdrecord will handle it or if it can.

As to the line:
cdrecord -v dev=/dev/hdc /tmp/track-01.img
I think that's okay. Of course, if you know the speed, put it yourself instead of making cdrecord try to determine it.
 
Old 05-29-2004, 09:30 AM   #5
BinaryDigit01
LQ Newbie
 
Registered: May 2004
Posts: 13

Rep: Reputation: 0
I found the following information (off http://www.freebsddiary.org/cdrecord-multi.php) if you want to use mkisofs and cdrecord for multi-session writing:

Code:
"Here are the steps I used:

   1. Burn the first ISO image:
      mkisofs -J -L -R -o freshportsbackup.raw freshports.backup.2000.12.*
   2. Record that image using the multi and data flags:
      cdrecord -v -multi -data speed=12 dev=0,5,0 freshports.raw

      Remember you may want to should adjust speed to suit your CD drive
   3. Create the second image:
         1. Locate the start of the free space on the CD:

            # cdrecord -msinfo dev=0,5,0
            0,12639
         2. Create the second image using the starting location and specify the CD write device:

            mkisofs -J -L -R -o freshportsbackup.raw -M /dev/cd0a -C 0,12639 freshports.backup.2000.12.*

            Note: /dev/cd0a is my CD writer.
            Note: 0,12639 is obtained during step 3a.
   4. Burn the second ISO image:

      cdrecord -v -multi -data speed=12 dev=0,5,0 freshportsbackup.raw

      Remember you may want to should adjust speed to suit your CD drive.

If you forget which device is your cdwrite, look in /etc/fstab where you should see something like this:

    $ grep cd /etc/fstab
    /dev/cd0a /cdrom cd9660 ro,noauto 0 0
"

"This example will show how I first burned some FreshPorts backups and then a cvs repository.  I have snipped some bits from the output.

Create the first ISO:

    # mkisofs -J -L -R -o freshports.raw mycvs.2000.12.31.tgz
    Warning: creating filesystem that does not conform to ISO-9660.
    Total translation table size: 0
    Total rockridge attributes bytes: 261
    Total directory bytes: 0
    Path table size(bytes): 10
    Max brk space used c164
    1237 extents written (2 Mb)

Burn the first ISO:

    # cdrecord -v -multi -data speed=12 dev=0,5,0 freshports.raw
    Cdrecord 1.9 (i386-unknown-freebsd4.2) Copyright (C) 1995-2000 Jörg Schilling
    [snip]
    Blocks total: 336225 Blocks current: 336225 Blocks remaining: 334986
    Starting to write CD/DVD at speed 12 in write mode for multi session.
    Last chance to quit, starting real write in 1 seconds.
    Waiting for reader process to fill input buffer ... input buffer ready.
    Performing OPC...
    Starting new track at sector: 0
    Track 01: 2 of 2 MB written (fifo 100%).
    Track 01: Total bytes read/written: 2533376/2533376 (1237 sectors).
    Writing time: 23.826s
    Fixating...
    Fixating time: 23.689s
    cdrecord: fifo had 40 puts and 40 gets.
    cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.

Have a quick look at the drive contents:

    # mount /cdrom
    # ls -l /cdrom
    total 2411
    -rw-r--r-- 1 dan dan 2469096 Dec 31 11:50 mycvs.2000.12.31.tgz
    # umount /cdrom

Find out the where the free space starts:

    # cdrecord -msinfo dev=0,5,0
    0,12639

Create the second ISO using the free space information from the previous step:

    # mkisofs -J -L -R -o freshportsbackup.raw -M /dev/cd0a -C 0,12639 my.backup.2000.12.*
    Warning: creating filesystem that does not conform to ISO-9660.

    [snip]

    52.89% done, estimate finish Sun Dec 31 12:59:18 2000
    70.51% done, estimate finish Sun Dec 31 12:59:22 2000
    88.17% done, estimate finish Sun Dec 31 12:59:23 2000
    Total translation table size: 0
    Total rockridge attributes bytes: 1885
    Total directory bytes: 0
    Path table size(bytes): 10
    Max brk space used d164
    28369 extents written (55 Mb)

Burn the second ISO:

    # cdrecord -v -multi -data speed=12 dev=0,5,0 freshportsbackup.raw

    [snip]

    Blocks total: 336225 Blocks current: 323586 Blocks remaining: 307854
    Starting to write CD/DVD at speed 12 in write mode for multi session.
    Last chance to quit, starting real write in 1 seconds.
    Waiting for reader process to fill input buffer ... input buffer ready.
    Performing OPC...
    Starting new track at sector: 12639
    Track 02: 30 of 30 MB written (fifo 100%).
    Track 02: Total bytes read/written: 32215040/32215040 (15730 sectors).
    Writing time: 33.053s
    Fixating...
    Fixating time: 10.438s
    cdrecord: fifo had 508 puts and 508 gets.
    cdrecord: fifo was 0 times empty and 361 times full, min fill was 95%.

Have a look at the contents now:

    # mount /cdrom
    # ls /cdrom
    my.backup.2000.12.17.tgz
    my.backup.2000.12.18.tgz
    my.backup.2000.12.19.tgz
    my.backup.2000.12.20.tgz
    my.backup.2000.12.21.tgz
    my.backup.2000.12.22.tgz
    my.backup.2000.12.24.tgz
    my.backup.2000.12.25.tgz
    my.backup.2000.12.26.tgz
    my.backup.2000.12.27.tgz
    my.backup.2000.12.28.tgz
    my.backup.2000.12.29.tgz
    my.backup.2000.12.30.tgz
    my.backup.2000.12.31.tgz
    mycvs.2000.12.31.tgz
    # umount /cdrom
"
 
Old 05-29-2004, 09:38 AM   #6
Aeiri
Member
 
Registered: Feb 2004
Posts: 307

Rep: Reputation: 30
Burning with K3b on 2.6 kernel works perfectly. I've had problems with Xcdroast.
 
Old 05-29-2004, 12:22 PM   #7
Hell255
LQ Newbie
 
Registered: May 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Talking

ok i ll try this next monday on my linux pc @ home.. thanks for your suggestion
 
Old 05-29-2004, 12:32 PM   #8
netcrawl
Member
 
Registered: Jan 2004
Location: British Columbia
Distribution: Slackware64-current, aarch64
Posts: 220

Rep: Reputation: 141Reputation: 141
I've been using xcdroast on kernels 2.4.x thru 2.6.6 and it works seamlessly...
 
Old 06-01-2004, 11:59 AM   #9
Hell255
LQ Newbie
 
Registered: May 2004
Posts: 24

Original Poster
Rep: Reputation: 15
hm crap. its still not working.



when i use "cdrecord -data -speed=4 -tao -v -dev ATAPI:/dev/hdd test.iso" the firs time i get this:
------------------------------------------------------------------------------------
Hell-linux:/tmp# cdrecord -data -speed=4 -tao -v -dev ATAPI:/dev/hdd test.iso
Cdrecord-Clone 2.01a29 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg 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.

TOC Type: 1 = CD-ROM
scsidev: 'ATAPI:/dev/hdd'
devname: 'ATAPI:/dev/hdd'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related libscg interface code is in pre alpha.
Warning: There may be fatal problems.
Using libscg version 'schily-0.8'.
SCSI buffer size: 64512
atapi: 1
Device type : Disk
Version : 0
Response Format: 0
Vendor_info : 'ADAPTEC '
Identifikation : 'ACB-5500 '
Revision : 'FAKE'
Device seems to be: Adaptec 5500.
cdrecord: Sorry, no CD/DVD-Drive found on this target.
---------------------------------------------------------------------------------------------
if i execute the exact same command shortly after i get this:
---------------------------------------------------------------------------------------------
Hell-linux:/tmp# cdrecord -data -speed=4 -tao -v -dev ATAPI:/dev/hdd test.iso
Cdrecord-Clone 2.01a29 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg 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.

TOC Type: 1 = CD-ROM
scsidev: 'ATAPI:/dev/hdd'
devname: 'ATAPI:/dev/hdd'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related libscg interface code is in pre alpha.
Warning: There may be fatal problems.
Using libscg version 'schily-0.8'.
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'MITSUMI '
Identifikation : 'CR-4802TE '
Revision : '1.4D'
Device seems to be: Philips CDD-522.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC SWABAUDIO
Supported modes: TAO PACKET SAO SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1638400 = 1600 KB
FIFO size : 4194304 = 4096 KB
Track 01: data 326 MB
Total size: 375 MB (37:11.70) = 167378 sectors
Lout start: 375 MB (37:13/53) = 167378 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Is not unrestricted
Is not erasable
Disk sub type: Medium Type B, low Beta category (B-) (4)
ATIP start of lead in: -12421 (97:16/29)
ATIP start of lead out: 359848 (79:59/73)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 71
Manufacturer: SHENZEN SG&GAST DIGITAL OPTICAL DISCS
Manufacturer is guessed because of the orange forum embargo.
The orange forum likes to get money for recent information.
The information for this media may not be correct.
Blocks total: 359848 Blocks current: 359848 Blocks remaining: 192470
Starting to write CD/DVD at speed 4 in real TAO 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.
cdrecord: Input/output error. mode select g1: scsi sendcmd: no error
CDB: 55 10 00 00 00 00 00 01 02 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 06 00 00 00 00 1A 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x1A Qual 0x00 (parameter list length error) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.001s timeout 40s
cdrecord: Warning: using default CD write parameter data.
Mode Select Data 00 10 00 00 05 32 01 04 08 00 00 00 00 00 00 00 00 00 00 96 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cdrecord: Cannot open new session.
cdrecord: Input/output error. prevent/allow medium removal: scsi sendcmd: no error
CDB: 1E 00 00 00 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.000s timeout 40s
Writing time: 0.015s
cdrecord: fifo had 64 puts and 0 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
Hell-linux:/tmp#
---------------------------------------------------------------------------------------------
i am sure there is no data on the CD. Here is the output of "cdrecord -dev ATAPI:/dev/hdd -msinfo"
---------------------------------------------------------------------------------------------
Hell-linux:/tmp# cdrecord -dev ATAPI:/dev/hdd -msinfo
cdrecord: Sorry, no CD/DVD-Drive found on this target.

Hell-linux:/tmp# cdrecord -dev ATAPI:/dev/hdd -msinfo
cdrecord: Input/output error. read toc: scsi sendcmd: no error
CDB: 43 00 01 00 00 00 00 00 04 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 06 00 00 00 00 24 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.000s timeout 40s
cdrecord: Cannot read session offset
cdrecord: Input/output error. prevent/allow medium removal: scsi sendcmd: no error
CDB: 1E 00 00 00 00 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.000s timeout 40s
Hell-linux:/tmp#
---------------------------------------------------------------------------------------------

so.. what am I doing wrong ?!?!?!
ps:I can't install k3b, cause i dont' wanna install all those kde libraries.
 
  


Reply



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
Burning CDs using Pat's Linux 2.6.7 kernel from /testing fader Slackware 2 01-31-2005 02:44 PM
Problems burning audio CDs lancelott Debian 5 11-30-2004 05:47 AM
problems burning cds / 2.6.5 / ATAPI core Linux - Software 7 05-18-2004 07:47 PM
Burning CDs problems Harp00 Linux - Newbie 1 08-21-2003 04:57 AM
Crappy 2.4.20-13 RH kernel upgrade? (freeze while burning CDs) Thetargos Linux - Software 2 05-20-2003 08:48 PM

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

All times are GMT -5. The time now is 10:27 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