| Summary: | dvd+rw-tools - growisofs/cdrecord fail with input/output error | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Lee Trager <nukem996> |
| Component: | Current packages | Assignee: | Gentoo Optical Media project <media-optical> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | major | CC: | syntaxerrormmm |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | k3b debug output | ||
|
Description
Lee Trager
2005-09-06 22:40:15 UTC
Also note that it does not appear to be related to bug #95357 I tried their patch and ebuild I get the same results. I think this problem is with mkisofs/cdrecord. I just tried to burn a normal data CD and I got an error. System ----------------------- K3b Version: 0.12 KDE Version: 3.4.2 QT Version: 3.3.4 Kernel: 2.6.13-gentoo Devices ----------------------- PIONEER DVD-RW DVR-108 1.20 (/dev/hda, ) at /mnt/cdrom [CD-R; CD-RW; CD-ROM; DVD-ROM; DVD-R; DVD-RW; DVD+R; DVD+RW; DVD+R DL] [DVD-ROM; DVD-R Sequential; DVD-RW Restricted Overwrite; DVD-RW Sequential; DVD+RW; DVD+R; DVD+R Double Layer; CD-ROM; CD-R; CD-RW] [SAO; TAO; RAW; SAO/R96P; SAO/R96R; RAW/R16; RAW/R96P; RAW/R96R; Restricted Overwrite] K3b ----------------------- Size of filesystem calculated: 63299 Used versions ----------------------- mkisofs: 2.1 cdrecord: 2.1.1a01 cdrecord ----------------------- /usr/bin/cdrecord: Warning: Running on Linux-2.6.13-gentoo /usr/bin/cdrecord: There are unsettled issues with Linux-2.5 and newer. /usr/bin/cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris. /usr/bin/cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2). /usr/bin/cdrecord: WARNING: This causes a high risk for buffer underruns. /usr/bin/cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler /usr/bin/cdrecord: Permission denied. WARNING: Cannot set priority using setpriority(). /usr/bin/cdrecord: WARNING: This causes a high risk for buffer underruns. scsidev: '/dev/hda' devname: '/dev/hda' 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: This version of cdrecord does not include DVD-R/DVD-RW support code. /usr/bin/cdrecord: If you need DVD-R/DVD-RW support, ask the Author for cdrecord-ProDVD. /usr/bin/cdrecord: Free test versions and free keys for personal use are at ftp://ftp.berlios.de/pub/cdrecord/ProDVD/ Cdrecord-Clone 2.01.01a01 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2004 J I think this problem is with mkisofs/cdrecord. I just tried to burn a normal data CD and I got an error. System ----------------------- K3b Version: 0.12 KDE Version: 3.4.2 QT Version: 3.3.4 Kernel: 2.6.13-gentoo Devices ----------------------- PIONEER DVD-RW DVR-108 1.20 (/dev/hda, ) at /mnt/cdrom [CD-R; CD-RW; CD-ROM; DVD-ROM; DVD-R; DVD-RW; DVD+R; DVD+RW; DVD+R DL] [DVD-ROM; DVD-R Sequential; DVD-RW Restricted Overwrite; DVD-RW Sequential; DVD+RW; DVD+R; DVD+R Double Layer; CD-ROM; CD-R; CD-RW] [SAO; TAO; RAW; SAO/R96P; SAO/R96R; RAW/R16; RAW/R96P; RAW/R96R; Restricted Overwrite] K3b ----------------------- Size of filesystem calculated: 63299 Used versions ----------------------- mkisofs: 2.1 cdrecord: 2.1.1a01 cdrecord ----------------------- /usr/bin/cdrecord: Warning: Running on Linux-2.6.13-gentoo /usr/bin/cdrecord: There are unsettled issues with Linux-2.5 and newer. /usr/bin/cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris. /usr/bin/cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2). /usr/bin/cdrecord: WARNING: This causes a high risk for buffer underruns. /usr/bin/cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler /usr/bin/cdrecord: Permission denied. WARNING: Cannot set priority using setpriority(). /usr/bin/cdrecord: WARNING: This causes a high risk for buffer underruns. scsidev: '/dev/hda' devname: '/dev/hda' 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: This version of cdrecord does not include DVD-R/DVD-RW support code. /usr/bin/cdrecord: If you need DVD-R/DVD-RW support, ask the Author for cdrecord-ProDVD. /usr/bin/cdrecord: Free test versions and free keys for personal use are at ftp://ftp.berlios.de/pub/cdrecord/ProDVD/ Cdrecord-Clone 2.01.01a01 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling TOC Type: 3 = CD-ROM XA mode 2 Using libscg version 'schily-0.8'. Driveropts: 'burnfree' atapi: 1 Device type : Removable CD-ROM Version : 0 Response Format: 2 Capabilities : Vendor_info : 'PIONEER ' Identifikation : 'DVD-RW DVR-108 ' Revision : '1.20' Device seems to be: Generic mmc2 DVD-R/DVD-RW. Current: 0x0009 Profile: 0x002B Profile: 0x001B Profile: 0x001A Profile: 0x0014 Profile: 0x0013 Profile: 0x0011 Profile: 0x0010 Profile: 0x000A Profile: 0x0009 (current) 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 : 1267712 = 1238 KB FIFO size : 4194304 = 4096 KB /usr/bin/cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler /usr/bin/cdrecord: Permission denied. WARNING: Cannot set priority using setpriority(). /usr/bin/cdrecord: WARNING: This causes a high risk for buffer underruns. Track 01: data 123 MB Total size: 141 MB (14:04.01) = 63301 sectors Lout start: 142 MB (14:06/01) = 63301 sectors Current Secsize: 2048 ATIP info from disk: Indicated writing power: 6 Is not unrestricted Is not erasable Disk sub type: Medium Type C, low Beta category (C-) (6) ATIP start of lead in: -11231 (97:32/19) ATIP start of lead out: 359846 (79:59/71) Disk type: Short strategy type (Phthalocyanine or similar) Manuf. index: 27 Manufacturer: Prodisc Technology Inc. Blocks total: 359846 Blocks current: 359846 Blocks remaining: 296545 Starting to write CD/DVD at speed 32 in real TAO mode for multi session. Last chance to quit, starting real write in 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 123 MB written. Track 01: 1 of 123 MB written (fifo 96%) [buf 92%] 15.9x. Track 01: 2 of 123 MB written (fifo 96%) [buf 89%] 15.1x. Track 01: 3 of 123 MB written (fifo 100%) [buf 79%] 15.0x. Track 01: 4 of 123 MB written (fifo 96%) [buf 91%] 19.2x. Track 01: 5 of 123 MB written (fifo 100%) [buf 81%] 14.9x. Track 01: 6 of 123 MB written (fifo 96%) [buf 93%] 19.2x. Track 01: 7 of 123 MB written (fifo 100%) [buf 83%] 14.9x. Track 01: 8 of 123 MB written (fifo 98%) [buf 95%] 19.0x. Track 01: 9 of 123 MB written (fifo 98%) [buf 84%] 14.8x. /usr/bin/cdrecord: Input/output error. write_g1: scsi sendcmd: cmd timeout after 0.000 (40) s CDB: 2A 00 00 00 12 C5 00 00 1F 00 Sense Bytes: Sense Key: 0xFFFFFFFF [], Segment 0 Sense Code: 0x00 Qual 0x00 (no additional sense information) Fru 0x0 Sense flags: Blk 0 (not valid) resid: 63488 cmd finished after 0.000s timeout 40s /usr/bin/cdrecord: A write error occured. /usr/bin/cdrecord: Please properly read the error message above. write track data: error after 9840640 bytes Writing time: 24.162s Average write speed 91.4x. Min drive buffer fill was 79% Fixating... Fixating time: 16.401s /usr/bin/cdrecord: fifo had 219 puts and 156 gets. /usr/bin/cdrecord: fifo was 0 times empty and 54 times full, min fill was 92%. cdrecord command: ----------------------- /usr/bin/cdrecord -v gracetime=2 dev=/dev/hda speed=32 -tao driveropts=burnfree -multi -xa -tsize=63299s - mkisofs ----------------------- 63299 0.81% done, estimate finish Wed Sep 7 22:02:54 2005 1.59% done, estimate finish Wed Sep 7 22:01:53 2005 2.38% done, estimate finish Wed Sep 7 22:01:33 2005 3.16% done, estimate finish Wed Sep 7 22:01:22 2005 3.97% done, estimate finish Wed Sep 7 22:08:24 2005 4.74% done, estimate finish Wed Sep 7 22:07:31 2005 5.54% done, estimate finish Wed Sep 7 22:06:34 2005 6.33% done, estimate finish Wed Sep 7 22:06:06 2005 7.12% done, estimate finish Wed Sep 7 22:05:31 2005 7.90% done, estimate finish Wed Sep 7 22:05:04 2005 8.70% done, estimate finish Wed Sep 7 22:04:52 2005 9.48% done, estimate finish Wed Sep 7 22:04:32 2005 10.29% done, estimate finish Wed Sep 7 22:04:24 2005 mkisofs command: ----------------------- /usr/bin/mkisofs -gui -graft-points -volid School Work 2004 - 2005 -volset -appid K3B THE CD KREATOR (C) 1998-2005 SEBASTIAN TRUEG AND THE K3B TEAM -publisher -preparer -sysid LINUX -volset-size 1 -volset-seqno 1 -sort /tmp/kde-nuke/k3b1rSita.tmp -rational-rock -hide-list /tmp/kde-nuke/k3bq5kbjb.tmp -joliet -hide-joliet-list /tmp/kde-nuke/k3bhg1owb.tmp -full-iso9660-filenames -iso-level 2 -path-list /tmp/kde-nuke/k3bSXxR8a.tmp It seems to be a kernel problem. I've searched in kernel mailing list and some users report the same problem, for kernel version >=2.6.13. Read more: http://lkml.org/lkml/2005/9/14/395 # emerge info Portage 2.0.53_rc7 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14-gentoo-r3 i686) ================================================================= System uname: 2.6.14-gentoo-r3 i686 Mobile AMD Athlon(tm) XP 2600+ Gentoo Base System version 1.12.0_pre11 ccache version 2.4 [enabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.14 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -funroll-loops" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.channelx.biz/ http://gentoo.prz.rzeszow.pl http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.phy.olemiss.edu/mirror/gentoo" LANG="it_IT" LC_ALL="it_IT.utf8" LINGUAS="it" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X aac aalib acpi acpi4linux adns aim aliaschain alsa altcolors apache2 apm audiofile avi bash-completion bdf berkdb bindist bitmap-fonts blender-game bmp bzip2 bzlib cddb cdparanoia cdr cdrom cgi cle266 cpdflib crypt cups curl curlwrappers dba dbase dbus devfs26 dga dillo divx4linux dnd dvd dvdr dvdread eds emboss encode esd ethereal exif expat faac fam fastcgi fbcon ffmpeg fftw flac foomaticdb fortran freetype ftp gd gdbm geoip gif gimp gimpprint glade glut gmp gnome gnutls gps gs gstreamer gtk gtk2 gtkhtml guile hal howl iconv icq idn ieee1394 imagemagick imap imlib imlib2 irda jabber jack javascript joystick jpeg kerberos lcms lesstif libcaca libg++ libgda libwww live lzw lzw-tiff mad matroska mbox md5sum mhash mikmod mime mmap mmx mng motif mozcalendar mozilla mozsvg mp3 mpeg mpeg4 mplayer msn music mythtv ncurses nls nptl nsplugin nviz odbc offensive ogg oggvorbis opengl opens oss pam pcmcia pcre pdflib perl php pic png pnp posix postgres ppds print python qt quicktime readline real recode rtc samba sdl slang sndfile soap sockets sox spamassassin speedo speex spell spl sqlite sse ssl svg svga sysvipc szip t1lib tcltk tcpd tetex tga theora threads tiff timidity truetype truetype-fonts type1 type1-fonts udev unicode usb v4l v4l2 vcd videos vorbis win32codecs wmf wxwindows xanim xchatdccserver xine xinerama xml xml2 xmlrpc xosd xpm xsl xv xvid xvmc yahoo yv12 zlib video_cards_via linguas_it userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY Workaround: burn DVD with kernel <2.6.13. I'm searching for possibly fault code in kernel sources, 2.6.12 and 2.6.13, probably in ide_cd module. Created attachment 77658 [details]
k3b debug output
I was burning my DVDs just fine with the 2.6.14 kernel untill I decided to do gentoo update last week. After updating about 90 packages, and keeping the same kernel, every other DVD that I tried to burn would fail with: ":-( unable to PERFORM OPC: Input/output error" see the full k3b output in the attachments. (k3b debug output) I thought this was a bug in the new k3b, but after performing the growisofs command mentioned in the debug info, I got the same error once, and the second time, the DVD burned fine... Seeing that there is only one version of dvd+rw-tools in portage, I can't see which upgraded package actually causes this problem. In my case, I noticed that after the error occurs dmesg prints:
hdc: irq timeout: status=0x90 { Busy }
ide: failed opcode was: unknown
hdc: DMA disabled
hdc: ATAPI reset complete
hdc: lost interrupt
and something turns off DMA on my dvd burner according to hdparm
I had the same (?) input/output error with version 5.21. It seemed like DVDs had only the lenght of CDs, any further writing (somewhere above 700MB) resulted in an error.
I 'solved' the problem by upgrading to dvd+rw-tools' unstable version 6.1.
This was a typical output growisofs gave:
-----------------
# growisofs -Z /dev/hdd=/tmp/k3b_image.img -dvd-compat
WARNING: /dev/hdd already carries isofs!
About to execute 'builtin_dd if=/tmp/k3b_image.img of=/dev/hdd obs=32k seek=0'
/dev/hdd: "Current Write Speed" is 4.1x1385KBps.
26738688/2589972480 ( 1.0%) @3.9x, remaining 9:35
45252608/2589972480 ( 1.7%) @3.9x, remaining 9:22
63766528/2589972480 ( 2.5%) @3.9x, remaining 8:35
79298560/2589972480 ( 3.1%) @3.3x, remaining 8:26
97812480/2589972480 ( 3.8%) @3.9x, remaining 8:29
116359168/2589972480 ( 4.5%) @3.9x, remaining 8:08
134873088/2589972480 ( 5.2%) @3.9x, remaining 7:53
153387008/2589972480 ( 5.9%) @3.9x, remaining 7:56
171900928/2589972480 ( 6.6%) @3.9x, remaining 7:44
190447616/2589972480 ( 7.4%) @3.9x, remaining 7:33
208961536/2589972480 ( 8.1%) @3.9x, remaining 7:35
227475456/2589972480 ( 8.8%) @3.9x, remaining 7:26
245989376/2589972480 ( 9.5%) @3.9x, remaining 7:18
264536064/2589972480 (10.2%) @3.9x, remaining 7:19
283049984/2589972480 (10.9%) @3.9x, remaining 7:11
293732352/2589972480 (11.3%) @2.3x, remaining 7:17
312213504/2589972480 (12.1%) @3.9x, remaining 7:17
324763648/2589972480 (12.5%) @2.6x, remaining 7:19
334725120/2589972480 (12.9%) @2.1x, remaining 7:24
350420992/2589972480 (13.5%) @3.3x, remaining 7:27
368934912/2589972480 (14.2%) @3.9x, remaining 7:19
387448832/2589972480 (15.0%) @3.9x, remaining 7:12
405962752/2589972480 (15.7%) @3.9x, remaining 7:10
424476672/2589972480 (16.4%) @3.9x, remaining 7:03
441974784/2589972480 (17.1%) @3.7x, remaining 6:57
454295552/2589972480 (17.5%) @2.6x, remaining 7:03
472776704/2589972480 (18.3%) @3.9x, remaining 6:56
491323392/2589972480 (19.0%) @3.9x, remaining 6:50
509870080/2589972480 (19.7%) @3.9x, remaining 6:47
528384000/2589972480 (20.4%) @3.9x, remaining 6:41
546897920/2589972480 (21.1%) @3.9x, remaining 6:35
565411840/2589972480 (21.8%) @3.9x, remaining 6:33
581500928/2589972480 (22.5%) @3.4x, remaining 6:30
600014848/2589972480 (23.2%) @3.9x, remaining 6:24
618528768/2589972480 (23.9%) @3.9x, remaining 6:22
637075456/2589972480 (24.6%) @3.9x, remaining 6:17
655589376/2589972480 (25.3%) @3.9x, remaining 6:11
674103296/2589972480 (26.0%) @3.9x, remaining 6:09
692617216/2589972480 (26.7%) @3.9x, remaining 6:04
711163904/2589972480 (27.5%) @3.9x, remaining 5:59
728465408/2589972480 (28.1%) @3.7x, remaining 5:57
735051776/2589972480 (28.4%) @1.4x, remaining 6:00
738852864/2589972480 (28.5%) @0.8x, remaining 6:08
744620032/2589972480 (28.8%) @1.2x, remaining 6:11
:-[ WRITE@LBA=58d00h failed with SK=4h/ASC=A0h/ACQ=80h]: Input/output error
builtin_dd: 363776*2KB out @ average 3.5x1385KBps
:-( write failed: Input/output error
/dev/hdd: flushing cache
/dev/hdd: writing lead-out
:-[ CLOSE SESSION failed with SK=4h/ASC=09h/ACQ=01h]: Input/output error
These are typical dmesg errors I had:
------------------
[...]
hdd: command error: status=0x51 { DriveReady SeekComplete Error }
hdd: command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
ide: failed opcode was: unknown
end_request: I/O error, dev hdd, sector 0
[...]
attempt to access beyond end of device
hdd: rw=0, want=4607396, limit=4
[...]
UDF-fs: No partition found (1)
attempt to access beyond end of device
hdd: rw=0, want=68, limit=4
isofs_fill_super: bread failed, dev=hdd, iso_blknum=16, block=16
hdd: command error: status=0x51 { DriveReady SeekComplete Error }
hdd: command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
ide: failed opcode was: unknown
end_request: I/O error, dev hdd, sector 0
For further information see the forum thread I started: http://forums.gentoo.org/viewtopic-t-450282-highlight-.html
I had this error: :-( Failed to change write speed: 2770->3324 and it went away after I upgraded to dvd+rw-tools-6.1, it's probably safe to mark it stable, imo. also got this while upgrading: QA Notice: ECLASS 'portability' inherited illegally in app-cdr/dvd+rw-tools-5.21.4.10.8 i've been getting a lot of these recently.. Can you test with app-cdr/cdrkit-{1.0,1.1.0} and app-cdr/dvd+rw-tools-7.0?
|