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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Thanks for your reply. My fault. I did not quite explain. As to mounting the CD-ROM, I always could do it and presently can. I do 'mount /media/cdrom0' and that works.
But 'mount -a' should do the job equally well according to mount's man page.
It limits ifself to list the mounted devices. I think may be the guys at the slack LQ forum can have some experience. I did not touch anything since last instalation, and each new one has the same effect regarding mount.
I assume that is the cost of choosing Slack, and O.S. for experts [?], notwithstanding their slogans.
mount ignores all lines with "noauto" in the option portion except for a specific mount. The "auto" in the type field. (But, if you change it to "auto" as w1k0 suggested, your system will fail to boot unless you have disks in both your drives when you boot.)
Here's a little code to illustrate the way to use "noauto":
# grep -w cifs /etc/fstab # List the samba shares in fstab"
//192.168.0.4/Books /home/Peter/TRENHOLME/Books cifs noauto,uid=Peter,gid=Peter,credentials=/home/Peter/.smb_credentials,rw 0 0
//192.168.0.4/Documents /home/Peter/TRENHOLME/Documents cifs noauto,uid=Peter,gid=Peter,credentials=/home/Peter/.smb_credentials,rw 0 0
//192.168.0.4/FEBE /home/Peter/TRENHOLME/FEBE cifs noauto,uid=Peter,gid=Peter,credentials=/home/Peter/.smb_credentials,rw 0 0
//192.168.0.4/Public /home/Peter/TRENHOLME/Public cifs noauto,uid=Peter,gid=Peter,credentials=/home/Peter/.smb_credentials,rw 0 0
//192.168.0.4/S /home/Peter/TRENHOLME/S cifs noauto,uid=Peter,gid=Peter,credentials=/home/Peter/.smb_credentials,rw 0 0
//192.168.0.4/U /home/Peter/TRENHOLME/U cifs noauto,uid=Peter,gid=Peter,credentials=/home/Peter/.smb_credentials,rw 0 0
//192.168.0.4/Users /home/Peter/TRENHOLME/Users cifs noauto,uid=Peter,gid=Peter,credentials=/home/Peter/.smb_credentials,rw 0 0
# umount -al -t cifs #Unmount all of them
# mount | grep -w cifs # Show that they're all unmounted
# mount -a # Try to mount everything
nothing was mounted
# mount | grep -w cifs # Show that the shares are still not mounted
# for mp in $(ls -d /home/Peter/TRENHOLME/*);do mount $mp; done # Mount each one specifically
# mount | grep -w cifs # Verify that they are now mounted
//192.168.0.4/Books on /home/Peter/TRENHOLME/Books type cifs (rw)
//192.168.0.4/Documents on /home/Peter/TRENHOLME/Documents type cifs (rw)
//192.168.0.4/FEBE on /home/Peter/TRENHOLME/FEBE type cifs (rw)
//192.168.0.4/Public on /home/Peter/TRENHOLME/Public type cifs (rw)
//192.168.0.4/S on /home/Peter/TRENHOLME/S type cifs (rw)
//192.168.0.4/U on /home/Peter/TRENHOLME/U type cifs (rw)
//192.168.0.4/Users on /home/Peter/TRENHOLME/Users type cifs (rw)
Note that the GNOME virtual file system should automatically mount your optical, removable, media when you insert it. (Fixed optical devices should, of course, be in fstab without the "noauto" option, but I suspect that you aren't using that type of disk.)
Last edited by PTrenholme; 12-10-2010 at 05:34 PM.
Reason: cut/paste error
I should have made special mention of PTrenholme. My apologize. I do it now. It's unbelievable: the manual is very specific about the options auto and noauto and I have missed them notwithstanding the fact I have read it several times (skimmed through it rather, it's 1384 lines long in my system). Happy to see how a simple 'mount -a' will mount all optical disks. And happy to see how my manuals match the fact, although I frequently wonder if the manual matches the software version.