Bug 249759

Summary: data cd copy fails
Product: [Applications] k3b Reporter: Piotr Mitas <yabolus>
Component: Burning/HardwareAssignee: k3b developers <k3b>
Status: REPORTED ---    
Severity: normal CC: leti2egh, trueg
Priority: NOR    
Version: 2.0.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Piotr Mitas 2010-09-01 15:40:13 UTC
Version:           2.0.0 (using KDE 4.5.0) 
OS:                Linux

I've been trying to copy a regular data cd. After creating the image and inserting a blank cd, cdrecord fails immediately after starting with i/o errors. Copying the same cd manually (using readcd and cdrecord without any additional options) works without any errors. Cdrecord is "Cdrecord-ProDVD-ProBD-Clone 3.00". k3b is actually 2.0.1. 

Full log:


Devices
-----------------------
HL-DT-ST DVD-RAM GH22NS30 1.02 (/dev/sr0, CD-R, CD-RW, CD-ROM, DVD-ROM, DVD-R, DVD-RW, DVD-R dwuwarstwowa, DVD+R, DVD+RW, DVD+R dwuwarstwowa) [DVD-ROM, DVD-R sekwencyjna, DVD-R dwuwarstwowa sekwencyjna, DVD+R dwuwarstwowa, DVD-RAM, DVD-RW w trybie ograniczonego zastępowania, DVD-RW sekwencyjny, DVD+RW, DVD+R, DVD+R dwuwarstwowa, CD-ROM, CD-R, CD-RW] [Sesja naraz (SAO), TAO, RAW, SAO/R96P, SAO/R96R, Surowe/R16, Surowe/R96P, Surowe/R96R, Ograniczone zastępowanie., Przeskok warstwy] [%7]

K3b::DataTrackReader
-----------------------
reading sectors 0 to 257773 with sector size 2056. Length: 257774 sectors, 529983344 bytes.
using buffer size of 32 blocks.
Read a total of 257774 sectors (529983344 bytes)

System
-----------------------
K3b Version: 2.0.1
KDE Version: 4.5.1 (KDE 4.5.1)
QT Version:  4.6.3
Kernel:      2.6.35-zen1+

Used versions
-----------------------
cdrecord: 3.0

cdrecord
-----------------------
scsidev: '/dev/sr0'
devname: '/dev/sr0'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
SCSI buffer size: 64512
/usr/bin/cdrecord: Warning: Drive returned invalid buffer size.
/usr/bin/cdrecord: Warning: The DMA speed test has been skipped.
Cdrecord-ProDVD-ProBD-Clone 3.00 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2010 Jörg Schilling
TOC Type: 3 = CD-ROM XA mode 2
Using libscg version 'schily-0.9'.
Driveropts: 'burnfree'
atapi: 1
Device type    : Removable CD-ROM
Version        : 5
Response Format: 2
Capabilities   :
Vendor_info    : 'HL-DT-ST'
Identifikation : 'DVD-RAM GH22NS30'
Revision       : '1.02'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: CD-R
Profile: DVD-RAM
Profile: DVD+R/DL
Profile: DVD+R
Profile: DVD+RW
Profile: DVD-R/DL layer jump recording
Profile: DVD-R/DL sequential recording
Profile: DVD-RW sequential recording
Profile: DVD-RW restricted overwrite
Profile: DVD-R sequential recording
Profile: DVD-ROM
Profile: CD-RW
Profile: CD-R (current)
Profile: CD-ROM
Profile: Removable Disk
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 LAYER_JUMP
Drive buf size : 1114112 = 1088 KB
FIFO size      : 104857600 = 102400 KB
Track 01: data   505 MB
Total size:      578 MB (57:17.01) = 257776 sectors
Lout start:      578 MB (57:19/01) = 257776 sectors
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 4
Disk Is not unrestricted
Disk Is not erasable
  ATIP start of lead in:  -11607 (97:27/18)
  ATIP start of lead out: 359849 (79:59/74)
Disk type:    Short strategy type (Phthalocyanine or similar)
Manuf. index: 18
Manufacturer: Plasmon Data systems Ltd.
    Capacity  Blklen/Sparesz.  Format-type  Type
      359849             2048         0x00  Unformated or Blank Media
Blocks total: 359849 Blocks current: 359849 Blocks remaining: 102073
Starting to write CD/DVD/BD at speed 48 in real TAO mode for multi session.
Last chance to quit, starting real write in 3 seconds.
   2 seconds.
   1 seconds.
   0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
