Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th July 2012, 07:50 PM
johndoe1000 Offline
Registered User
 
Join Date: Dec 2011
Posts: 8
linuxchrome
fedora 17 cannot mount nfs shares using fstab

hi,
i have installed a fresh fedora 17.
i want to mount nfs shares on boot using fstab.
here is a snippet from my fstab:
192.168.0.4:/Pictures /home/george/Pictures nfs _netdev 0 0

I have enabled the network manager wait service:
systemctl enable NetworkManager-wait-online.service

i have also increased the wait time in the service above to 60 seconds.

still it does not mount.

when looking at the /var/log/boot.log file i see error just before the mounting:
Failed to start NFS file locking service..
See 'systemctl status nfs-lock.service' for details.
[ESC[1;32m OK ESC[0m] Reached target Remote File Systems (Pre).
Mounting /home/george/Pictures...
Starting Sendmail Mail Transport Agent...
[ESC[1;31mFAILEDESC[0m] Failed to mount /home/george/Pictures.
See 'systemctl status home-george-Pictures.mount' for details.

when looking at both status files i see the same error:
rpc.statd is not running

can you please help me?
Reply With Quote
  #2  
Old 25th July 2012, 11:14 PM
acidzebra Offline
Registered User
 
Join Date: Jul 2012
Location: Netherlands
Posts: 7
windows_7firefox
Re: fedora 17 cannot mount nfs shares using fstab

As root:
systemctl enable rpcbind.service
systemctl enable nfs-lock.service
systemctl enable nfs-idmap.service
systemctl start rpcbind.service
systemctl start nfs-idmap.service
systemctl start nfs-lock.service

then try mounting again.
Reply With Quote
  #3  
Old 26th July 2012, 12:50 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfirefox
Re: fedora 17 cannot mount nfs shares using fstab

RPC bind is not needed on the client. And as I understand, NFSv4 doesn't require it even on the server.

Look in the /var/log/messages file and see what the real errors are. Possibly, the firewall on the server is not allowing your client to connect.
Reply With Quote
  #4  
Old 26th October 2012, 07:34 PM
Xavior Offline
Registered User
 
Join Date: Aug 2006
Location: USA
Posts: 323
linuxfirefox
Re: fedora 17 cannot mount nfs shares using fstab

Is this yet another time I have to disable seLinux ?

I can't get nfs to connect either.

~frustrated
Reply With Quote
  #5  
Old 26th October 2012, 07:56 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfirefox
Re: fedora 17 cannot mount nfs shares using fstab

Has nothng to do with SELinux, except possibly on the server - it has to be told to permit NFS exports.

But this is the client.

Oh, and this is an old thread...
Reply With Quote
  #6  
Old 26th October 2012, 08:12 PM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
windows_xp_2003firefox
Re: fedora 17 cannot mount nfs shares using fstab

This is indeed an older thread. In the spirit of helping Xavior there needs to be an exported folder on the server side. On my server I export the /script folder to all takers on my local network. In /etc/exports I add
PHP Code:
/script   10.0.0.0/24(rw,sync,no_root_squash,no_all_squash
Save and exit. Then
PHP Code:
systemctl enable nfs-server.service
systemctl start nfs
-server.service
exportfs 
-rav 
Then from a client I can mount this automatically in fstab.
PHP Code:
server:/script /mnt/script nfs _netdev,auto 0 0 
There needs to be a /mnt/script folder on the client.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #7  
Old 26th October 2012, 08:16 PM
Xavior Offline
Registered User
 
Join Date: Aug 2006
Location: USA
Posts: 323
linuxfirefox
Re: fedora 17 cannot mount nfs shares using fstab

It's about Fedora 17, nfs client not connecting, so it's relevant.
The server has not changed and was working for year before....
my client was updated ffrom F14 to F17 and now doesn't work.
$ mount /sharedir
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified

and I don't think it has anything to do with statd...

Any ideas?

---------- Post added at 12:15 PM ---------- Previous post was at 12:13 PM ----------

Do I need to disable selinux again in F17 too ?

---------- Post added at 12:16 PM ---------- Previous post was at 12:15 PM ----------

...and do I need to make firewall ports static in F17 ? if so what file do I set these in it used to be /etc/sysconfig/nfs but I don't see same things anymore in that file...

~Ahhhhh!!! lol
Reply With Quote
  #8  
Old 26th October 2012, 08:17 PM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
windows_xp_2003firefox
Re: fedora 17 cannot mount nfs shares using fstab

Quote:
Originally Posted by Xavior View Post
Do I need to disable selinux again in F17 too ?
On my server selinux is set to enforcing.
PHP Code:
[glenn@blackhole ~>$ getenforce
Enforcing 
To troubleshoot you could set it to permissive.
PHP Code:
setenforce 0 
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #9  
Old 26th October 2012, 08:24 PM
glennzo's Avatar
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
windows_xp_2003firefox
Re: fedora 17 cannot mount nfs shares using fstab

NFS4 should be allowed in the firewall configuration on the server.
PHP Code:
yum install system-config-firewall-tui
system
-config-firewall-tui 
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #10  
Old 26th October 2012, 08:47 PM
Xavior Offline
Registered User
 
Join Date: Aug 2006
Location: USA
Posts: 323
linuxfirefox
Re: fedora 17 cannot mount nfs shares using fstab

The server is F14, and other F14 PC has no issues connecting,
so why would server that's been working for a year be the problem?

Just curious,
Xav
Reply With Quote
Reply

Tags
fedora, fstab, mount, nfs, shares

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] F13 box can mount NFS shares but not access them; non-Fedora boxes work fine futuremonkey Servers & Networking 0 13th August 2010 03:11 PM
How to mount shares inside fedora virtualbox? leadgolem Using Fedora 2 29th February 2008 06:03 PM
fstab not mounting nfs shares bigbearomaha Servers & Networking 7 15th September 2007 04:07 AM
smbfs shares through /etc/fstab - help! belthezar Servers & Networking 7 10th May 2005 07:12 PM
Mounting smb shares in fstab cre Using Fedora 3 1st November 2004 05:34 AM


Current GMT-time: 03:38 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat