Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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 have several cifs fstab entries that aren't being mounted at boot, and I don't know why. Once the OS finishes booting, I can do "mount -a" as root, and they mount fine. They stay mounted until I unmount them or reboot. The issue is that this machine is multi-boot, and I reboot frequently, so it becomes a serious pain in the rear.
1) These are network mounts. Don't I need the card AND the IP stack loaded BEFORE I mount a network resource?
2) Doesn't Linux automatically mount stuff in fstab? I would think, that by putting it into my fstab, it would auto mount at boot. I didn't think I needed to add a manual mount command anywhere in rc. I listed my rc5.d because I thought maybe something needed to be shuffled around.
I'm not trying to downplay your comment, I'm just a little lost. Thanks for the help!
not sure what the file is in suse, but basically there is a place you can run commands on boot.
i don't know a way, or know if it is possible to mount network mount points from fstab at boot, i always have mounted them from a script that runs from my rc.local file that sends me an email if the drive was not reconnected.
I put my CIFS mounts on noauto, and then put 'mount -a' in a shell script, and symlinked it in boot.d, so that it the last boot.d script (S14netmount is what I called it).
I rebooted, and nothing. It appears 'mount -a' ignores noauto entries.
So, I took out the noauto option, and then put 'mount -a' in /etc/init.d/boot.local, rebooted, and got the same results: nothing.
So exactly what do you do? If you don't want it to attempt to automount when it reads fstab (during boot), and put 'noauto' in fstab, how do you tell linux to mount the 'noauto' entries in fstab without using 'mount -a' option?
Should the net mounting occur before the runlevel is initiated, or before? In the past, I have put 'mount -a' in the rc5.d (the default runlevel on this box), and it didn't work.
This issue has eluded me for some time, varying distros.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.