BURN-Free is OFF.
Turning BURN-Free on
Performing OPC...
Starting new track at sector: 0
Track 01:    0 of  505 MB written.
/usr/bin/cdrecord: Input/output error. write_g1: scsi sendcmd: no error
CDB:  2A 00 00 00 00 00 00 00 1F 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 72 0B 00 00 00 00 00 0E 09 0C 00 00 00 03 00 00
Sense Key: 0x0 No Additional Sense, Segment 11
Sense Code: 0x00 Qual 0x03 (setmark detected) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 40.811s timeout 40s
/usr/bin/cdrecord: A write error occured.
/usr/bin/cdrecord: Please properly read the error message above.
write track data: error after 0 bytes
Writing  time:   45.836s
Average write speed  75.0x.
Fixating...
/usr/bin/cdrecord: Input/output error. close track/session: scsi sendcmd: no error
CDB:  5B 00 02 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 2C 04 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x2C Qual 0x04 (current program area is empty) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.000s timeout 480s
=== last message repeated 2 times. ===
/usr/bin/cdrecord: Cannot fixate disk.
Fixating time:    0.002s
/usr/bin/cdrecord: fifo had 1599 puts and 1 gets.
/usr/bin/cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.

cdrecord command:
-----------------------
/usr/bin/cdrecord -v gracetime=2 dev=/dev/sr0 speed=48 -tao driveropts=burnfree -multi fs=100m -overburn -xa1 /tmp/kde-piotrek/riverside.iso

####################################

cdrecord's output when burning the same disc manually:

$ cdrecord -v obraz dev=/dev/sr0
cdrecord: No write mode specified.
cdrecord: Assuming -sao mode.
cdrecord: If your drive does not accept -sao, try -tao.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
Cdrecord-ProDVD-ProBD-Clone 3.00 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2010 Jörg Schilling
TOC Type: 1 = CD-ROM
scsidev: '/dev/sr0'
devname: '/dev/sr0'
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.9'.
SCSI buffer size: 64512
atapi: 1
Device type    : Removable CD-ROM
Version        : 5
Response Format: 2
Capabilities   : 
Vendor_info    : 'HL-DT-ST'
Identifikation : 'DVD-RAM GH22NS30'
Revision       : '1.02'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: CD-R
Profile: DVD-RAM 
Profile: DVD+R/DL 
Profile: DVD+R 
Profile: DVD+RW 
Profile: DVD-R/DL layer jump recording 
Profile: DVD-R/DL sequential recording 
Profile: DVD-RW sequential recording                                                                                                                        
Profile: DVD-RW restricted overwrite                                                                                                                        
Profile: DVD-R sequential recording                                                                                                                         
Profile: DVD-ROM                                                                                                                                            
Profile: CD-RW                                                                                                                                              
Profile: CD-R (current)
Profile: CD-ROM 
Profile: Removable Disk 
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 LAYER_JUMP
Drive buf size : 1114112 = 1088 KB
cdrecord: Warning: Drive returned invalid buffer size.
cdrecord: Warning: The DMA speed test has been skipped.
FIFO size      : 4194304 = 4096 KB
Track 01: data   503 MB        
Total size:      578 MB (57:16.98) = 257774 sectors
Lout start:      578 MB (57:18/74) = 257774 sectors
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 4
Disk Is not unrestricted
Disk Is not erasable
  ATIP start of lead in:  -11607 (97:27/18)
  ATIP start of lead out: 359849 (79:59/74)
Disk type:    Short strategy type (Phthalocyanine or similar)
Manuf. index: 18
Manufacturer: Plasmon Data systems Ltd.

    Capacity  Blklen/Sparesz.  Format-type  Type
      359849             2048         0x00  Unformated or Blank Media
Blocks total: 359849 Blocks current: 359849 Blocks remaining: 102075
Starting to write CD/DVD/BD at speed 48 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 ON.
Turning BURN-Free off
Performing OPC...
Sending CUE sheet...
cdrecord: WARNING: Drive returns wrong startsec (0) using -150
Writing pregap for track 1 at -150
Starting new track at sector: 0
Track 01:  503 of  503 MB written (fifo 100%) [buf  90%]  44.7x.
Track 01: Total bytes read/written: 527921152/527921152 (257774 sectors).
Writing  time:  127.347s
Average write speed  27.0x.
Min drive buffer fill was 90%
Fixating...
Fixating time:    2.311s
cdrecord: fifo had 8316 puts and 8316 gets.
cdrecord: fifo was 0 times empty and 5345 times full, min fill was 85%.

Reproducible: Always




OS: Linux (x86_64) release 2.6.35-zen1+
Compiler: x86_64-pc-linux-gnu-gcc
Comment 1 Piotr Mitas 2010-09-01 16:25:09 UTC
I also determined, that it's caused by -xa1 option. What does it do and does it need to be there? Is there a way to get rid of it?
Comment 2 Andrew Crouthamel 2018-11-12 02:55:21 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Andrew Crouthamel 2018-11-21 04:32:38 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Gary 2022-01-02 17:13:48 UTC
When trying to copy a CD with maybe 100 mb info, it copies and then when it writes it gets only part way through and stops dead.
What am I doing wrong??  The CD has family pixs on it---have tried numerous times.  Can burn pixs OK onto a CD but the "Copy" function has quit in the last month---maybe from an update??
Am using Ubuntu 20.4.3lts for OS.  Have tried the copy function on a Microsoft Windows machine and that works.