SlackwareThis 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.
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.
There's been a few threads on this, but I've thus far tried everything and haven't had a bit of luck. I can only mount my CD-ROM and CD-RW drives when logged in as root (that includes playing music CDs and the like, I simply get drive errors. My fstab currently looks like this:
As you can see, /dev/hdc is my CD-ROM (I changed it from being listed as cdrom to hdc, in hopes that might fix something), and /dev/hdd is my CD-RW. The information from ls /proc/ide is as follows:
Code:
drivers hda hdc hdd ide0 ide1 sis
Going to terminal as root, I can type mount /dev/hdc and it will mount the CD-ROM in that current location normally. CD players can also access either drive normally. Attempting to mount as a user returns a permission error.
I'm at a loss. It looks like everything should be working just fine, but for some reason it isn't. I'm on Slackware-Current with the 2.4.26 kernel. If anyone has any ideas, I'm all ears.
EDIT: Mmm didn't read carefully what you wrote, the third thread i posted should give you a hint. Also, music cds can't be mounted, you just have to play them.
Yeah, I know they don't have to be mounted, but they do have to be accessed. Whenever I launch a CD player, it simply gives a Drive Error.
I checked those links, and added the user account to the CDROM group. Still no good. Is it something wrong with my fstab somehow? It seems that setting permissions in fstab would be so you didn't have to use groups for drive permissions?
I tried that, as well. Still no good. This is beginning to get really annoying. If anyone has any other ideas of what may be causing this, I'm all ears. Has anyone else encountered the same issue on Slackware before?
My solution to the problem is to sudo the mount, sudo says to edit the file using visudo, but I just joe /etc/sudoers. In the file it will tell you how to set yourself up to sudo things so that you can use them with root permissions but not be root.
I tried the groups trick (adding my regular user to audio,video,cdrom) and that did nothing. If you're getting a drive error wiht the audio cd player, then you are probably having permission problems with whatever dev your /dev/cdrom points to. Mine points to /dev/scd0 so I had to change the permissions of /dev/scd0 like this:
chmod o+r /dev/scd0
but yours might be /dev/hdc... try doing `ls -l /dev/cdrom` to see what your cdrom is pointing at.
done as root user of course. Now I can play audio CDs, but I still can't mount the CDs, which is very confusing to me, because I would think that if I have permission to read an audio cd, i should also have permission to mount a data cd... but I don't
[edit] i should clarify:
as a Regular user i can play audio CDs and read data CDs provided that they were mounted by root. I cannot mount/umount anything.
Last edited by Lord Zoltar; 09-07-2004 at 09:24 PM.
What Lord Z. said plus this, if you're using 2.6 kernel you have to write up some udev rules to assign appropriate permissions to dynamically loaded devices... here's a good resource:
Permissions are set in /etc/udev/rules.d/udev.rules but sometimes the devices aren't named "cdrom" or "dvd" unless you write up rules to tell udev to do so...
Last edited by lupin_the_3rd; 09-07-2004 at 09:13 PM.
Just wanted to follow up here. I had to get a new hard drive and reinstalled Slackware. To get the CD-ROM working, I added "user" to fstab, as well as typing chmod o+r /dev/hdc in the console, as was suggested. Thanks for the help, guys!
1) in fstab, added the "user" option
2) changed the permissions of "/dev/hdc" so that all users had full access
3) changed the permissions of "/mnt/cdrom" so that all users had full access
I had to do this for my floppy and usb disk also. Initially I added the users to the cdrom/disk
groups, however I think this is redundant when "user" is added to fstab, and it doesn't do any
good unless you modify the group permissions of the device.
ta0kira
PS Sorry, that is regarding OP. Regarding the one above me: your MOUNT point is cdrom2, NOT your device name. You need this:
mount /dev/hdc
-or-
mount /mnt/cdrom2
PS II You cannot mount an audio CD because the file system won't match; audio CDs don't use vfat or ext2 file systems. That is why when you look at an audio CD in Windows, all you see is a tag for each track, which the OS shows out of courtesy. In KDE 3.2.3, if you put in an audio CD and use the file browser with devices frame showing, it gives you several options for looking at the CDs contents. Have not tried this however.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.