Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

[SOLVED] mount.nfs: an incorrect mount option was specified

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

[SOLVED] mount.nfs: an incorrect mount option was specified

  • Quote

Post by Joseph_sys » Sat Apr 23, 2011 7:10 pm

I can not seem to make nfs to work.
I'm following instructions from:
http://en.gentoo-wiki.com/wiki/NFS/Server

Code: Select all

 cat /etc/exports examples
# /etc/exports: NFS file systems being exported.  See exports(5).

/home/joseph 10.0.*.*(async,rw,no_subtree_check)

Code: Select all

cat /etc/fstab
10.0.0.103:/home/joseph/   /home/joseph/mnt/syscon2/    nfs   defaults,users,noauto    0 0
nfs-utils is compiled without "nfsv4"
It starts OK, but when I try to mount it

Code: Select all

mount -t nfs 10.0.0.103:/home/joseph /home/joseph/mnt/syscon2
mount.nfs: an incorrect mount option was specified
or

Code: Select all

mount /home/joseph/mnt/syscon2/
mount.nfs: an incorrect mount option was specified
Last edited by Joseph_sys on Sat Apr 23, 2011 10:28 pm, edited 1 time in total.
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

  • Quote

Post by Joseph_sys » Sat Apr 23, 2011 7:23 pm

Code: Select all

rpcinfo -p 10.0.0.103
   program vers proto   port  service
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  39346  status
    100024    1   tcp  49886  status
    100005    1   udp  43549  mountd
    100005    1   tcp  47665  mountd
    100005    2   udp  54395  mountd
    100005    2   tcp  46436  mountd
    100005    3   udp  47309  mountd
    100005    3   tcp  40399  mountd
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100021    1   udp  40997  nlockmgr
    100021    3   udp  40997  nlockmgr
    100021    4   udp  40997  nlockmgr
    100021    1   tcp  33762  nlockmgr
    100021    3   tcp  33762  nlockmgr
    100021    4   tcp  33762  nlockmgr
Top
bernd_b
Tux's lil' helper
Tux's lil' helper
Posts: 148
Joined: Tue Nov 25, 2003 9:01 am

  • Quote

Post by bernd_b » Sat Apr 23, 2011 7:25 pm

Just a wild guess:
I added "vers=3" to my mount options in /etc/fstab.
At least it gave me luck.

http://forums.gentoo.org/viewtopic-t-84 ... t-nfs.html
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

  • Quote

Post by Joseph_sys » Sat Apr 23, 2011 7:33 pm

I've change fstab entry to:

Code: Select all

10.0.0.103:/home/joseph/   /home/joseph/mnt/syscon2/    nfs   nfsvers=3,users,noauto    0 0
and I get:

Code: Select all

mount /home/joseph/mnt/syscon2/
mount.nfs: access denied by server while mounting 10.0.0.103:/home/joseph/
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Sat Apr 23, 2011 7:40 pm

nfs-utils change behavior at some version that i forget, now it default to always try nfs4 first, the nfsv4 flag is there to add dependies for nfsv4 usage, but still nfsv4 will be use when querying a mount

try mount -t nfs 10.0.0.103:/home/joseph /home/joseph/mnt/syscon2 -v -o nfsvers=3,vers=3
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

  • Quote

Post by Joseph_sys » Sat Apr 23, 2011 9:47 pm

krinn wrote:nfs-utils change behavior at some version that i forget, now it default to always try nfs4 first, the nfsv4 flag is there to add dependies for nfsv4 usage, but still nfsv4 will be use when querying a mount

try mount -t nfs 10.0.0.103:/home/joseph /home/joseph/mnt/syscon2 -v -o nfsvers=3,vers=3
No go:

Code: Select all

mount -t nfs 10.0.0.103:/home/joseph /home/joseph/mnt/syscon2 -v -o nfsvers=3,vers=3
mount.nfs: timeout set for Sat Apr 23 15:48:26 2011
mount.nfs: trying text-based options 'nfsvers=3,vers=3,addr=10.0.0.103'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 10.0.0.103 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 10.0.0.103 prog 100005 vers 3 prot UDP port 54976
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 10.0.0.103:/home/joseph
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

  • Quote

Post by Joseph_sys » Sat Apr 23, 2011 9:55 pm

bernd_b wrote:Just a wild guess:
I added "vers=3" to my mount options in /etc/fstab.
At least it gave me luck.

http://forums.gentoo.org/viewtopic-t-84 ... t-nfs.html
I've seen this link, it doesn't help.
Do you mean fstab entry like this:

Code: Select all

10.0.0.103:/home/joseph   /home/joseph/mnt/syscon2    nfs   vers=3,nfsvers=3,users,noauto    0 0
Still same error:

Code: Select all

mount -v /home/joseph/mnt/syscon2/
mount.nfs: timeout set for Sat Apr 23 15:57:31 2011
mount.nfs: trying text-based options 'vers=3,nfsvers=3,addr=10.0.0.103'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 10.0.0.103 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 10.0.0.103 prog 100005 vers 3 prot UDP port 54976
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 10.0.0.103:/home/joseph
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

  • Quote

Post by Joseph_sys » Sat Apr 23, 2011 10:27 pm

SOLVED,
/etc/exports should be:
/home/joseph 10.0.0.0/255.255.0.0(async,rw,no_subtree_check)

The correct setting if somebody will encounter the same problem:

Code: Select all

fstab:
...
10.0.0.103:/home/joseph   /home/joseph/mnt/syscon2    nfs   nfsvers=3,users,noauto    0 0

Code: Select all

cat /etc/exports 
/home/joseph 10.0.0.0/255.255.0.0(async,rw,no_subtree_check)
Top
Post Reply

8 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy