LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-05-2011, 10:38 AM   #1
littlejoe5
Member
 
Registered: Aug 2006
Location: Arizona
Distribution: Various Debian derivitives
Posts: 159

Rep: Reputation: 19
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
 
Old 06-08-2011, 06:07 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,557
Blog Entries: 28

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
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?
 
Old 06-09-2011, 12:39 AM   #3
littlejoe5
Member
 
Registered: Aug 2006
Location: Arizona
Distribution: Various Debian derivitives
Posts: 159

Original Poster
Rep: Reputation: 19
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
 
  


Reply

Tags
networking, nfs


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
wvdial worked on Ubuntu but won't work on SUSE GeoRanger Linux - Newbie 2 11-11-2006 12:51 AM
Home Network Similar to Work Network Boffy Linux - Networking 2 08-05-2004 07:52 PM
Internet won't work at home (RH9) zdAntz Linux - Newbie 1 07-21-2004 04:23 AM
Home network - won't gchandler Red Hat 5 11-05-2003 12:35 PM
setting up a home network/ machines won't ping each other rsheridan6 Linux - Networking 5 04-21-2003 03:12 AM


All times are GMT -5. The time now is 08:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration