Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
By do0m at 2005-08-04 01:48
Easy NFS
NFS (Network File System) allows separate machines to mount partitions across the network. That is, it
allows you to mount remote filesystems on local machines like local drives.
This tutorial was tested with Gentoo and FreeBSD and mainly targeted at Linux, but it should work across
all platforms supported by NFS. If you need, refer to your documentation for details on your specific
platform. All the examples here should be modified to fit your network.
Setting up /etc/exports
Have your text editor at hand (I like nano or vim).
Before editing the exports file, you should view the man page (man exports).
The basic syntax of an exports entry looks something like this:
There are several options you can provide, depending on how you intend to
share your directory. A complete list of available options are listed in
the exports man page. Here's a brief summary:
rw: read/write
ro: read-only
no_root_squash: allows root access on the server
I find no_root_squash useful for administrative work on my machines, but it
can have some security implications. Be careful with root access, as always.
You can also use wildcard characters in these entries, though it would be
unwise to do so. (Allowing access to EVERYONE is quite dangerous.)
Setting up /etc/hosts.allow
You may already be familiar with hosts.allow.
The basic syntax of a hosts.allow entry is
Code:
service: host
For example
Code:
portmap: 192.168.0.101
You will need to make the following entries in your hosts.allow file for
NFS:
It proved extremely helpful as it started all of the necessary services.
by chr15t0 on Sun, 2009-09-27 14:30
The setting up of NFS in linux looks pretty much the same as it is using a Freebsd host if I compare this to this NFS setup tutorial for Freebsd systems mounting into a Linux guest system.
by fengli on Mon, 2009-12-07 01:04
thank you! this is a very good article
by dumdadum on Thu, 2010-04-01 04:26
Quote:
Originally Posted by LOLobo
The tutorial would be even more helpful if it contained information on how to start these services.
It proved extremely helpful as it started all of the necessary services.
Yes, thank you very much for posting that line of code, it solved my problem. Just the fact that it starts all the necessary services is really helpful.
Damn I really like the Slackware community. People help each other. Bits and pieces here and there and bam everything is up and running.
Thanks so much (=
by CatMan3110 on Wed, 2013-10-23 21:13
Here is a link for a subnet calculator in case anyone is interested.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
begin enjoying your NFS setup.
::Edit::
Found this code here
::Edit::
Found this code here
Damn I really like the Slackware community. People help each other. Bits and pieces here and there and bam everything is up and running.
Thanks so much (=
http://www.subnet-calculator.com/