LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-30-2006, 07:10 PM   #1
d00bid00b
Member
 
Registered: Aug 2005
Location: London, UK
Distribution: Debian Testing
Posts: 157

Rep: Reputation: 31
NFS hangs at mounting


I am wanting to set up an NFS, to share files between my desktop [server] (192.168.1.40) and my laptop [client] (192.168.1.20).

After pouring through numerous tutorials and searching through these forums, and after ensuring that the relevant daemons (rpc.portmap and rpc.nfsd) are running, I have done the following:

On the server (192.168.1.40), in /etc/exports, I added
Code:
/home/myfile/file-to-share 192.168.1.40/255.255.255.0(rw,sync,no_root_squash)
Thereafter, I ran exportfs -ra
and restarted the daemons for good measure

I then edited /etc/hosts.deny:
Code:
portmap: ALL
and /etc/hosts.allow:
Code:
portmap: 192.168.1.40
Then on the client side, I entered:
Code:
mount -t nfs -o rw 192.168.1.40:/home/myfile/file-to-share /mnt/file-to-share
This leads to an indefinite hanging ... and I can't kill the process either. It requires a reboot to shut down.

To deal with this, I have played around with the /etc/exports file, by editing so that it reads
Code:
...(rw,async,no_root_squash)
as well as
Code:
...(rw,sync,all_squash)
and even
Code:
...(rw,async,all_squash)
all of which have the same effect: the client/laptop just hangs ...

So, now I am stuck and have exhausted my options and need some help to get through this. I have googled quite extensively, but seem to have covered pretty much all of what google throws back.

Any suggestions for a fix?

Thanks
 
Old 07-01-2006, 02:02 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941

Rep: Reputation: 129Reputation: 129
Please pardon the short response, but I think Setting up NFS on Slackware is the tutorial you need.

I see some things, but since Eric already went to the trouble to write this, I'd rather link you. If you follow that guide, and still have problems, post back. It works flawlessly for me here. His Samba works for my Windoze OSes to mount, also.
 
Old 07-01-2006, 03:51 AM   #3
d00bid00b
Member
 
Registered: Aug 2005
Location: London, UK
Distribution: Debian Testing
Posts: 157

Original Poster
Rep: Reputation: 31
Hi Chinaman

Thanks for the link. This was one of the many tutorials I was working with last night. Anyway, I revisited it and followed his instructions and am now left with a "permission denied" message and an unmounted nfs.

It would be helpful if someone were able to critique what it is that I have done as listed on my original post, that way I can retrace my steps.

TIA
 
Old 07-01-2006, 05:07 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941

Rep: Reputation: 129Reputation: 129
Okay, please post verbosely the output of:

From the server:
"cat /etc/exports"
"showmount -e <NFS_servername>"
"df -h"
"id" as user
"/sbin/ifconfig"
"/sbin/route -n"
"ls -l /etc/rc.d/rc.nfsd"

From the client:
"cat /etc/fstab"
"id" as user
"/sbin/ifconfig"
"/sbin/route -n"
"ls -l /etc/rc.d/rc.portmap"

Last edited by Bruce Hill; 07-01-2006 at 05:11 AM.
 
Old 07-01-2006, 07:11 AM   #5
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 37
Don't mean to step in the middle but..
On the server looks like you are exporting the directory to the server itself ie xxx.40. Try changing /etc/exports to the laptop xxx.20
 
Old 07-01-2006, 11:49 AM   #6
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
PDock has a good point, you have wrong IP address in /etc/exports and in /etc/hosts.allow. In addition default and correct port(service) name for hosts.allow is sunrpc not portmap. See /etc/services.
Also make sure rpc.portmap is running on the client side too.
 
  


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
NFS Hangs Gentoo 2.6 Test 9 snowmobile74 Linux - Software 1 07-01-2006 07:40 AM
NFS VPN network hangs longtex Linux - Networking 2 10-20-2005 08:58 PM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 05:18 AM
NFS install hangs tmorton Slackware 2 08-27-2003 07:03 PM
NFS hangs Nautilus TheCoffeeMug Linux - Networking 1 12-29-2002 02:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:26 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