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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-10-2004, 03:45 PM
|
#1
|
|
Member
Registered: Jun 2003
Location: USA
Distribution: Ubuntu
Posts: 169
Rep:
|
Playing Music CD in RW drive
I am running Mandrake 9.1 on a Pentium 2 350mhz. I have two CD drives, daisy-chained as master and slave. The master is a CD-R/RW and the slave is a plain 32 speed CD drive.
I know the master drive works, because that is the drive I installed Linux from and the drive which I've used to install additional rpms from since.
I know the slave drive works because I've inserted music CDs and had them play music out of the drives headphone jack.
The problem is this: My master CD-RW drive is the CD drive that is connected to my sound card and the CD Player doesn't recongize this drive as the one to play music. The CD Player only recongizes a music CD when it is inserted in the basic CD drive which is the slave.
How can I make Linux, or the CD Player program, look for a music CD in my master CD-RW drive?
Thanks for any help,
Rundi
|
|
|
|
03-10-2004, 05:25 PM
|
#2
|
|
Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268
Rep:
|
"The CD Player only recongizes a music CD when it is inserted in the basic CD drive which is the slave."
The CD Player plays a specific device, probably /dev/cdrom. /dev/cdrom is linked to the device address where the CD-ROM resides (/dev/hdd ?). You could try linking /dev/cdrom to the CD-RW (/dev/hdc ?).
Or the CD Player may be configurable. See if you can set the CD player to play the CD-RW (/dev/hdc ?).
Or you could move the sound card connection wire to the CD-ROM.
___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html
Steve Stites
|
|
|
|
03-10-2004, 06:10 PM
|
#3
|
|
Member
Registered: Jun 2003
Location: USA
Distribution: Ubuntu
Posts: 169
Original Poster
Rep:
|
Will that cause problems?
Yow, Jailbait, you are everywhere . . . answering my questions in the General forum and then here. BTW, I ended up giving up on fsck and reinstalling Mandrake.
Anyhow, back on this topic . . .
I realize I could switch the sound card connecting wire. I just wondered if there was an easier way because clearing all the junk off my case so I can open it up is a bit of a hassle.
The CD Player I used wasn't configurable. Maybe I could find one that was, but I don't know what program I should look for. Right now I've just been trying to use the plan vanilla CD Player on Mandrake's Gnome.
This leaves the option of changing the linking. I understand what your are saying about where the device exists and the addresses, but I don't understand how I would change the link. Could you explain the process in detail please?
Rundi
|
|
|
|
03-10-2004, 06:59 PM
|
#4
|
|
Senior Member
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345
Rep:
|
What are you using to play audio CDs? More than likely you will need to specifiy what device to use if you don't want to use the default one (or if this is XMMS, change the default device). Since this is an ATAPI CDR/W drive, it will be using scsi-emulation (by default under Mandy for CDR/W drives) so you would need to tell your programme to use /dev/scd0
|
|
|
|
03-10-2004, 07:54 PM
|
#5
|
|
Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268
Rep:
|
" Could you explain the process in detail please?"
Suppose that /dev/cdrom links to /dev/hdd and you want it to link to /dev/scd0. Then you would log in as root and do:
rm /dev/cdrom
ln -s /dev/scd0 /dev/cdrom
By changing the link then all future references to your CD-ROM would have to be through /dev/hdd or whatever.
___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html
Steve Stites
Last edited by jailbait; 03-10-2004 at 07:56 PM.
|
|
|
|
03-10-2004, 08:59 PM
|
#6
|
|
Member
Registered: Jun 2003
Location: USA
Distribution: Ubuntu
Posts: 169
Original Poster
Rep:
|
Got it working
Thymox -
The original CD playing program I was trying to use was Gnome CD Player. Earlier in this thread I incorrectly stated that this player wasn't configurable. I just now went back to look and found out that it was.
In the course of trying to work through this problem I also tried to use Ximm and Grip. Somehow, in the course of the last few minutes I managed to make it so Grip no longer loads when I try to open it from the menw. I wonder if that is caused by me putting in an incorrect device line. Sigh . . . anyhow, that is a problem for another day.
Jailbait -
Thank you very much for the command lines. However, I seem to have got the CD-RW drive to play the music without needing to use them. I went back to the original Gnome CD Player and found the configure setting and after comparing that with the information in the dmesg file, along with a bit of experimentation, I found out that /dev/cdrom is my slave device and /dev/cdrom1 is my CD-RW. Don't ask me why.
Hopefully Grip will be working when I boot up tomorrow. Somehow I doubt it, but I will come bawling back with that problem tomorrow.
. . . Or some other problem. I don't seem to run out of problems.
But at least now I can play CD music out of my speakers with Gnome CD Player. Yaa!
Thanks for all of the help.
Edit: BTW, Thymox, you are right the Mandrake uses my CD-RW as a scsi device, but I still managed to use it with Gnome CD Player by using /dev/cdrom1 . . . I don't know why but I'm not about to ask questions.
Last edited by Rundi; 03-10-2004 at 09:01 PM.
|
|
|
|
03-11-2004, 09:48 AM
|
#7
|
|
Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268
Rep:
|
"BTW, Thymox, you are right the Mandrake uses my CD-RW as a scsi device, but I still managed to use it with Gnome CD Player by using /dev/cdrom1 . . . I don't know why but I'm not about to ask questions."
Probably /dev/cdrom1 is a symbolic link to /dev/scd0. You can check that with:
ls -l /dev/cdrom1
___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html
Steve Stites
|
|
|
|
03-11-2004, 02:39 PM
|
#8
|
|
Member
Registered: Jun 2003
Location: USA
Distribution: Ubuntu
Posts: 169
Original Poster
Rep:
|
Thanks
Thanks for the tip.
For the curious this is what I got:
ls -l /dev/cdrom1
lr-xr-xr-x 1 root root 13 Mar 11 15:46 /dev/cdrom1 -> cdroms/cdrom1
For the other cd:
ls -l /dev/cdrom
lr-xr-xr-x 1 root root 13 Mar 11 15:46 /dev/cdrom -> cdroms/cdrom0
As I read it there is no mention of scsi here, but I am sure I've seen it mentioned in the startup and such places.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:26 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|