Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 83179

Summary: Burned data CDs corruption (kernel/cdrecord?)
Product: Gentoo Linux Reporter: Marcos González <mgtroyas>
Component: [OLD] Core systemAssignee: Lars Weiler (RETIRED) <pylon>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: 2004.3   
Hardware: All   
OS: All   
URL: http://forums.gentoo.org/viewtopic.php?p=2125273#2125273
Whiteboard:
Package list:
Runtime testing required: ---

Description Marcos González 2005-02-24 04:49:44 UTC
I've had this problem from some time (weeks): If I burn a data CD the end of the CD is unreadable (the latest sectors). When trying to copy the last file from the CD to the HD, Nautilus gives an I/O error. I get this in my /var/log/messages file:


Feb  9 10:06:50 Mutsumi ISO 9660 Extensions: Microsoft Joliet Level 3
Feb  9 10:06:50 Mutsumi ISO 9660 Extensions: RRIP_1991A
Feb  9 10:06:56 Mutsumi attempt to access beyond end of device
Feb  9 10:06:56 Mutsumi hdc: rw=0, want=406532, limit=406528
Feb  9 10:06:56 Mutsumi Buffer I/O error on device hdc, logical block 101632
Feb  9 10:06:56 Mutsumi attempt to access beyond end of device
Feb  9 10:06:56 Mutsumi hdc: rw=0, want=406536, limit=406528
Feb  9 10:06:56 Mutsumi Buffer I/O error on device hdc, logical block 101633
Feb  9 10:06:56 Mutsumi attempt to access beyond end of device
Feb  9 10:06:56 Mutsumi hdc: rw=0, want=406540, limit=406528
Feb  9 10:06:56 Mutsumi Buffer I/O error on device hdc, logical block 101634 Feb  9 10:06:56 Mutsumi attempt to access beyond end of device
Feb  9 10:06:56 Mutsumi hdc: rw=0, want=406544, limit=406528
Feb  9 10:06:56 Mutsumi Buffer I/O error on device hdc, logical block 101635
[...]



As a first thought, I associate it with the latest work is being done by dsd to allow non privileged user to write CDs. I'm using gentoo-dev-sources, and installed the ~x86 "2.6.10-r7" as in the changelog mentioned some improvements when writing CDs, but didn't solve this issue.

I've found in the forums more people with the same problem, so it doesn't seem to be my systems fault. From 'http://forums.gentoo.org/viewtopic.php?p=2125273#2125273':

"I have tried burning a vfat/joliet ISO image with cdrecord now, but it can't be read under neither Linux nor Windows.
Then I burned the same image with Easy CD Creator in Windows and it worked fine, on the same RW disc.
Cdrecord worked fine before, haven't burned any CDs for a couple of months.
All I did was
C
Comment 1 Marcos González 2005-02-24 04:49:44 UTC
I've had this problem from some time (weeks): If I burn a data CD the end of the CD is unreadable (the latest sectors). When trying to copy the last file from the CD to the HD, Nautilus gives an I/O error. I get this in my /var/log/messages file:


Feb  9 10:06:50 Mutsumi ISO 9660 Extensions: Microsoft Joliet Level 3
Feb  9 10:06:50 Mutsumi ISO 9660 Extensions: RRIP_1991A
Feb  9 10:06:56 Mutsumi attempt to access beyond end of device
Feb  9 10:06:56 Mutsumi hdc: rw=0, want=406532, limit=406528
Feb  9 10:06:56 Mutsumi Buffer I/O error on device hdc, logical block 101632
Feb  9 10:06:56 Mutsumi attempt to access beyond end of device
Feb  9 10:06:56 Mutsumi hdc: rw=0, want=406536, limit=406528
Feb  9 10:06:56 Mutsumi Buffer I/O error on device hdc, logical block 101633
Feb  9 10:06:56 Mutsumi attempt to access beyond end of device
Feb  9 10:06:56 Mutsumi hdc: rw=0, want=406540, limit=406528
Feb  9 10:06:56 Mutsumi Buffer I/O error on device hdc, logical block 101634 Feb  9 10:06:56 Mutsumi attempt to access beyond end of device
Feb  9 10:06:56 Mutsumi hdc: rw=0, want=406544, limit=406528
Feb  9 10:06:56 Mutsumi Buffer I/O error on device hdc, logical block 101635
[...]



As a first thought, I associate it with the latest work is being done by dsd to allow non privileged user to write CDs. I'm using gentoo-dev-sources, and installed the ~x86 "2.6.10-r7" as in the changelog mentioned some improvements when writing CDs, but didn't solve this issue.

