Re: NFS help (how to load nfs module)

Glenn Graham (glenn@intextonline.com)
Tue, 29 Sep 1998 17:02:07 -0700 (PDT)


Simple.

Don't use the loadable module. Build the NFS into the kernel
under the filesystems option.

For your information;
There are three servers required under linux to make the
nfs process work.

rpc.nfsd
rpc.mountd
rpc.portmap

I would normally place the following in /etc/exports for
root access to the server

/ xxx.xxx.xxx.xxx (rw,no_root_squash)

The creat an exportfs file, to rehup the nfs demons after
you edit the exports file

like so;

#!/bin/sh
killall -HUP /usr/sbin/rpc.mountd
killall -HUP /usr/sbin/rpc.nfsd
echo re-exported nfs filesystem

This is pretty standard stuff.

The rpc servers such as rpc.portmap, get loaded from rc.inet2.

If you are the least bit security concious, you'll read all there is to
know on nfs, as giving full root with no_squash could be dangerous, and
leaving the sun rpc demon running all the time the same.

I have a kill script that kills my rpc stuff when I'm not using it, and
another scrip to start it back up again.

Cheers !

On Tue, 29 Sep 1998, HORTON, DEREK K wrote:

> Date: Tue, 29 Sep 1998 08:48:11 CDT
> From: "HORTON, DEREK K" <STU2997@ATUVM.ATU.EDU>
> To: linux-net@vger.rutgers.edu
> Subject: NFS help (how to load nfs module)
>
> Hi
> I have am trying to get my linux machine to connect to another linux
> machine that is setup to export a nfs partition. The server is
> configured correctly. Now, on the workstation side I tried to mount the
> nfs export but it told me that nfs was not in the kernel so I looked at
> the old /usr/src/linux/.config and it said that it was a module. So I
> did a "insmod nfs" and that worked. Now I went and edited the
> /etc/fstab and put in that it should mount that partition at boot up. I
> also put in a line in my /etc/rc.d/rc.local that would load the nfs
> module, but the machine tries to mount the nfs export before loading the
> nfs module therefore it fails. So my question is how can I get the nfs
> module to be loaded earlier? Thanks for your time.
> Derek Horton
> stu2997@atuvm.atu.edu
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to majordomo@vger.rutgers.edu
>

**********************************************
inTEXT Communications Vancouver BC Canada
Corporate Intranet & Internet Security
System Administration - FireWall Systems
Linux Bsd FreeBSD Programming Perl / c / c++
www.intextonline.com | glenn@intextonline.com

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu