LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-05-2005, 06:35 AM   #1
amnesty_puppy
Member
 
Registered: Aug 2004
Location: Britain
Distribution: Gentoo
Posts: 52

Rep: Reputation: 15
Not auto mounting


I have a nfs mount that isn't mounting at boot as it should. From my fstab:

quiller:/home/amn_puppy /mnt/quiller nfs users,rw,auto 0 0

Other auto mounts work fine.

What could be wrong?

Thanks, Dom.
 
Old 08-05-2005, 07:38 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
I take it that you can still manually mount the nfs share using the mount command?

You could try: mount -av and read the messages ... looking at the boot log should tell you what happened when the share was to be loaded. dmesg is a good bet.

try option "user" by itself - this should allow you to mount/unmount without being root.

try options "user,auto" should this work.

You don't want "users" because then any user can unmount the share you are working on if you see what I mean.

But you really want the logs.

"user" already implies "noexec".
 
Old 08-05-2005, 07:46 AM   #3
amnesty_puppy
Member
 
Registered: Aug 2004
Location: Britain
Distribution: Gentoo
Posts: 52

Original Poster
Rep: Reputation: 15
I'm the only person that uses this computer so I'm not bothered about user access, and I can mount as user. From dmesg I have:

Code:
nfs warning: mount version older than kernel
RPC: call_verify: program 100003, version 3 unsupported by server quiller
RPC: call_verify: program 100003, version 3 unsupported by server quiller
nfs warning: mount version older than kernel
I don't know if this means it didn't work, because it mounts manually when I'm logged on without a problem.

Thanks, Dom.
 
Old 08-05-2005, 08:06 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You're gonna make it if you try - They're gonna love you!
Shall I tell you the name of the game ... ?

sounds like updating mount may do the trick.

OK - you can mount as user ...
try it with the -v option and check the output.
try again with -av (most are already mounted so fine - but you see, the boot script is calling mount -a to mount everything not marked "noauto". The only difference as user (except that you have given a user root access?) is the absence of the -a option (and it's being run by init I guess).

(Or - are there two versions of "mount" - like if the kernel boot image is an old one?)
 
Old 08-05-2005, 12:19 PM   #5
amnesty_puppy
Member
 
Registered: Aug 2004
Location: Britain
Distribution: Gentoo
Posts: 52

Original Poster
Rep: Reputation: 15
-v and -av both mount sucessfully but with "mount: failed with nfs mount version 4, trying 3..". Not sure what you mean by the last comment but my kernel is 2.6.10.
 
Old 08-05-2005, 05:35 PM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Sometimes, when people recompile their kernel, they keep the old initrd or use pointers to the old kernel tree or other oddness. This creates trouble.
Probably dosn't apply to you.

I take it client and server machines are not identical?

The boot message is telling you that nfs mount 3 is not supported on the server - the mount message is telling you it failed with nfs4 and tries nfs3 (then it works!!!) <sigh>

read man nfs to see what these are.
you may need to specify nfsvers=2
 
Old 08-06-2005, 05:29 AM   #7
amnesty_puppy
Member
 
Registered: Aug 2004
Location: Britain
Distribution: Gentoo
Posts: 52

Original Poster
Rep: Reputation: 15
I *think* my kernel's OK. I tried using nfs 2 and it eliminates the messages, dmesg just has the usual mount version lower than kernel thing, it seems to suggest that it's been mounted. I can't imagine what's going on here unless something else is unmounting it afterwards. I think I've just done so much poking around to my installation it's gone weird. Ah well, thanks for your help anyway

(AFTERTHOUGHT: I think I'll try and work around it by putting the mount in my login script.)

Last edited by amnesty_puppy; 08-06-2005 at 05:32 AM.
 
Old 08-06-2005, 09:37 PM   #8
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Your bootscript should have a "mount -a" command in there. You could try explicitly mounting the nfs share after this.

You could, instaed, try adding it to the login script.

BTW: it won't mount is the client cannot see the server, if the client dosn't have the right access on the server, if NFS is not running on the server. Hence NFS is not usually configured to mount at startup unless you know the server will be running.
 
Old 08-07-2005, 12:14 PM   #9
amnesty_puppy
Member
 
Registered: Aug 2004
Location: Britain
Distribution: Gentoo
Posts: 52

Original Poster
Rep: Reputation: 15
On your mention of bootscripts I checked mine out and it seems there is an nfsmount bootscript that wasn't set to run. Looks like I didn't sort it out properly when I set the share up a while back . Thanks for your time, I wouldn't have noticed that without your mention.
 
Old 08-07-2005, 08:27 PM   #10
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
cute - I'll take what credit is going
Check what that script does though.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-Mounting on Boot. dolvmin Linux - Software 2 08-03-2003 05:39 PM
Auto Mounting IcoNyx Linux - Software 2 03-30-2003 08:04 PM
What is auto mounting my CDROMs? rkircher Linux - General 6 02-08-2003 09:57 PM
Auto-mounting X11 Slackware 1 07-07-2002 01:19 AM
Auto Mounting? erichard2000 Linux - Newbie 12 02-23-2001 10:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:46 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration