View Full Version : Mounting NON-local linux to linux

08-04-2005, 05:37 PM
Does anyone know of a good tutorial or even how to mount a NON-local linux box to another linux box.

Tech Details
Both Debian 3.1 Servers
NFS installed and running (not sure if you use NFS)

08-04-2005, 06:58 PM
NFS - Network File System

Client program: "mount". Allows mounting other server's NFS directories.
Server programs: "nfsd" and "mountd". Shares directories to other clients.

(client) To mount a remote directory on server named "fred":
mount fred:/opt/abc /opt/abc -t nfs -o rsize=8192,wsize=8192
"rsize" & "wsize" is recommended for performance.
See exports(5) for all available options.

(server) Make sure NFS server software is loaded and running.
Create file: /etc/exports to list directories to be shared.
Send a SIGHUP to nfsd and mountd to reread /etc/export changes.
KILL -SIGHUP 265 279 # Use the correct process numbers!
# sample /etc/exports file. (starts in column one)
/ master(rw) trusty(rw,no_root_squash)
/projects proj*.local.domain(rw)
/usr *.local.domain(ro) @trusted(rw)
/home/joe pc001(rw,all_squash,anonuid=150,anongid=100)
/pub (ro,insecure,all_squash)
/pub/private (noaccess)

NFS mounts can be kept in the /etc/fstab file to allow mounting upon boot,
and setting different default options for directories.
Example line: (starts in column one)
fred:/opt/app /opt/app nfs rsize=8192,wsize=8192,ro 0 0
Also try

man nfs