Click to See Complete Forum and Search --> : Easy mounting/unmounting of CDROM by users other than root


mka
12-21-2000, 12:15 AM
I find it a little tedious to mount/unmount my CDROM when I want to change it.

Is there a way to have Linux automagically mount/unmount the CDROM when I put a CD in or take one out?

Also, I would like to give other users the ability to do this so that I don't have to login as root to do it. Any hints on how to do this?

Thanks!

manual_overide
12-21-2000, 12:36 AM
in your /etc/fstab file, look for the line that pertains to your cdrom change it to look something like this:


/dev/<whatever your cdrom is> /<wherever you mount the drive> iso9660 auto,ro,user 0 0


That should do it.

theflash
12-21-2000, 03:11 AM
I know Mandrake does a fine job of that automatically.

stavefan
12-21-2000, 09:25 AM
someone correct me if i'm wrong, but i believe there is a program called usermount that has a gui interface that will let you mount and unmount....

hope that helps...
stavefan

------------------
Sometimes strange things can be very beautiful...

Aleixa, "V", "Honey Lake"

bkurt
12-21-2000, 10:52 AM
I believe Mandrake uses a program called supermount to accomplish this so I would check into that and see if you can get is setup in your distro.

bkurt
12-21-2000, 11:08 AM
You could also write your own shell script to do this if you wanted.

mka
12-22-2000, 02:07 PM
I guess I should have given more information. I'm currently using Red Hat 6.0.

I tried the usermount program and it works just fine.

Now I have to try to get my wife to understand that this isn't Windows and you can't just pop it in and be able to read it!


Originally posted by mka:
I find it a little tedious to mount/unmount my CDROM when I want to change it.

Is there a way to have Linux automagically mount/unmount the CDROM when I put a CD in or take one out?

Also, I would like to give other users the ability to do this so that I don't have to login as root to do it. Any hints on how to do this?

Thanks!