Mounting CD-ROM as user?
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:
Code:
/dev/hda1 swap swap defaults 0 0 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 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. |
Take a look at these: http://www.linuxquestions.org/questi...der=descending
or directly: http://www.linuxquestions.org/questi...tcFfstab+cdrom and: http://www.linuxquestions.org/questi...ab+cdrom+mount 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? |
edit /etc/group add your user to audio video cdrom
something like pico /etc/group audio::17:insyte video::18:insyte cdrom::19:insyte |
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 :scratch: [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. |
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:
http://www.reactivated.net/udevrules.php Specifically: http://www.reactivated.net/udevrules.php#example-cdrom 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... |
Hey!
/dev/hdc /mnt/cdrom iso9660 noauto,users,ro 0 0 Remove all that "s" :D |
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!
|
mount problem
I canīt have access to my cdrom: this is my fstab file:
/dev/hda1 / ext3 defaults 1 1 none /dev/pts devpts mode=0620 0 0 /dev/hda6 /home ext3 defaults 1 2 /dev/hdd /mnt/cdrom iso9660 umask=0,user,iocharset=iso8859-15,codepage=850,noauto,ro,exec 0 0 /dev/hdc /mnt/cdrom2 iso9660 umask=0,user,iocharset=iso8859-15,codepage=850,noauto,ro,exec 0 0 none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-15,sync,codepage=850 0 0 /dev/hda3 /mnt/windows ntfs umask=0,nls=iso8859-15,ro 0 0 none /proc proc defaults 0 0 /dev/hda5 swap swap defaults 0 0 I tried this as root: chmod o+r /dev/hdc chmod o+r /dev/hdd But, when I tried to mount , its says: mount /dev/cdrom2 mount: can't find /dev/cdrom in /etc/fstab or /etc/mtab mount /dev/cdrom2 mount: can't find /dev/cdrom2 in /etc/fstab or /etc/mtab Please Help! |
I had the same problem
Here is what I did:
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. |
All times are GMT -5. The time now is 04:23 AM. |