LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-23-2006, 01:53 AM   #1
blnkgcrsr001
Newbie
 
Registered: Mar 2006
Posts: 18

Rep: Reputation: 0
cannot mount cd-rom


Okay, here's the problem. When I am Root, I can mount/unmount my cd-rw/dvd-rom combo drive (and play CD's, mp3's, etc.) When I am user, I cannot do any of the above. The error messages usually are along the lines of "there are insufficient permissions to perform the requested action (cannot mount /dev/cdrom)". I have tried everything I know to give user the same permissions for these actions as Root, with no success. Any suggestions? (I am having trouble posting my /etc/fstab in a way that is readable. Please forgive if this creates a problem)
 
Old 03-23-2006, 02:22 AM   #2
cooldave
LQ Newbie
 
Registered: Oct 2004
Location: Colorado
Distribution: Slackware64-current and 15.0
Posts: 24

Rep: Reputation: 0
Hi,
I changed the entry in my fstab to:
/dev/cdrom /mnt/cdrom iso9660 noauto,users,ro 0 0

This allows any user on my system to mount and umount the cdrom.

-CD-
 
Old 03-23-2006, 02:27 AM   #3
danieldk
Member
 
Registered: Aug 2002
Posts: 150

Rep: Reputation: 15
First add the user to the right group. This group can differ, and depends on whether you are using udev or static device nodes, and on the kind of CD-ROM drive (e.g. SCSI vs IDE). You can check it quickly by looking up what device /dev/cdrom links to. E.g.:

Code:
$ ls -l /dev/cdrom
lrwxrwxrwx  1 root root 3 Mar 23 08:10 /dev/cdrom -> hdc
And check the ownership of that device:

Code:
$ ls -l /dev/hdc
brw-rw----  1 root disk 22, 0 Jun  9  2002 /dev/hdc
In this case it is the "disk" group. If you use static device nodes, and prefer to add users to the "cdrom" group rather than the "disk" group, you can change the group for the device:

Code:
# chown :cdrom /dev/hdc
Now you have to add the user to the group that is used. You can do this with usermod. Be sure to name every secondary group the user belongs to. E.g.:

Code:
# usermod -G cdrom danieldk
Now that the permissions are set correctly (log out to activate the new group settings), you can modify fstab. Add "user" to the mount options for the CD-ROM device, and you should be done.
 
Old 03-23-2006, 05:44 AM   #4
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
Quote:
and play CD's, mp3's, etc.
dont try to mount "audio cds". try some data cd, edit fstab and the adding to cdrom group is also a nice option

hi welcome to lq and slack forum
 
Old 03-23-2006, 10:31 AM   #5
blnkgcrsr001
Newbie
 
Registered: Mar 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Hi,
I changed the entry in my fstab to:
/dev/cdrom /mnt/cdrom iso9660 noauto,users,ro 0 0

This allows any user on my system to mount and umount the cdrom.

-CD-

Thanks, that worked great.

However, I am still not able to play DVD movies, either as root or user. I am using xine 0.99.4 and I get an error message saying, "There is no input plugin available to handle 'dvd:/'. Maybe MRL syntax is wrong or source doesn't exist". I am not sure if this is the right place to get help with a specific app, but if anyone has any ideas to help, I'd appreciate it. (And I do use a cd/dvd combo drive)

Last edited by blnkgcrsr001; 03-25-2006 at 02:23 PM.
 
Old 03-23-2006, 12:38 PM   #6
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
ls -l /dev/dvd
ls -l /dev/dvd0

If the above returns something like file not found then as root,

# ln -s /dev/hdc /dev/dvd
 
Old 03-24-2006, 01:35 AM   #7
blnkgcrsr001
Newbie
 
Registered: Mar 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
ls -l /dev/dvd
ls -l /dev/dvd0

If the above returns something like file not found then as root,

# ln -s /dev/hdc /dev/dvd
__________________
C Perspective
Slackware

If I linked /dev/hdc with /dev/dvd, how would that affect the cdrom function of my drive? In other words, should I change hdc to hdd (in the above line)?
 
Old 03-24-2006, 01:53 AM   #8
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 940

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Originally Posted by blnkgcrsr001
... my cd-rw/dvd-rom combo drive ...
If you only have one physical drive, then it's /dev/hdc, so you would use /dev/hdc. Making a symbolic link to /dev/dvd does not affect /dev/cdrom. Symbolic links do not know about other symbolic links to the same file. If you have seperate drives, then you'd want to change it to /dev/hdd (or whatever it may be).
 
Old 03-24-2006, 08:59 AM   #9
blnkgcrsr001
Newbie
 
Registered: Mar 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Okay. /dev/dvd is already symlinked to /dev/hdc. And still no DVD playback. Actually, it plays the FBI warning message, then suddenly stops (no error msg given). In preferences->video, device used for DVD playback is set to /dev/dvd. Any ideas? (It plays mpeg and mp3 files just fine, just not DVD's.)
 
Old 03-24-2006, 10:37 AM   #10
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
Do you have decss installed? It's needed to decrypt DVD content.
 
Old 03-24-2006, 11:02 AM   #11
blnkgcrsr001
Newbie
 
Registered: Mar 2006
Posts: 18

Original Poster
Rep: Reputation: 0
How do I find that out? I am using it as it was shipped with Slack 10.2 (I have not updated or modified it).
 
Old 03-24-2006, 11:16 AM   #12
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
libdvdcss is not shipped with Slackware (it has questionable legal status in the USA due to the DMCA). You can grab Dropline's packages for libdvdcss, libdvdread and libdvdnav from this sourceforge page:

http://sourceforge.net/project/showf...ckage_id=71205

(you may have to expand the tree - they're in version 2.10.0), and install them using the installpkg command.
 
Old 03-24-2006, 11:27 AM   #13
blnkgcrsr001
Newbie
 
Registered: Mar 2006
Posts: 18

Original Poster
Rep: Reputation: 0
I'm using KDE. Does that make a difference?
 
Old 03-24-2006, 11:32 AM   #14
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
Quote:
Originally Posted by blnkgcrsr001
I'm using KDE. Does that make a difference?
No. Although Dropline is Gnome for Slackware, the libdvd* packages will work for any desktop environment.
 
Old 03-24-2006, 11:46 AM   #15
blnkgcrsr001
Newbie
 
Registered: Mar 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Can you point me to install instructions?
 
  


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
Mount the CD rom ust Linux - Software 3 09-16-2003 09:00 PM
Mount the CD rom ust Linux - General 5 08-27-2003 12:42 PM
can't mount my CD-ROM chansky Linux - Hardware 4 09-08-2002 04:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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