LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-04-2005, 12:20 AM   #1
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Rep: Reputation: 30
new kernel 2.6.10, no cd-rom/RW audio recognition


I've searched high and low for the answer that must be out there because I see threads on this type of subject so often, but I cannot get an answer, so here I come again. I just configured kernel 2.6.10 for my SLACK system and I cannot get either my cdrw or cd-rom to recognize/play audio CDs. They mount and read data CDs. My system obviously recognizes that the drives exist (/dev/hdb and /dev/hda respectively). They worked fine under 2.4.26, and still do actually. I try to play several audio CDs in XMMS as well as try to burn CDs in k3b, with no success. I have added to lilo.conf the line append = "/dev/hda=IDE-CD /dev/hdb=IDE-CD" which I read in a couple of places that this was necessary for the 2.6 kernel - no luck.

Here are some outputs:

tim@sbc:~$ cdrecord dev=ATAPI --scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related libscg interface code is in pre alpha.
Warning: There may be fatal problems.
Using libscg version 'schily-0.7'
scsibus0:
0,0,0 0) 'TOSHIBA ' 'CD-ROM XM-6702B ' '1007' Removable CD-ROM
0,1,0 1) 'YAMAHA ' 'CRW2200E ' '1.0D' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *

edit: I can play audio files on my hard drive, so everything else is there....

Last edited by timsch75; 02-04-2005 at 12:22 AM.
 
Old 02-04-2005, 12:31 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Does it work if you burn a CD with "cdrecord -vv speed=24 dev=ATAPI:0,1,0 <iso file>". Replace the speed with whatever speed that drive runs at. Ignore thee Warnings about the ATA packet interface, it hsould be ok. I'm going to guess it will, as the scanbus most certainly is detecting the CDR drive.

I don't know about K3B specifically, but I know that some of the gui programs haven't been updated to handle the newer non-"scsi emulation" burning interface.

As far as XMMS and audio cd's go... did you check to make sure your XMMS prefs are looking at the /dev/hdx drive indications verses the possible /dev/sdx device nodes you'd probably have been using if you were previously using SCSI-emulation for burning purposes.
 
Old 02-04-2005, 12:52 AM   #3
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
I haven't actually tried burning a CD since I'm more interested in getting the burner/rom to just recognize and play an audio CD. I'd guess that it will since the system knows the drive is there, as you said. I looked at the xmms preferences and saw nothing about devices other than their mount points, /mnt/cdr and /mnt/cdrom. I just assume xmms gets the necessary information from fstab, boot record, or somewhere like that. I have changed my fstab to reflect the changes in scsi emulation from 2.4 to 2.6.

lines from fstab:

/dev/cdrom /mnt/cdrom iso9660 noauto,users,ro 0 0
/dev/hdb /mnt/cdr iso9660 noauto,users,rw 0 0
 
Old 02-06-2005, 06:31 AM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Does any audio work? Can you play .wav or .mp3/ogg files?

<edit> Nevermind, I just cleaned the sleep from my eyes.


Last edited by /bin/bash; 02-06-2005 at 06:34 AM.
 
Old 02-06-2005, 06:55 AM   #5
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
In your first post you said you can't burn cd's with k3b but later you said you haven't tried. I would suggest you try burning a cd to see if that works.

Check to see if ide-scsi module is loading, and remove it. You don't even need to build that module now with 2.6 kernel.
 
Old 02-06-2005, 08:33 AM   #6
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
The ide-scsi module is not loading. I am burning a CD right now. I finally got xmms to recognize a CD. It was permissions related. I saw that /dev/hdb had root as owner and cdrom as group. I added myself to the group but still had no luck with audio cd recognition. I chmod'ed the device and that worked. Why I didn't need to change permissions to mount a data CD I don't know. I'm still quite confused with all of this, though, and am having buggy problems like never before with programs like xmms since installing the new kernel.
 
Old 02-06-2005, 09:56 AM   #7
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
The mount program is suid as root on most systems so if you have the users option on your CD drive in your fstab file you can mount a data cd without having permissions to read the device.

Last edited by jtshaw; 02-06-2005 at 10:00 AM.
 
Old 02-06-2005, 11:28 AM   #8
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
Every time I have to reboot, I must chmod the cd drives to get them to allow xmms to read the audio cd. How do I make this permission change permanent?
 
Old 02-06-2005, 11:33 AM   #9
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I believe (please correct me if I'm wrong) that Slackware 10 uses udev to map device nodes.

This means they are generated on the fly when hardware is initialized. Somewhere on your system (probably /etc/udev/) you should have a permissions file that sets the default permissions for all the device nodes. Typically 0660 is a good setting for cdrom drives if you want all the users to have to be in the cdrom group to use it. If you want everyone to use it then 0666 is a good setting.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CD-RW/DVD-ROM Partial Recognition somerandomdude Linux - Hardware 2 11-15-2004 06:44 PM
Installation of RH9: recognition of SCSI CD-rom sullivan Red Hat 2 09-06-2004 07:13 AM
kernel 2.4.20 no SATA drive recognition tait Red Hat 4 07-01-2004 04:36 AM
Kernel problem involving recognition of partitions. binarynova Linux - General 0 02-18-2004 05:48 PM
CD-ROM won't do a thing with CD Audio isolationist Linux - Hardware 2 02-19-2003 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration