Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 305727 - app-cdr/cdrdao fails to detect devices
Summary: app-cdr/cdrdao fails to detect devices
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Optical Media project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-18 11:38 UTC by Doktor Notor
Modified: 2010-02-18 19:50 UTC (History)
0 users

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


Attachments
kernel .config (config,69.06 KB, text/plain)
2010-02-18 11:41 UTC, Doktor Notor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Doktor Notor 2010-02-18 11:38:42 UTC
This doesn't find anything, neither as user (yes, I'm in cdrom group), nor as root.

[ebuild   R   ] app-cdr/cdrkit-1.1.10  USE="-debug -hfs unicode" 
[ebuild   R   ] app-cdr/cdrdao-1.2.3_rc2  USE="encode gcdmaster mad -pccts vorbis" 

$ cdrdao scanbus
Cdrdao version 1.2.3rc2 - (C) Andreas Mueller <andreas@daneb.de>

$ strace -eopen cdrdao scanbus

...

Cdrdao version 1.2.3rc2 - (C) Andreas Mueller <andreas@daneb.de>
open("/sys/bus/scsi/devices", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3
open("/sys/bus/scsi/devices/0:0:0:0/type", O_RDONLY) = 3
open("/sys/bus/scsi/devices/1:0:0:0/type", O_RDONLY) = 3
open("/sys/bus/scsi/devices/host0/type", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/sys/bus/scsi/devices/host1/type", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/sys/bus/scsi/devices/target0:0:0/type", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/sys/bus/scsi/devices/target1:0:0/type", O_RDONLY) = -1 ENOENT (No such file or directory)

Well, considering the above two are SATA HDDs (/dev/sd[ab]) and DVD-RW is sitting on IDE as /dev/hdc that can't have much success. 

Probing IDE interface ide0...
hda: Hitachi HDS721616PLAT80, ATA DISK drive
hda: host max PIO5 wanted PIO255(auto-tune) selected PIO4
hda: UDMA/133 mode selected
Probing IDE interface ide1...
hdc: HL-DT-ST DVDRAM GSA-4167B, ATAPI CD/DVD-ROM drive
hdc: host max PIO5 wanted PIO255(auto-tune) selected PIO4
hdc: UDMA/33 mode selected
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
ide-gd driver 1.18
hda: max request size: 512KiB
hda: 312581808 sectors (160041 MB) w/7376KiB Cache, CHS=19457/255/63
hda: cache flushes supported
 hda: hda1 hda2 hda3 hda4
ide-cd driver 5.00
ide-cd: hdc: ATAPI 48X DVD-ROM DVD-R/RAM CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20

sata_sil 0000:01:0b.0: PCI INT A -> Link[LNK3] -> GSI 11 (level, low) -> IRQ 11
scsi0 : sata_sil
scsi1 : sata_sil
ata1: SATA max UDMA/100 mmio m512@0xe5005000 tf 0xe5005080 irq 11
ata2: SATA max UDMA/100 mmio m512@0xe5005000 tf 0xe50050c0 irq 11
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
ata1.00: ATA-6: WDC WD1600JD-00GBB0, 02.05D02, max UDMA/100
ata1.00: 312581808 sectors, multi 16: LBA48 
ata1.00: applying bridge limits
ata1.00: configured for UDMA/100
scsi 0:0:0:0: Direct-Access     ATA      WDC WD1600JD-00G 02.0 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 312581808 512-byte logical blocks: (160 GB/149 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3 sda4 < sda5 >
sd 0:0:0:0: [sda] Attached SCSI disk
ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
ata2.00: ATA-8: WDC WD1001FALS-00E8B0, 05.00K05, max UDMA/133
ata2.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata2.00: configured for UDMA/100
scsi 1:0:0:0: Direct-Access     ATA      WDC WD1001FALS-0 05.0 PQ: 0 ANSI: 5
sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdb: sdb1 sdb2 < sdb5 >
sd 1:0:0:0: [sdb] Attached SCSI disk


Portage 2.1.7.17 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.32-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r5-i686-AMD_Athlon-tm-_XP_2800+-with-gentoo-2.0.1
Timestamp of tree: Thu, 18 Feb 2010 08:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p2
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc:       4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --keep-going"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz/ http://ftp.fi.muni.cz/pub/linux/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="cs en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--prune-empty-dirs --omit-dir-times"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/php-testing /var/lib/layman/php-experimental /var/lib/layman/webapps-experimental /var/lib/layman/sunrise /var/lib/layman/enlightenment /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X X509 a52 aac aalib acl acpi alsa amr ao bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cleartype cli cracklib crypt css cups curl cvs cxx dbus directfb djvu dri dts dv dvd dvdr encode exif faac faad fam fat fbcon ffmpeg firefox flac flash fontconfig ftp fuse gd gdbm ggi gif git gpm gs gsm gstreamer gtk hal iconv id3tag idn ieee1394 imagemagick imap ipv6 irda jbig jpeg jpeg2k ladspa lame lcms libcaca libnotify libsamplerate lirc lm_sensors lock lzo mad maildir matroska mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap musepack musicbrainz ncurses network network-cron nfs nfsv3 nfsv4 nls nptl nptlonly nsplugin ntfs offensive ogg openal openexr opengl openmp pam pcre pdf perl pkcs11 plotutils png portaudio ppds pppd python quicktime raw readline reflection reiserfs schroedinger sdl session shorten skey sndfile sox speex spell spl sqlite sse ssl startup-notification subversion svg symlink sysfs taglib tcpd theora thunar tiff truetype unicode usb v4l v4l2 vcd vorbis wavpack win32codecs wmf x264 x86 xattr xcb xinerama xinetd xml xorg xpm xulrunner xv xvid xvmc zlib" ALSA_CARDS="emu10k1 bt87x" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard lirc mouse vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en" LIRC_DEVICES="cph06x devinput" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia v4l vmware" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Doktor Notor 2010-02-18 11:41:32 UTC
Created attachment 220147 [details]
kernel .config

Just in case I'd be useful from something :)
Comment 2 Doktor Notor 2010-02-18 11:49:29 UTC
Also: 

$ wodim -scanbus
scsibus1000:
	1000,0,0 100000) *
	1000,1,0 100001) *
	1000,2,0 100002) 'HL-DT-ST' 'DVDRAM GSA-4167B' 'DL13' Removable CD-ROM
	1000,3,0 100003) *
	1000,4,0 100004) *
	1000,5,0 100005) *
	1000,6,0 100006) *
	1000,7,0 100007) *

