LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ??? cdrom and floppy mounting (https://www.linuxquestions.org/questions/linux-newbie-8/cdrom-and-floppy-mounting-81074/)

rikkulinux 08-11-2003 05:01 PM

??? cdrom and floppy mounting
 
How do I enable users to mount cdroms and floppys. I can't seem to get it to work even though I list user in the etc/fstab....? When I try to mount as a user, it says "only root can do that".

Also, will setting mount to auto automatically mount the cdrom/floppy during start up for both root and user logins, so that I don't have to 'mount' it?

Thanks,
rikkulinux

slakmagik 08-11-2003 05:36 PM

Code:

/dev/hdc        /mnt/dvd        auto        noauto,users,ro  0  0
/dev/sr0        /mnt/cdrw        auto        noauto,users    0  0
/dev/fd0        /mnt/floppy      auto        noauto,users    0  0

I've posted this before but if I do 'mount /dev/fd0 /mnt/floppy' I get 'only root can do that' due to accessing the device directly, I guess. If it's in /etc/fstab, you don't need to specify the device and can just do 'mount /mnt/floppy' and it works. Don't know if that's what you're doing or not.

And, yeah, putting auto in column 4 will mount those into your filesystem at boot. You'd still have to umount and mount when you wanted to switch, though. And it will obey fstab so if a user can umount them ordinarily, then they can with auto. Except that the script that initializes the mount is probably run with root privileges, so user can't unmount root's device. Maybe some guru will have a solution for that or maybe I'm just wrong. Try it and see. :)

rikkulinux 08-13-2003 04:57 PM

That seemed to work: 'mount /mnt/floppy'.

Thanks,
Matt


All times are GMT -5. The time now is 10:35 PM.