LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 03-10-2004, 04:45 PM   #1
Rundi
Member
 
Registered: Jun 2003
Location: USA
Distribution: Ubuntu
Posts: 169

Rep: Reputation: 30
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
 
Old 03-10-2004, 06:25 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,593

Rep: Reputation: 188Reputation: 188
"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
 
Old 03-10-2004, 07:10 PM   #3
Rundi
Member
 
Registered: Jun 2003
Location: USA
Distribution: Ubuntu
Posts: 169

Original Poster
Rep: Reputation: 30
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
 
Old 03-10-2004, 07:59 PM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 57
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
 
Old 03-10-2004, 08:54 PM   #5
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,593

Rep: Reputation: 188Reputation: 188
" 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 08:56 PM.
 
Old 03-10-2004, 09:59 PM   #6
Rundi
Member
 
Registered: Jun 2003
Location: USA
Distribution: Ubuntu
Posts: 169

Original Poster
Rep: Reputation: 30
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 10:01 PM.
 
Old 03-11-2004, 10:48 AM   #7
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,593

Rep: Reputation: 188Reputation: 188
"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
 
Old 03-11-2004, 03:39 PM   #8
Rundi
Member
 
Registered: Jun 2003
Location: USA
Distribution: Ubuntu
Posts: 169

Original Poster
Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
distortion while playing music rubella Linux - Newbie 2 10-25-2005 04:44 PM
CD Music not playing for user rknetsch Linux - Hardware 1 06-17-2005 10:15 PM
playing music blacktattoo Linux - Newbie 6 01-27-2005 12:27 AM
playing music on linux warsayo Linux - Software 1 05-23-2004 03:19 PM
Playing music dsgdevil Linux - General 1 07-01-2003 07:17 AM


All times are GMT -5. The time now is 11:40 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration