Newbie Question - Auto mounting of server share file
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.
Newbie Question - Auto mounting of server share file
I've been using SuSe from 9.0 (8 months) upgraded to 9.3 (3 months)
Here's the question,
Although successfully done, I always have to do a manual mounting of our server share file as - "dodjie:/home/sigeacdws005 # mount -t cifs //10.101.110.101/pub /mnt/ -o user=xxx,password=xxx" is there anyway of doing this automatically at startup?
My previous solutions were:
I already tried editing fstab to no avail (or did I make a mistake in editing fstab?).
Smb4k doesn't mount it automatically either even after editing file system from SMBFS to CIFS.
Mounting using an smbfs gives me an error "cli_negprot: SMB signing is mandatory and we have disabled it. 7545: protocol negotiation failed" meaning no luck in smbfs.
Solution or proper instruction to the above qustion will highly be appreciated.
Please post a copy of your fstab - I'm betting there's something wrong with it. I've never tried a samba or CIFS mount, but NFS mounts work just fine for me with a good fstab file.
First thought might be - do you have fstab updated to reflect your CIFS change?
That looks just fine from my semi-educated standpoint (would work with NFS, at least).
other first things first - can you ping the other computer? You might be investigating a non-issue if it's as simple as network config (or re-config). Is the windows box running any kind of firewall that would block access?
And if you knew someone was going to ask to see your fstab, why didn't you post it in the first place? Help us help you...
That's what I am also thinking when I said "hierarchy in booting".I haven't got my own module to bypass this problem (frankly, I don't know how to). I'm still looking for a solution to this problem, giving me a hard time. I am setting up my own Linux Box to connect to our win2003 server (big company here), this is my last problem. Most of our files/software (Financial Information System, Management Information System etc.) had already been setup to run automatically in my SuSe 9.3 (using wine and dosemu) except this auto mounting thingy.
Another thing, what if I insert this "mount -t cifs //10.101.110.101/pub /mnt/ -o user=xxx,password=xxx" to my etc/init.d/boot.local, will there be any consequences?
So please, any solution will greatly be appreciated.
Originally posted by sarahan That looks just fine from my semi-educated standpoint (would work with NFS, at least).
other first things first - can you ping the other computer? You might be investigating a non-issue if it's as simple as network config (or re-config). Is the windows box running any kind of firewall that would block access?
And if you knew someone was going to ask to see your fstab, why didn't you post it in the first place? Help us help you...
If i can mount it manually using a console, of course, I can ping not only the server but all PC connected to the server and of course, I can go through the server firewall, right?
About my not posting my fstab in the first place, well, I researched the Linux Tutorials on Networking first before I posted my problem and am 100% sure that my fstab is correct. Reason why I didn't post my fstab.
That's what I am also thinking when I said "hierarchy in booting".I haven't got my own module to bypass this problem (frankly, I don't know how to). I'm still looking for a solution to this problem, giving me a hard time. I am setting up my own Linux Box to connect to our win2003 server (big company here), this is my last problem. Most of our files/software (Financial Information System, Management Information System etc.) had already been setup to run automatically in my SuSe 9.3 (using wine and dosemu) except this auto mounting thingy.
Another thing, what if I insert this "mount -t cifs //10.101.110.101/pub /mnt/ -o user=xxx,password=xxx" to my etc/init.d/boot.local, will there be any consequences?
So please, any solution will greatly be appreciated.
I can't think of any consequences. It will mount it for you.
Something I noticed that may or may not make a difference: to get nfs up and running in my fstab I had to use the following format instead of the one you're running now:
Code:
192.168.0.015:/home/public /mnt/server auto defaults,user 0 0
The main difference is yours has some preceeding //'s and no colon. I couldn't get it working that way either, but this worked as a snap. *shrug*
Originally posted by Poetics Something I noticed that may or may not make a difference: to get nfs up and running in my fstab I had to use the following format instead of the one you're running now:
Code:
192.168.0.015:/home/public /mnt/server auto defaults,user 0 0
The main difference is yours has some preceeding //'s and no colon. I couldn't get it working that way either, but this worked as a snap. *shrug*
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.