LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   nfs home network worked once one way, then won't work either way (http://www.linuxquestions.org/questions/linux-networking-3/nfs-home-network-worked-once-one-way-then-wont-work-either-way-884667/)

littlejoe5 06-05-2011 10:38 AM

nfs home network worked once one way, then won't work either way
 
Having some trouble getting nfs to work on my two computer network. Each can ping the other, and both can ping the outside world. The system worked once - yrsterday. - that is, I was able to issue the command line to access the desktop from the laptop, and actually access the files and edit them on the desktop from the laptop. Then I went to the desktop to try to do the reverse, but haven't been able to make that work. I must have changed some key item, because now neither way works. But I also don't get any "errors" in the terminal going either way.

***This is /etc/exports from my laptop***
#/etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check)
#/home/mint10-lap /home/mint10-2011(rw,no_subtree_check)
/home/mint10-lap 192.168.0.2(rw,no_subtree_check)
#/home/mint10-2011 /home/mint10-lap(rw,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#


***and this is /etc/hosts from my laptop***
192.168.0.9 mint10-lap #dm#
127.0.0.1 localhost.localdomain localhost
::1 mint10-lap localhost6.localdomain6 localhost6
192.168.0.2 mint10-2011 #dm#

127.0.1.1 mint10-lap

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts




***here below are the results of the last time I tried to access the desktop from the laptop from the terminal. As you can see there was no error, but the access was not completed (that is, when I check with the file browser: ~/mint10-2011 on the laptop is still empty)***

mint10@mint10-lap ~ $ gksu mount 192.168.0.2:/home ~/mint10-2011
mint10@mint10-lap ~ $



***This is /etc/exports from my desktop***
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,no_subtree_check) hostname2(ro,sync,no_subtree_$
#/home/mint10-2011 mint10-lap(rw,no_subtree_check)
/home/dm mint10-lap(rw,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#

***And this is /etc/hosts from my desktop***
192.168.0.2 mint10-2011 # Added by NetworkManager
192.168.0.9 mint10-2011 #DM#June 2011
127.0.0.1 localhost.localdomain localhost
::1 mint10-2011 localhost6.localdomain6 localhost6
127.0.1.1 mint10-2011

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

***Here are the results of the last time I tried to access the laptop from the desktop using the terminal***
mint10@mint10-2011 ~ $ gksu mount 192.168.0.9:/home ~/mint10-lap
mint10@mint10-2011 ~ $ gksu mount 192.168.0.9:/home ~/mint10-lap
mount.nfs: /home/mint10/mint10-lap is busy or already mountedmint10@mint10-2011 ~ $ gksu mount 192.168.0.9:/home ~/mint10-lap

***Both the machines are running Mint10, and in both cases "mint10" is the user name. The desktop is called "mint10-2011", and the laptop is called "mint10-lap".

Well, that's along post. Hope I haven't overloaded you, but I know you can't help me without knowing what I've got. What have I got wrong, or missing? Dave

catkin 06-08-2011 06:07 AM

The thread is marked SOLVED; if you solved it, would you like to post how in case somebody finds this thread while looking for a solution to a similar problem?

littlejoe5 06-09-2011 12:39 AM

WEll, to ellthe truth, i discovered that I messed it up in the first place, I was trying to follow the directions tha i found on the internet, but didn't really understand them. I don't kow much about the command lines, and internal network devices (or external ones).

I tried to set both computers to fixed inet addresses. I thought I had failed in that, but apperently I had succeeded. But still had some files wrong. How did I get it right?

Well, I got a friend who know linux far better than I do to help me through skype on the desktop, wile I worked on the laptop. I followed his advice carefully, and he got me pretty thouroughly straightened out. WE got the laptop back on dynamic DHCP and left the destop on fixed.

Now both work. I'm not sure why, but if I want to use the Cat5 connection on the laptop instead of wireless, in order to get it to work I have to boot the machine with it plugged in, and turn the wifi on first. Then I can ping the other systems, and when I turn off the wifi the Wired network will work.but not unless I start it with the wifi on.

When I disconnect the wifi and leave the wired connected it works to ping anywhere provided I am using the numerical ip address. But it won't reach (for instance0 google.com, or give me any thing but an error to the command "host hisfeet.net"

I found out that this is because something has deleted the four working lines in /etc/resolv/conf If I put hose lines in manually then the wired system works just fine.

If I leave the network cable unplugged, and just use it wireless, it seems to boot and work just fine, and it gives me access through the network to the appropriate files on the desktop.

I'd like to understand it, but for right now, I'm just going to use it, and try to get some actual work done.

Dave


All times are GMT -5. The time now is 05:01 AM.