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 two problems that seem to be related. I was having them before and hoped that a fresh install of 10.3 would clear them up, but it didn't.
For professional reasons I had to rearrange my HDD's and partitions to hold 2 versions of Windows along with Suse. This was my chance to iron out a lot of little bugs the computer was having. I've squashed most of them, but not these two!
They will not automatically mount at boot! I have tried a zillion little variations, like specifying uid and gid by name and by number, all with no result. A plain old
Code:
sudo mount -a
ties them right up where they are supposed to be. But then, after mounting them a reboot or shutdown hangs at
Code:
Running /etc/init.d/halt.local
for about 3 or 4 minutes before continuing with a normal shutdown or reboot. This delay DOES NOT happen if I reboot/shutdown without mounting the shares.
My best guess is that Suse is trying to mount the network shares before the network is up and running. If I'm right, I don't know how to make it hold its horses for a few seconds. Or would it be easier to simply run a
Code:
mount -a
via a startup script or a cron job? I'm afraid I can't figure those out either
My laptop suffers from the same malady, except reboots/shutdowns are not hindered when I manually mount the shares. I can hardly complain, though, about the laptop not mounting them when running wireless. NetworkManager doesn't go live and connect to my network until well after the GUI is loaded and the fstab has long since been processed. What about when it is connected to a wired network? And shouldn't the _netdev remedy the delay problem when I am wireless?
What should I do?
TIA
J
2 days and no ideas?
I don't get it. This not an uncommon problem. I've spent hours googling it and found lots of other people having the same problem, but no solutions. If you need more info from me, just say so.
Anyone?
Quick comment to get this bumped and get some attention.
I'm building a new myth box from scrap parts I have around here. It is using Suse 10.3 and uses the same 3 network paths mounted exactly the same on the local filesystem.
It has no problem. Where do I look to see what is different in this computer that ails my laptop and desktop?
I seem to be having the same problem. I used to use an fstab entry along with a credentials file to auto-mount a remote smb share, but since doing a re-install of SuSE10.3 it's behaving exactly like yours. I am using exactly the same files, word for word, but this time something is different.
At this point I can't suggest a reason why this is happening to either of us, but I can suggest a temporary workaround.
The folder /etc/rc.d/ contains all the startup scripts for the various runlevels as the system boots up. In this folder are more folders corresponding to each runlevel, e.g. rc3.d = runlevel 3 scripts. From what I can figure out, the first character (K or S) tells the system whether it's a boot script (K) or shutdown script (S), and the number after it is used to control the order in which they happen.
So, if you were to leave the entry out of fstab completely, and add a script to, say, rc5.d, called K50mntntwrk that mounts the network drives, and a shutdown script, S01unmount to unmount them again, this may perform roughly the same function as the original fstab entries. For more information on the rc.d files, there is a README in /etc/rc.d/. I had to do this myself once, to delay the NTP setup until after the network cards had been initialised.
I haven't done this yet for the network drive problem, but I'm the only user of this system, so I just type "sudo mount -a", but my patience may well run out before I find out why the fstab entry doesn't seem to work. If you try it, let me know how you get on.
In the meantime, for reference my fstab entry looks like this:
Edit: Solved it. After reading this tutorial here, I added all the suggested packages and it now works. The packages I was lacking were pam-cifs, samba and samba-client. Quite why I could mount the shares manually but fstab couldn't is a mystery to me, but it appears to work now anyway.
Last edited by khinch; 03-24-2008 at 06:39 AM.
Reason: Solved problem
I seem to be having the same problem. I used to use an fstab entry along with a credentials file to auto-mount a remote smb share, but since doing a re-install of SuSE10.3 it's behaving exactly like yours. I am using exactly the same files, word for word, but this time something is different.
At this point I can't suggest a reason why this is happening to either of us, but I can suggest a temporary workaround.
The folder /etc/rc.d/ contains all the startup scripts for the various runlevels as the system boots up. In this folder are more folders corresponding to each runlevel, e.g. rc3.d = runlevel 3 scripts. From what I can figure out, the first character (K or S) tells the system whether it's a boot script (K) or shutdown script (S), and the number after it is used to control the order in which they happen.
So, if you were to leave the entry out of fstab completely, and add a script to, say, rc5.d, called K50mntntwrk that mounts the network drives, and a shutdown script, S01unmount to unmount them again, this may perform roughly the same function as the original fstab entries. For more information on the rc.d files, there is a README in /etc/rc.d/. I had to do this myself once, to delay the NTP setup until after the network cards had been initialised.
I haven't done this yet for the network drive problem, but I'm the only user of this system, so I just type "sudo mount -a", but my patience may well run out before I find out why the fstab entry doesn't seem to work. If you try it, let me know how you get on.
In the meantime, for reference my fstab entry looks like this:
Edit: Solved it. After reading this tutorial here, I added all the suggested packages and it now works. The packages I was lacking were pam-cifs, samba and samba-client. Quite why I could mount the shares manually but fstab couldn't is a mystery to me, but it appears to work now anyway.
An alternative is to add an entry to root's crontab (crontab -e as root)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.