Really dunno what's cdrdao doing here. 
Comment 3 Rafał Mużyło 2010-02-18 13:29:16 UTC
Well, there are a few problems here.
The very first is that 1.2.3 was released on 2009-10-05.

The other - you should migrate your kernel to pure libata 
setup.
Then again, scan should probably work anyway.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-02-18 13:57:12 UTC
(In reply to comment #3)
> Well, there are a few problems here.
> The very first is that 1.2.3 was released on 2009-10-05.

1.2.3 is now in Portage.
Comment 5 Doktor Notor 2010-02-18 16:37:43 UTC
(In reply to comment #4)
> 1.2.3 is now in Portage.

Thanks, will try... Wrt the libata suggestion - well, that made the system unbootable for me :) 
Comment 6 Doktor Notor 2010-02-18 17:42:47 UTC
Well, no change w/ app-cdr/cdrdao-1.2.3. Wrt libata-only kernels, well - I removed all the other HDDs to be able to boot - and it works. 

$ cdrdao scanbus
Cdrdao version 1.2.3 - (C) Andreas Mueller <andreas@daneb.de>
/dev/sr0 : HL-DT-ST, DVDRAM GSA-4167B, DL13

So... given the state of upstream, I guess I'll have to mess with my crazy local multiboot setup and hope to get other installed OSes working with this libata stuff and drive order.

FWIW, there's been a similar bug open with Debian since June 2006 without any solution. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=370605
Comment 7 Rafał Mużyło 2010-02-18 18:01:42 UTC
What do you mean by "I removed all the other HDDs to be able to boot" ?

A few corrections in /etc/fstab and perhaps a change in root argument
for grub may be needed, but that should be all (in most of the cases,
that is).
Comment 8 Doktor Notor 2010-02-18 18:27:38 UTC
(In reply to comment #7)
> What do you mean by "I removed all the other HDDs to be able to boot" ?

To make long story short, the BIOS on this MB plain sucks... :P The problem is not with Linux but with Windows. Anyway, that's not really much pertinent here.
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2010-02-18 18:32:09 UTC
Feel free to close this as 'UPSTREAM' if you got it worked around for now and push your issue to upstream to get a real fix,

http://sourceforge.net/projects/cdrdao/develop (Tracker -> Bugs)

(Because I'm not going to present this to upstream based on this info, sorry, and upstream isn't likely looking at our bugzilla.)
Comment 10 Doktor Notor 2010-02-18 19:50:23 UTC
I'll stick the link to URL after I've reported it upstream. Not really optimistic about getting it fixed anyway. 

Thanks. :)