LinuxQuestions.org
Visit Jeremy's Blog.
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-14-2007, 06:33 PM   #1
wabob
LQ Newbie
 
Registered: Mar 2007
Location: Somewhere in Michigan
Distribution: Slackware, Ubuntu, SUSE
Posts: 16

Rep: Reputation: 0
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...
 
Old 03-15-2007, 12:27 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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.
 
Old 03-15-2007, 06:39 AM   #3
wabob
LQ Newbie
 
Registered: Mar 2007
Location: Somewhere in Michigan
Distribution: Slackware, Ubuntu, SUSE
Posts: 16

Original Poster
Rep: Reputation: 0
Actually, it is a training CD with video and audio. Would I still open it with the same app?
 
Old 03-15-2007, 08:26 AM   #4
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
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
 
Old 03-15-2007, 09:48 AM   #5
wabob
LQ Newbie
 
Registered: Mar 2007
Location: Somewhere in Michigan
Distribution: Slackware, Ubuntu, SUSE
Posts: 16

Original Poster
Rep: Reputation: 0
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).
 
Old 03-15-2007, 10:15 AM   #6
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
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.

Last edited by Hern_28; 03-15-2007 at 10:20 AM.
 
Old 03-16-2007, 12:06 AM   #7
wabob
LQ Newbie
 
Registered: Mar 2007
Location: Somewhere in Michigan
Distribution: Slackware, Ubuntu, SUSE
Posts: 16

Original Poster
Rep: Reputation: 0
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...
 
Old 03-16-2007, 08:28 AM   #8
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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.
 
  


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
CDROM mounting problem => /dev/cdrom is not a valid block device Vizy Linux - Hardware 8 11-04-2010 04:46 PM
Slackware 10 and the mysterious cdrom problem.... perry Slackware 6 07-22-2004 03:14 PM
cdrom in slackware 9.1 paul62 Slackware 1 07-02-2004 04:05 AM
Installing Slackware 9.0 on a Dell Latitude CP, problem with CDROM booting... davec Linux - Laptop and Netbook 7 05-03-2004 10:12 AM
Problem mounting Cdrom drive (Slackware 9.1) chutsu Slackware 1 11-27-2003 04:12 AM

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

All times are GMT -5. The time now is 03:04 PM.

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