LinuxQuestions.org
Help answer threads with 0 replies.
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 05-27-2003, 08:49 PM   #1
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
Multiple CD-ROM drives, but huh?


Here's my PC setup that's relavent to my problem:

Secondary Master: CD-R/W
Secondary Slave: CD-ROM

FSTAB file:

/dev/hda1 swap swap defaults 0 0
/dev/hda2 / ext3 defaults 0 0
/dev/hdb1 /home ext3 defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0

lilo.conf file:
boot = /dev/hda

vga = 771

image = /boot/vmlinuz
root = /dev/hda2
label = Linux
read-only

Now here's my problem, or at least, one of many:
When running the default CDPlayer with Gnome, it only scans my CD-ROM drive(the secondary slave), and it doesn't do anything for the CDRW(Secondary Master). If anybody can help me out, much thanks. I've ran some searches, but havn't yielded any answers that've worked yet...
 
Old 05-27-2003, 09:04 PM   #2
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
first... the 'real' device names of your two cd drives are
CDRW = /dev/hdc
CDROM = /dev/hdd

chances are that /dev/cdrom is merely a symbolic link or pointer to /dev/hdd.

In my machine I have it setup as follows...
DVD = /dev/hdc
CDRW = /dev/hdd

/dev/cdrom --> /dev/hdc
/dev/dvd --> /dev/hdc
/dev/cdrw --> /dev/hdd

(typically when I put in a cd, music or otherwise I'll put it in the drive which is at the top of the case... the dvd. so it makes sense that the most used drive recieves designation of /dev/cdrom)

now I'm not sure what the default cd player is in gnome but chances are its configuration designates /dev/cdrom as its 'read-from' device. At present moment if you'd want to read from the cdrw then tell the cdplayer to read from /dev/hdc.

to fix it permanently may I suggest executing the following commands as root:

## remove the old cdrom device link ##
<prompt $> rm /dev/cdrom
## recreate the cdrom device link ##
<prompt $> ln -s /dev/hdc /dev/cdrom
## create a cdrw device link ##
<prompt $> ln -s /dev/hdc /dev/cdrw
## create a cdrom device link to the second cdrom ##
<prompt $> ln -s /dev/hdd /dev/cdrom2

the other option is to leave the /dev/cdrom --> /dev/hdd link as it is and reconfigure your software to read from /dev/hdc.
 
Old 05-27-2003, 09:18 PM   #3
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Original Poster
Rep: Reputation: 45
Thank you! Well, at least now the cdplayer reads the CDRW drive, the only reason why I have the CDROM drive in my computer is for CD copying, otherwise since it's 16x or something slow like that, I'll use my 52x CDRW drive. Many thanks!
 
Old 05-27-2003, 09:20 PM   #4
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
not a problem.

also may I point out that currently /dev/hdc (the cdrw) is not listed in your /etc/fstab file (least not as its posted). This means you will not be able to easily mount the drive (with a command such as
mount /mnt/cdrw

as it stands now you'd have to mount the drive like this:
mount /dev/hdc /mnt/cdrw

(provided the /mnt/cdrw directory exists)

to add it edit the /etc/fstab file copying the line that begins /dev/cdrom and change the '/dev/cdrom /mnt/cdrom' portion to this:

/dev/hdc /mnt/cdrw (leave the rest of the line the same)

Last edited by jpbarto; 05-27-2003 at 09:23 PM.
 
Old 05-27-2003, 09:31 PM   #5
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by jpbarto
not a problem.

also may I point out that currently /dev/hdc (the cdrw) is not listed in your /etc/fstab file (least not as its posted). This means you will not be able to easily mount the drive (with a command such as
mount /mnt/cdrw

as it stands now you'd have to mount the drive like this:
mount /dev/hdc /mnt/cdrw

(provided the /mnt/cdrw directory exists)

to add it edit the /etc/fstab file copying the line that begins /dev/cdrom and change the '/dev/cdrom /mnt/cdrom' portion to this:

/dev/hdc /mnt/cdrw (leave the rest of the line the same)
And how would I be able to mount my other CD ROM drive then, just in case I wanted to have it mounted at the same time...? And what if I wish to use a CDRW disk, would I have to modify anything to allow Slack to read it?
 
Old 05-27-2003, 09:35 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
1st IDE controller master - hda
1st IDE controller slave - hdb
2nd IDE controller master - hdc
2nd IDE coontroller slave - hdd
etc etc...

You need to configure the CD player to look at your CD-RW device i.e. /dev/hdc. I don't use Gnome so I don't know the exact steps to set the device.

However, linux doesn't do digital audio yet. (someone correct me if I am wrong) So if you don't have an audio cable between your sound card and the CD-RW you will not be able to hear music from it.
 
Old 05-28-2003, 06:44 PM   #7
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by michaelk
1st IDE controller master - hda
1st IDE controller slave - hdb
2nd IDE controller master - hdc
2nd IDE coontroller slave - hdd
etc etc...

You need to configure the CD player to look at your CD-RW device i.e. /dev/hdc. I don't use Gnome so I don't know the exact steps to set the device.

However, linux doesn't do digital audio yet. (someone correct me if I am wrong) So if you don't have an audio cable between your sound card and the CD-RW you will not be able to hear music from it.
Well, so far my sound is working, and I hope I don't have to mess around with it too much because it's really a pain to set all of this stuff up the 10th time, and finally to get just about everything to work. My soundcard now reads my CDRW, and I can listen to CD's and such. I'll experiment around and see if I can get my other CDROM to work properly.
 
Old 05-28-2003, 07:08 PM   #8
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Original Poster
Rep: Reputation: 45
Well, I finally got it all ironed out for now. It might be another story when I start using CDRW disks, but I'll worry about that later. I ended up modifying my fstab file, so I added a line identical to my /dev/cdrom drive, except instead of /dev/cdrom it's /dev/cdrom2, and instead of /mnt/cdrom it's /mnt/cdrom2

I also added user before the noauto,ro 0 0 stuff for the cdrom drives so I can mount and unmount via icons. Thanks for your help everyone!
 
  


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
cd-rom and dvd-rom drives won't mount... :-( Ausar Linux - Newbie 12 09-01-2004 02:51 PM
Multiple cd-rom icons from one cd-rom mount CEG Linux - General 5 02-04-2004 07:04 PM
LG CD-ROM drives 74039186 Linux - Hardware 2 10-25-2003 02:17 PM
huh huh hey bevis Im guna build a puter! cognosti Linux - Hardware 28 08-12-2003 03:49 PM
help... I have 3 CD ROM Drives! shiatsu Linux - Newbie 12 01-03-2002 06:05 PM

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

All times are GMT -5. The time now is 09:16 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