LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 08-06-2009, 04:38 PM   #1
LolloNotaro
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Rep: Reputation: 0
MyBook 1.00.16 firmware. NFS Unable to mount a resource using an hostname.


Hello,

I have purchased from less then one week MyBook 1Tb white edition.
It is now updated to the 1.00.16 firmware and this is the version:

Code:
[root@MyBookWorld etc]# uname -a
Linux MyBookWorld 2.6.24.4 #1 Tue Feb 10 11:00:22 GMT 2009 armv5tejl unknown
I want to use it using a dynamic DNS service (dyndns).
The MyBook is part of a domestic LAN, behind a Netgear Router.

I have registered it and I have assigned to it an host which dynamically manage the IP changes (I use dyndns service for it). After I have enabled the port forwarding for SSH and FTP I am able to use SSH and FTP using a reference to the host name during the connection.

So far so god.

Now I was able to enable to use even NFS but just when I use the local IP 192.168.1.3 of my domestic LAN.
While when I try to use the host name I cannot do it.

This is working:

[CODE]
mount -t nfs 192.168.1.3:/nfs/lorenzo /mnt/mybook
[CODE]

But this is not working

[CODE]
mount -t nfs myhost.dyndns.info:/nfs/lorenzo /mnt/mybook
[CODE]

Somebody knows which can be the issue?

Thanks
Lorenzo
 
Old 08-07-2009, 02:11 AM   #2
910
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Rep: Reputation: 1
If you don't have a large number of clients, the easiest way is probably using the client device's local hosts file. This will make myhost.dyndns.info resolve as an IP address of your choice (which would be 192.168.1.3).

The file is likely /etc/hosts and the line you need to add is something like

192.168.1.3 myhost.dyndns.info
 
Old 08-07-2009, 05:42 AM   #3
LolloNotaro
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Hello,

Thanks for your answer. I have tried to follow your suggestion but it still doesn't work:

Here more info:

Code:
[root@MyBookWorld ~]# more /etc/sysconfig/network 
NETWORKING=yes
HOSTNAME=MyBookWorld
Code:
[root@MyBookWorld ~]# more /etc/hosts             
#127.0.0.1	localhost.localdomain	localhost MyBookWorld
192.168.1.3	lollomb.dyndns.info
What else can I do?
 
Old 08-07-2009, 06:57 AM   #4
910
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Rep: Reputation: 1
Quote:
Originally Posted by LolloNotaro View Post

Code:
[root@MyBookWorld ~]# more /etc/hosts             
#127.0.0.1	localhost.localdomain	localhost MyBookWorld
192.168.1.3	lollomb.dyndns.info
What else can I do?
My answer might have been a bit vague. I meant that you need to add the line to the hosts file of the client device not the NFS server (Mybook)

This way the client will resolve lollomb.dyndns.info as 192.168.1.3 and not the internet-routable address 79.97.201.94. Note that if this client device is brought outside of your LAN it will not work any more because the name always resolves as the internal address.

BTW, I suggest you don't keep the NFS service open to the internet if it's not necessary.
 
Old 08-07-2009, 05:24 PM   #5
LolloNotaro
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Hello, thanks for your answer.

This is work in my LAN.

And if I would like make NFS service open to the Internet, how can I do then?
Why have NFS open is it a bad idea? Maybe for security reason?

Thanks
Lorenzo
 
Old 08-10-2009, 05:15 AM   #6
910
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Rep: Reputation: 1
Quote:
And if I would like make NFS service open to the Internet, how can I do then?
Forwarding the ports used by NFS (and perhaps forcing NFS to use static ports instead of dynamically assigned ones) in the router to the Mybook would probably do the trick. I'm afraid I have little experience of the subject, though.

Quote:
Why have NFS open is it a bad idea? Maybe for security reason?
Exactly.
 
Old 08-10-2009, 01:35 PM   #7
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Offering NFS V3 over the internet is not a good idea unless you are going through a VPN tunnel. NFS V4 can operate using a single TCP port so you could use an ssh tunnel.

I didn't know that MyBook's supported NFS.

Isn't the .dyndns.info service for the WAN side of your router? You could use avanti (zeroconf) instead. Instead of using hostname, you use hostname.local. For a home network, I would recommend mapping IP <-> MAC addresses in the DHCP router so that your local IP addresses don't change. Then you can add each host to the /etc/hosts file and not have to worry about one computer getting a different address when it's lease runs out.

You could have a computer that has the drive mounted accept ssh connections and use scp, sftp or konqueror's fish:/ protocol to transfer files with a remote connection.

Last edited by jschiwal; 08-10-2009 at 01:43 PM.
 
  


Reply

Tags
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
Unable to mount nfs filesystem on dm355 tamilm Linux - Newbie 1 01-23-2009 08:31 PM
I am unable to mount to nfs server ram_rajavarapu Linux - Enterprise 1 11-17-2008 03:35 AM
Host unable to mount NFS mounts kaplan71 Linux - Server 1 10-23-2008 02:17 PM
Unable to mount via NFS calebsg Linux - Networking 3 03-11-2005 08:37 PM
Unable to nfs umount:Device or resource busy nabil Linux - General 3 05-05-2002 07:52 PM


All times are GMT -5. The time now is 05:23 PM.

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