Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
03-23-2006, 01:53 AM
|
#1
|
Newbie
Registered: Mar 2006
Posts: 18
Rep:
|
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)
|
|
|
03-23-2006, 02:22 AM
|
#2
|
LQ Newbie
Registered: Oct 2004
Location: Colorado
Distribution: Slackware64-current and 15.0
Posts: 24
Rep:
|
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-
|
|
|
03-23-2006, 02:27 AM
|
#3
|
Member
Registered: Aug 2002
Posts: 150
Rep:
|
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.
|
|
|
03-23-2006, 05:44 AM
|
#4
|
Member
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654
Rep:
|
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 
|
|
|
03-23-2006, 10:31 AM
|
#5
|
Newbie
Registered: Mar 2006
Posts: 18
Original Poster
Rep:
|
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.
|
|
|
03-23-2006, 12:38 PM
|
#6
|
Member
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317
Rep:
|
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
|
|
|
03-24-2006, 01:35 AM
|
#7
|
Newbie
Registered: Mar 2006
Posts: 18
Original Poster
Rep:
|
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)?
|
|
|
03-24-2006, 01:53 AM
|
#8
|
Member
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 940
|
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).
|
|
|
03-24-2006, 08:59 AM
|
#9
|
Newbie
Registered: Mar 2006
Posts: 18
Original Poster
Rep:
|
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.)
|
|
|
03-24-2006, 10:37 AM
|
#10
|
Member
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246
Rep:
|
Do you have decss installed? It's needed to decrypt DVD content.
|
|
|
03-24-2006, 11:02 AM
|
#11
|
Newbie
Registered: Mar 2006
Posts: 18
Original Poster
Rep:
|
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).
|
|
|
03-24-2006, 11:16 AM
|
#12
|
Member
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246
Rep:
|
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.
|
|
|
03-24-2006, 11:27 AM
|
#13
|
Newbie
Registered: Mar 2006
Posts: 18
Original Poster
Rep:
|
I'm using KDE. Does that make a difference?
|
|
|
03-24-2006, 11:32 AM
|
#14
|
Member
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246
Rep:
|
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.
|
|
|
03-24-2006, 11:46 AM
|
#15
|
Newbie
Registered: Mar 2006
Posts: 18
Original Poster
Rep:
|
Can you point me to install instructions?
|
|
|
All times are GMT -5. The time now is 11:29 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|