LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I mount a 2nd CD drive??? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-mount-a-2nd-cd-drive-359074/)

PTrenholme 09-01-2005 07:36 PM

Note that all your advice has had you mount your CDRW as a CDROM, that is, as a "ro" device.

If you want to mount it as a writable device, you need something lihe this
Code:

/dev/hdf                /media/cdrecorder      auto    pamconsole,exec,noauto,managed 0 0
/dev/hde                /media/cdrom            auto    pamconsole,exec,noauto,managed 0 0

in your /etc/fstab. (That's a copy from my fstab, on Fedora, where the "pamconsole" option is used. You would probably not want it.)

You need to look at your /dev directory to see what you've got, and what it's called. For example, again, here's what mine looks like:
Code:

ls -l /dev | grep dvd
lrwxrwxrwx  1 root  root          3 Sep  1 11:30 dvd -> hde
lrwxrwxrwx  1 root  root          3 Sep  1 11:30 dvd1 -> hdf
lrwxrwxrwx  1 root  root          3 Sep  1 11:30 dvdwriter -> hdf
$ ls -l /dev | grep cd
lrwxrwxrwx  1 root  root          3 Sep  1 11:30 cdrom -> hde
lrwxrwxrwx  1 root  root          3 Sep  1 11:30 cdrom1 -> hdf
lrwxrwxrwx  1 root  root          3 Sep  1 11:30 cdwriter -> hdf

(Yes, they're cheap enough that I use two DVDs instead of CDs.)

Anyhow, my advice is to drop the ro option.

kencaz 09-01-2005 07:46 PM

Quote:

Originally posted by phreakshew
I tried both dev/hdd /cdrom1 iso9660 ro,user,noauto 0 0
and /dev/hdd /cdrom1 iso9660 ro,users,noauto 0 0

and got: CD-ROM read or access error (or no audio disc in drive).
Please make sure you have access permissions to:
/dev/cdrom1 (or) /dev/hdd.

both times...blah.

I am confused... Are you refering now to Audio or Data CD's now? If so changing your fstab file will not help reading audio cd's only data... Tell us what your attempting to access first...

KC

phreakshew 09-02-2005 02:13 AM

Thanx 4 all the info- I'll try to be as clear as possible...
OK- this is what I have in etc/fstab:

dev/hda1 /boot ext3 defaults 0 2 #size=100
/dev/hda2 none swap sw 0 0 #size=250
/dev/hda3 / ext3 defaults,errors=remount-ro 0 1 #size=remaining
/dev/fd0 /floppy auto defaults,user,noauto 0 0
/dev/cdrom /cdrom iso9660 defaults,rw,user,noauto 0 0
/dev/hdd /cdrom1 iso9660 ro,user,noauto 0 0
proc /proc proc defaults 0 0

Since cdrom is rw, do I still need to add a line like:
/dev/cdwriter /cdwriter iso9660 defaults,rw,user,noauto 0 0 ?

Soooo, I'll go thru what I have done so far:
I installed a new CDRW where the old CDROM was initially, and set the CDROM to slave and the CDRW to master.

The initial line in etc/fstab was:
/dev/cdrom /cdrom iso9660 defaults,ro,user,noauto 0 0

Since the drive now attached there is a CDRW, I changed ro to rw to read:
/dev/cdrom /cdrom iso9660 defaults,rw,user,noauto 0 0

Then I had to figure out how to successfully mount the old CDROM in it's new position as a slave..

Additionally, I would like to be able to play audio CDs in either drive- as of right now it appears I can only play them in the CDRW drive, not in the CDROM.

Sooo I really have 2 questions at this point:
1. Did I set up the CDRW correctly?
2. How do I make it so that I can play aduio CDs in my CDROM also?

I am a super newbie, and have a total of about 2 weeks experience with Linux so far, so alot of these concepts are new to me. Thanx again for all your help everybody!

phreakshew 09-03-2005 09:31 AM

any more thoughts / ideas / suggestions on this? thanx in advance!

PTrenholme 09-03-2005 11:10 AM

Have you enabled "digital audio" in your sound system? (Often the default is "analog," which requires the analog wire connection from your CD drive to your audio card. [It's the three-wire, small plug connector.] Most audio system will only accept one analog input connection.

If you do have digital audio enabled, have you told your sound system that you have two CD drives? (How that is done depends on the system you're using.)

I suspect that your sound system has defaulted to looking only at /dev/cdrom. (Note that CD playback is normally done directly from the device since audio CDs don't contain any file system that can be mounted.)

Bottom line: Read the manual for your audio playback system to see how you can set it to access more than one device.

phreakshew 09-04-2005 05:38 PM

thanx- I will look into how to enablr digital audio-- unfortunately I have no documentation for my hardwareas this is all used equipment...

PTrenholme 09-05-2005 01:05 PM

Quote:

Originally posted by phreakshew
thanx- I will look into how to enablr digital audio-- unfortunately I have no documentation for my hardwareas this is all used equipment...
As I said, "read the manual for your sound system". E.g., ALSA, OOG, etc. - whatever you're using.

For example, if you're using ALSA, then it's an option in "system-sound-config".

It should have nothing to do (except internally) with your hardware -- CD and sound card -- provided your sound card is supported. (Which it must be, because yu're getting some sound.)

phreakshew 09-05-2005 07:51 PM

O I C! ok I will look there- :-)


All times are GMT -5. The time now is 08:59 AM.