LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-07-2005, 09:11 AM   #1
dodjie60
LQ Newbie
 
Registered: Aug 2005
Location: Equatorial Guinea
Distribution: OpenSuSE 10.2/Fedora 7/Ubuntu
Posts: 27

Rep: Reputation: 15
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.

Dodjie
1st post

Last edited by dodjie60; 09-07-2005 at 09:17 AM.
 
Old 09-07-2005, 03:44 PM   #2
sarahan
LQ Newbie
 
Registered: Aug 2003
Location: Livermore, CA
Distribution: Ubuntu Dapper, Gentoo, Win2k, WinXP
Posts: 28

Rep: Reputation: 15
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?
 
Old 09-08-2005, 02:24 AM   #3
dodjie60
LQ Newbie
 
Registered: Aug 2005
Location: Equatorial Guinea
Distribution: OpenSuSE 10.2/Fedora 7/Ubuntu
Posts: 27

Original Poster
Rep: Reputation: 15
I knew it, someone will ask this.

sigeacdws005@dodjie:~> cat /etc/fstab
/dev/hda7 / reiserfs acl,user_xattr 1 1
/dev/hda5 /data1 auto noauto,user 0 0
/dev/hdb7 /data2 auto noauto,user 0 0
/dev/hda1 /windows/C vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/hdb1 /windows/D vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/hdb5 /windows/E vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/hda6 swap swap pri=42 0 0
/dev/hdb6 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/cdrecorder /media/cdrecorder subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/dvd /media/dvd subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs noauto,fs=floppyfss,procuid,nodev,nosuid,sync 0 0
//10.101.100.101/pub /mnt/ cifs username=xxx,password=xxx 0 0

and part of my dmesg |more
...........
CIFS VFS: Error connecting to IPv4 socket. Aborting operation
CIFS VFS: cifs_mount failed w/return code = -101
Capability LSM initialized
ieee1394: Initialized config rom entry `ip1394'
ieee1394: raw1394: /dev/raw1394 device initialized
video1394: Installed video1394 module
parport0: PC-style at 0x378 [PCSPP,EPP]
..........

I was thinking the failure is due to the hirarchy in booting. I still am tracing the error. Anyway, proper instruction will be apppreciated.
 
Old 09-08-2005, 02:08 PM   #4
sarahan
LQ Newbie
 
Registered: Aug 2003
Location: Livermore, CA
Distribution: Ubuntu Dapper, Gentoo, Win2k, WinXP
Posts: 28

Rep: Reputation: 15
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...
 
Old 09-08-2005, 02:12 PM   #5
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
I am wondering if perhaps networking is not yet up when it attempts to mount? Have you tried adding your own 'mount' statement to rc.local or similar?
 
Old 09-09-2005, 02:29 AM   #6
dodjie60
LQ Newbie
 
Registered: Aug 2005
Location: Equatorial Guinea
Distribution: OpenSuSE 10.2/Fedora 7/Ubuntu
Posts: 27

Original Poster
Rep: Reputation: 15
Matir,

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.

Last edited by dodjie60; 09-09-2005 at 03:31 AM.
 
Old 09-09-2005, 02:42 AM   #7
dodjie60
LQ Newbie
 
Registered: Aug 2005
Location: Equatorial Guinea
Distribution: OpenSuSE 10.2/Fedora 7/Ubuntu
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
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.

No sarcasm intended, really.
 
Old 09-09-2005, 10:54 AM   #8
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Quote:
Originally posted by dodjie60
Matir,

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.
 
Old 09-09-2005, 03:34 PM   #9
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,178

Rep: Reputation: 49
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*
 
Old 09-09-2005, 11:31 PM   #10
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
A smb uri is of the form //host/share. NFS is of the form host:/directory. //ip/share works as well.
 
Old 09-10-2005, 02:17 AM   #11
dodjie60
LQ Newbie
 
Registered: Aug 2005
Location: Equatorial Guinea
Distribution: OpenSuSE 10.2/Fedora 7/Ubuntu
Posts: 27

Original Poster
Rep: Reputation: 15
Question

Quote:
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*

Yes I'll try this later.

Didn't work.

Last edited by dodjie60; 09-10-2005 at 02:24 AM.
 
Old 09-10-2005, 04:08 AM   #12
dodjie60
LQ Newbie
 
Registered: Aug 2005
Location: Equatorial Guinea
Distribution: OpenSuSE 10.2/Fedora 7/Ubuntu
Posts: 27

Original Poster
Rep: Reputation: 15
I think, I found the solution to my problem, the main thing is I don't know how to edit this .

Please, if anyone can give me an instruction, this might solve my problem.
 
Old 09-10-2005, 01:07 PM   #13
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
That's talking about patching and reinstalling the samba source.
 
Old 09-12-2005, 02:39 AM   #14
dodjie60
LQ Newbie
 
Registered: Aug 2005
Location: Equatorial Guinea
Distribution: OpenSuSE 10.2/Fedora 7/Ubuntu
Posts: 27

Original Poster
Rep: Reputation: 15
Talking

Quote:
Originally posted by Matir
That's talking about patching and reinstalling the samba source.
How to do it, I'm getting desperate here.
 
Old 09-12-2005, 07:42 AM   #15
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Download and extract the source, then make the changes they discuss.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File Share Server ashucool83 Programming 0 09-28-2005 07:06 PM
Auto-Mounting a Windows Share On Starup FlamingBee Linux - Networking 30 07-25-2005 08:38 AM
Mounting windows xp file system, creates mnt point, however, cant read files in share cmd0a0 Linux - Networking 10 04-16-2005 12:28 AM
Auto mounting Linux smb share on Windows at startup neranjana Linux - Networking 1 07-02-2004 06:56 PM
mounting share on win2000 server phatboyz Linux - Networking 0 03-25-2004 10:33 AM


All times are GMT -5. The time now is 05:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration