Click to See Complete Forum and Search --> : NFS mounts do not work


ericb
04-03-2000, 12:21 PM
I've been working on setting up a webserver at my school and part of what i want to do involves NFS mounts from one box to another.

I have gotten to the point that when i try to mount something it will look like it has done it and i can cd to the directory that it is mounted in, but i don't see any files that live in that directory on the other computer.

if anyone has any ideas it would be greatly appreciated. let me know if you need any more info from me.

thanks,
ericb

Seagull
04-03-2000, 01:28 PM
Have you seen the following NFS document?
http://www.linuxdoc.org/HOWTO/NFS-HOWTO.html

ericb
04-03-2000, 05:26 PM
Originally posted by Seagull:
Have you seen the following NFS document?
http://www.linuxdoc.org/HOWTO/NFS-HOWTO.html

yes i have. that's what i used to set it up, but it still isn't working out for me.

TC
04-04-2000, 11:36 PM
Add the client machine to the hosts.allow on the server. Then you need to setup what directories and permissions are needed in the exports file. See below:
http://www.linuxdoc.org/HOWTO/NFS-HOWTO.html
http://www.linuxdoc.org/HOWTO/NFS-HOWTO-3.html#ss3.1

3.4 Mountd and nfsd

The next programs we need running are mountd and nfsd. But first we'll edit another file. /etc/exports this
time. Say I want the file system /mn/eris/local which lives on the machine eris to be available to the
machine called apollon. Then I'd put this in /etc/exports on eris:

/mn/eris/local apollon(rw)

The above line gives apollon read/write access to /mn/eris/local. Instead of rw it could say ro which means
read only (if you put nothing it defaults to read only). There are other options you can give it, and I will
discuss some security related ones later. They are all enumerated in the exports man page which you should
have read at least once in your life. There are also better ways than listing all the hosts in the exports
file. You can for example use net groups if you are running NIS (or NYS) (NIS was known as YP), and always
specify domain wild cards and IP-subnets as hosts that are allowed to mount something. But you should
consider who can get access to the server in unauthorized ways if you use such blanket authorizations.

Note: This exports file is not the same syntax that other Unixes use. There is a separate section in this
HOWTO about other Unixes exports files.

Now we're set to start mountd (or maybe it's called rpc.mountd and then nfsd (which could be called
rpc.nfsd). They will both read the exports file.

If you edit /etc/exports you will have to make sure nfsd and mountd knows that the files have changed. The
traditonal way is to run exportfs. Many Linux distributions lack a exportfs program. If you're exportfs-less
you can install this script on your machine:

Ryeker
10-23-2000, 01:09 AM
I'm having the same problems. The mounting works! Just the directories inside the mount don't have any files listed.

Can anyone help? Thanks!



------------------
ryeker@digitaldev.com

Sokertes
10-23-2000, 01:23 AM
When you cd into that directory are you logged in as root? If so include NO_ROOT_SQUASH to the rules in /etc/export file.

Sokertes

Ryeker
10-23-2000, 12:20 PM
You are brilliant! Thanks!

http://www.linuxnewbie.org/ubb/biggrin.gif

------------------
ryeker@digitaldev.com