Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79976 - CD recording software problems with kernel 2.6.10-r6
Summary: CD recording software problems with kernel 2.6.10-r6
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Optical Media project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-29 11:09 UTC by Melendro
Modified: 2005-06-10 09:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Kernel config file (config-2.6.10-gentoo-r6,27.48 KB, text/plain)
2005-01-29 11:10 UTC, Melendro
Details
kernel config from Darknight (.config,29.56 KB, text/plain)
2005-02-03 06:00 UTC, subscryer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Melendro 2005-01-29 11:09:36 UTC
When trying to burn a CD image, cdrdao fails with:

==========================================================
$ cdrdao write --device /dev/hdc --driver generic-mmc:0x00000010 --speed 4 -n -v 9 --force --eject --remote 18 /tmp/test.toc
Cdrdao version 1.1.9 - (C) Andreas Mueller <andreas@daneb.de>
  SCSI interface library - (C) Joerg Schilling
  Paranoia DAE library - (C) Monty

Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.

SCSI: max DMA: 64512
Using libscg version 'schily-0.8'
Using libscg transport code version 'schily-scsi-linux-sg.c-1.83'

/dev/hdc: HL-DT-ST DVDRAM GSA-4160B     Rev: A300
Using driver: Generic SCSI-3/MMC - Version 2.0 (options 0x0010)

Burning entire 79 mins disc.
WARNING: Cannot get flags of remote stream: Bad file descriptor
Starting write at speed 4...
Process can be aborted with QUIT signal (usually CTRL-\).
ERROR: Cannot prevent/allow medium removal.
==========================================================

With cdrecord it doesn't fail but gives the same error, now only a warning, along with others:

==========================================================

$ cdrecord -v -v -v gracetime=1 dev=/dev/hdc speed=4 -tao driveropts=burnfree -eject -xa /tmp/test.iso
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 J
Comment 1 Melendro 2005-01-29 11:09:36 UTC
When trying to burn a CD image, cdrdao fails with:

==========================================================
$ cdrdao write --device /dev/hdc --driver generic-mmc:0x00000010 --speed 4 -n -v 9 --force --eject --remote 18 /tmp/test.toc
Cdrdao version 1.1.9 - (C) Andreas Mueller <andreas@daneb.de>
  SCSI interface library - (C) Joerg Schilling
  Paranoia DAE library - (C) Monty

Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.

SCSI: max DMA: 64512
Using libscg version 'schily-0.8'
Using libscg transport code version 'schily-scsi-linux-sg.c-1.83'

/dev/hdc: HL-DT-ST DVDRAM GSA-4160B     Rev: A300
Using driver: Generic SCSI-3/MMC - Version 2.0 (options 0x0010)

Burning entire 79 mins disc.
WARNING: Cannot get flags of remote stream: Bad file descriptor
Starting write at speed 4...
Process can be aborted with QUIT signal (usually CTRL-\).
ERROR: Cannot prevent/allow medium removal.
==========================================================

With cdrecord it doesn't fail but gives the same error, now only a warning, along with others:

==========================================================

$ cdrecord -v -v -v gracetime=1 dev=/dev/hdc speed=4 -tao driveropts=burnfree -eject -xa /tmp/test.iso
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.10-gentoo-r6
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: 3 = CD-ROM XA mode 2
cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2).
cdrecord: WARNING: This causes a high risk for buffer underruns.
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
scsidev: '/dev/hdc'
devname: '/dev/hdc'
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'.
Using libscg transport code version 'schily-scsi-linux-sg.c-1.83'
Driveropts: 'burnfree'
SCSI buffer size: 64512
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'HL-DT-ST'
Identifikation : 'DVDRAM GSA-4160B'
Revision       : 'A300'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x000A
Profile: 0x0012
Profile: 0x0011
Profile: 0x0014
Profile: 0x0013
Profile: 0x001A
Profile: 0x001B
Profile: 0x002B
Profile: 0x0010
Profile: 0x0009
Profile: 0x000A (current)
Profile: 0x0008
Profile: 0x0002
cdrecord: This version of cdrecord does not include DVD-R/DVD-RW support code.
cdrecord: If you need DVD-R/DVD-RW support, ask the Author for cdrecord-ProDVD.
cdrecord: Free test versions and free keys for personal use are at ftp://ftp.berlios.de/pub/cdrecord/ProDVD/
Drive current speed: 4
Drive default speed: 4
Drive max speed    : 4
Selected speed     : 4
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 : 1053696 = 1029 KB
Drive DMA Speed: 13903 kB/s 78x CD 10x DVD
FIFO size      : 4194304 = 4096 KB
Track 01: data   695 MB
track: 1 start: 0 pregap: 150
Total size:      799 MB (79:10.61) = 356296 sectors
Lout start:      799 MB (79:12/46) = 356296 sectors
 41 00 00 FC 00 00 00 00
 41 01 00 FF 00 00 00 00
 41 01 01 FF 00 00 02 00
 41 AA 01 FC 00 4F 0C 2E