I've found in the forums more people with the same problem, so it doesn't seem to be my systems fault. From 'http://forums.gentoo.org/viewtopic.php?p=2125273#2125273':

"I have tried burning a vfat/joliet ISO image with cdrecord now, but it can't be read under neither Linux nor Windows.
Then I burned the same image with Easy CD Creator in Windows and it worked fine, on the same RW disc.
Cdrecord worked fine before, haven't burned any CDs for a couple of months.
All I did was
Código:
  cdrecord dev=0,0,0 blank=fast
  cdrecord dev=0,0,0 cd.iso -v
as root. No error messages."



"I'm having this problem too; only with CDs, burning DVDs works fine. I've tried burning directly with cdrecord and from k3b, both produce discs that are perfect up until the very end of the disc, where it becomes unreadable. Scanning the discs with readcd -c2scan tells the same story: no errors at all until the last sector, which is completely corrupted."



I'm currently using:
cdrecord-prodvd: 2.01_beta31
gentoo-dev-sources: 2.6.10-r7



Here is my emerge info in case it's needed:



marcos@Mutsumi ~ $ sudo emerge info
Portage 2.0.51-r15 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r7 i686)
=================================================================
System uname: 2.6.10-gentoo-r7 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 18:57:23)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig distlocks fixpackages sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="es_ES@euro"
LC_ALL="es_ES@euro"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/portage /usr/local/overlays/deltup /usr/local/overlays/bmg-main"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 16bit 3dnow 3dnowex S3TC X aac aalib acpi acpi4linux alsa apache2 apm artworkextra atlas audiofile avi bash-completion beepmp berkdb bitmap-fonts blender-game bmp bonobo bzip2 bzlib c++ cacheemu cddb cdparanoia cdr cdrom cgi codecs cpdflib crypt cscope css cups curl dga directfb divx4linux doc droproot dv dvd dvdr eds emboss emoticon encode esd evo exif exim extensions f77 fam fbcon ffmpeg fftw flac flash fmod foomaticdb fortran freetype ftp gb gd gdbm gif gimp gimpprint gkrellm glade glep glut gmail gnome gnuplot gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml guile hal icon icq icu image imagekits imagemagick imap imlib imlib2 intl ipv6 ithreads j2ee jabber java javascript joystick jp2 jpeg jpeg2k junit justify latex lcd lcms ldap libcaca libg++ libwww live lm_sensors lmtp lua lzw lzw-tiff mad maildir maps mikmod mime mixer mjpeg mmx mmx2 mng mono mozilla moznocompose moznoirc moznomail mozp3p mozsvg mp3 mpeg mplayer msn music mysql mysqli nas ncurses net network nls nntp nocardbus nomotif noplugin noqmax nptl ntlm nvidia offensive oggvorbis openal opengl oscar oss pam pdf pdflib perl php physfs pic plotutils png pnp ppds print pthreads python qhull quicktime readline real rogue rtc sdl slang slp smime softmmu sounds sox speex spell sse ssl stencil-buffer svg svga tcltk tcpd tetex tga theora threads thumbnail tidy tiff timidity truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 videos vim vim-pager vim-with-x virus-scan vnc wmf xatrix xface xine xinetd xml xml2 xmms xosd xpm xprint xrandr xscreensaver xv xvid xvmc yahoo zlib linguas_en linguas_es"
Unset:  ASFLAGS, CBUILD, CTARGET
Comment 2 Lars Weiler (RETIRED) gentoo-dev 2005-03-29 13:47:52 UTC
I guess you are using an ATA-CD-writer instead of a SCSI writer.  Please turn off scsi-emulation and try with cdrecord dev=/dev/hdX where X is the device of your CD-recorder.
Comment 3 Marcos González 2005-03-29 13:59:16 UTC
I've deactivated scsi-emulation months ago.

marcos@Mutsumi linux $ cat /usr/src/.marcos-2.6.11 | grep IDESCSI
# CONFIG_BLK_DEV_IDESCSI is not set
# CONFIG_CD_NO_IDESCSI is not set

I'll try using cdrecord directly, but that's what nautilus-cd-burner and the other frontends are supposed to do, isn't it?
Comment 4 Lars Weiler (RETIRED) gentoo-dev 2005-03-29 15:06:44 UTC
Please test cdrecord on the command-line first.  If that works we are sure it's a problem with nautilus-cd-burner.