Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I'm a wee bitty tired of logging in as root, mounting a CD, logging out, logging back in as a normal user then finally accessing the CD. I have heard there is a line you can add to FSTAB to mount drives on boot.
However, there is already a line down the bottom of FSTAB relating to the CD drive; I goes something like: "/dev/cdrom /mnt/cdrom" so forth and so forth. Shouldn't my CD drive already be mounting on startup?
Another thing is unmounting drives, if I remembered correctly BASH helpfully told me I had to be super-user to unmount drives. Is there anyway to:
a) Simplify the whole mount/unmount experience
b) Let 'normal' users mount and unmount.
P.S. No, I do not have a windowing system installed. I'm running Debian Linux.
what i have done is allowed users to mount the cdrom and i run gkrellm on my desktop.
gkrellm is a system monitoring app that is handy if you like to see what your system is doing. it also allows you to mount/unmount drives if you want. you can get info here => www.gkrellm.net
if you don't have it on your system now use apt-get install gkrellm.
to allow users to mount/umount, where arunshivanandan has owner in his/her cdrom line, change to users.
quote 'a) Simplify the whole mount/unmount experience
b) Let 'normal' users mount and unmount.
Put 'user' or users, can't remember, or 'owner', in fstab line and the user can mount and umount with:
mount /cdrom say.
Put a symbolic link to /cdrom in your home directory:
ln -s /cdrom C
and you could u/mount with:
mount C at least on Debian.
Loose 'noauto' from fstab and it'll mount cdrom for you.
However you'll probably have to read the manual for fstab and mount - it tends not to do what you want.
Adding the option user to a fstab line allows any user to mount / umount the filesystem.
The noauto option in the fstab file tells the OS not to mount at boot. Your mounting a filesystem not the drive so you will get errors at boot if your CDROM drive is empty without the noauto option.
See the man pages for mount and fstab for addition info on options.
quoted by michealk
Adding the option user to a fstab line allows any user to mount / umount the filesystem.
this is why i also included the info on gkrellm it has a tool that allows you to press a button and voiala (sp) the drive is mounted. you can also do this for partitions and samba mounts if you wanted to add this feature. i only use it for cdrom and floppy mounting and to report how much space is on my samba mount.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.