Track 1 start 0
Track 2 start 356296
 41 00 A0 00 00 00 00 01 20 00 00 00
 41 00 A1 00 00 00 00 01 00 00 00 00
 41 00 A2 00 00 00 00 79 12 46 00 00
 41 00 01 00 00 00 00 00 02 00 00 00
cdrecord: Operation not permitted. prevent/allow medium removal: scsi sendcmd:no error
CDB:  1E 00 00 00 01 00
status: 0x0 (GOOD STATUS)
cmd finished after 0.000s timeout 40s
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 6
  Reference speed: 2
  Is not unrestricted
  Is erasable
  ATIP start of lead in:  -11078 (97:34/22)
  ATIP start of lead out: 359849 (79:59/74)
  1T speed low:  0 (reserved val  0) 1T speed high:  4
  2T speed low:  0 (reserved val  5) 2T speed high:  0 (reserved val 12)
  power mult factor: 3 5
  recommended erase/write power: 3
  A1 values: 02 3A B0
  A2 values: 5C C6 26
Disk type:    Phase change
Manuf. index: 11
Manufacturer: Mitsubishi Chemical Corporation
Blocks total: 359849 Blocks current: 359849 Blocks remaining: 3553
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
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.
BURN-Free is OFF.
Turning BURN-Free on
Performing OPC...
Starting new track at sector: 0


==========================================================

Both cdrdao and cdrecord are not suid and I haven't changed them in more than one month. I think the problem is in the kernel, as it is the only thing I have changed lately.

Reproducible: Always
Steps to Reproduce:
1. emerge cdrdao-1.1.9 and gentoo-dev-sources-2.6.10-r6
2. kernel config file is attached
3. write a CD using cdrdao

Actual Results:  
cdrdao fails

Expected Results:  
write the CD

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Oct 17 2004, 21:16:45)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.9.4, 1.6.3, 1.4_p6, 1.7.9-r1, 1.8.5-r3
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="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://linuv.uv.es/mirror/gentoo/
http://ftp.caliu.info/pub/gentoo/ ftp://ftp.caliu.info/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib alsa apm arts artswrappersuid audiofile avi berkdb
bidibitmap-fonts cdparanoia cdr crypt cups divx4linux dvd dvdr edl encode esd
f77 fam flac font-server foomaticdb fortran gdbm gif gimpprint gpg gphoto2 gpm
gtk gtk2 imagemagick imlib java jpeg kde libcaca libg++ libwww mad mailwrapper
mikmod motif mozilla mpeg ncurses network nls nodroproot oggvorbis opengl oss
pam pdflib perl png python qt quicktime readline rtc samba scanner sdl slang
smime spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode usb
wxwindows xml xml2 xprint xv xvid zlib video_cards_radeon"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 2 Melendro 2005-01-29 11:10:57 UTC
Created attachment 49853 [details]
Kernel config file
Comment 3 subscryer 2005-02-03 05:50:54 UTC
I have the same problem.
Attached my kernel config too, 2.6.7-gentoo-r14 with VERY similar config works.
Comment 4 subscryer 2005-02-03 05:53:18 UTC
Sorry, forgot my emerge info.

Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan  4 2005, 14:02:15)]
dev-lang/python:     2.3.4
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.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=athlon-tbird -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/lib/jboss /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=athlon-tbird -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.du.se/pub/os/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups encode esd f77 fam flac font-server foomaticdb fortran gdbm gif gpm gtk gtk2 imagemagick imlib java jpeg junit kde libg++ libwww mad mikmod mmx motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts xml2 xmms xscreensaver xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 5 subscryer 2005-02-03 06:00:16 UTC
Created attachment 50261 [details]
kernel config from Darknight
Comment 6 Lars Weiler (RETIRED) gentoo-dev 2005-06-10 09:03:24 UTC
As all systems should have updated to 2.6-headers and a 2.6.11-kernel, I don't
think, this is still a problem.  Otherwise, reopen this bug.