LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Slackware cdrom problem (https://www.linuxquestions.org/questions/linux-hardware-18/slackware-cdrom-problem-537546/)

wabob 03-14-2007 06:33 PM

Slackware cdrom problem
 
Hello! I am new to this forum. I have been playing with Linux for a year now, but not sure if I've made it out of the Newbie phase yet.

I loaded Slackware 11.0 (what a great learning experience that was) but can't get the cdrom to work. I tried to mount it by entering mount /media/cdrom but get the message:

mount: can't find /media/cdrom0 in /etc/fstab or /etc/mtab

I am confused as to how I used a DVD in the same drive to load the Slackware, but can't use it to play a CD once it was loaded.

Any help would be greatly appreciated...

Bruce Hill 03-15-2007 12:27 AM

Welcome to LQ!

If it's a music CD you don't mount it, just play it. Try xmms or one of the other players in your system.

wabob 03-15-2007 06:39 AM

Actually, it is a training CD with video and audio. Would I still open it with the same app?

Hern_28 03-15-2007 08:26 AM

What kind of CD ROM/RW?
 
Hey

I had the same problem with my cd-rw and dvd-rw. They get mounted kinda wierd. You can try adding an edit of this line to /etc/fstab and see if it works ( note this is for a dvd-rw)

/dev/hdd /mnt/dvd-rw iso9660 defaults,ro,user,noexec,noauto 0 0

wabob 03-15-2007 09:48 AM

It is a DVD with read-only (should probably replace it with a RW).

How do I edit the fstab? Do I just log in as root and enter what you listed, or do I need to go into the /etc/fstab directory and enter it?

Do I need to add another mount command after the fstab is edited?
(Please bear with me, I'm learning).

Hern_28 03-15-2007 10:15 AM

Editing Fstab
 
You could cut and paste mine into it. Just remember to change the device to the one you are using and mnt it what you want. you can use kde to edit it although i do not remember what version you are runniung.. In slackware fstab is in /etc/fstab. you can edit it with kwrite and kde should detect the changes as soon as you save it. You can mount the dvd by right clicking it in konquerer and selecting mount. If it is set up correctly it should mount directly. (This is guessing that the dvd player is sony compatible.

wabob 03-16-2007 12:06 AM

Got it working. Logged in as root and entered:

mount /dev/hdc /media/cdrom (this would not take with my user account).

I was then able to print out the README.txt file for the training CD, which told me to run Firefox and type in:

/media/cdrom/index.html (then start the browser). The CD fired right up, video and audio were working properly.

The Konqueror browser will not work for this, as it does not support the macromedia plug-ins necessary to run this particular CD.

I hope this thread will help someone else in the future...

Bruce Hill 03-16-2007 08:28 AM

wabob,

You should add this line to your file /etc/fstab:
Code:

/dev/hdc        /mnt/cdrom      auto        auto,users,ro    0  0
That will mount the device /dev/hdc (IDE1, master) to the mount point /mnt/cdrom which has been created by Slackware. The first auto is the filesystem detection; the second auto tells it to automount the CD (if there is one in there when you boot, or if you have a CD that automounts via a program when you insert it). The users allows any user on your computer to mount and unmount the CD -- you don't have to be root (super user). Since CD-ROMs are read-only filesystems, we use ro and not rw (read/write). The last two entries tell Slackware not to check the filesystem when you boot your computer.

Now you can insert the CD, then in a terminal issue "mount /mnt/cdrom/" as a normal user (not root) and mount the CD. (Note that you should be able to mount and unmount it with Konqueror through the Storage Media option, even if it can't actually run a program which requires other plugins.) To unmount it issue "umount /mnt/cdrom/" and to eject it you can issue "eject /dev/hdc". In one step you may issue "umount /mnt/cdrom/ && eject /dev/hdc" which will unmount the device and eject the CD. (Also note that to unmount and eject the CD, you must close Firefox or whatever application your are using to read the CD.)

Hope this helps add a little clarity, and the use of users rather than root will maintain the secure position of your Slackware system. Never run your system as root; only login as root for system maintenance.

NB: You may use /media/cdrom if you prefer, rather than /mnt/cdrom -- it doesn't matter to Slackware.


All times are GMT -5. The time now is 12:24 PM.