Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to mount a directory on one server to another? Post 302318634 by pludi on Friday 22nd of May 2009 02:37:22 AM
Old 05-22-2009
If you're going with NFS you'll have to do
  1. Install an NFS server for your OS
  2. Tell the NFS server which directories to export by entering them into /etc/exports. Example:
    Code:
    /home/userme/reports 10.0.0.2(ro,all_squash,anonuid=<uid>,anongid=<gid>)

    This tells NFS to export /home/userme/reports to the server with the IP 10.0.0.2 as read-only, and all users are mapped to the anonymous user, using a certain UID and GID.
  3. Open/redirect the port 2049 (and maybe 111 if you're using portmap) on the firewall for the internal server for the public ONLY
  4. On the public server run mount -t nfs internal_server:/home/userme/reports /mnt/reports
This should get you set up.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

NFS mount home directory

Hello All, I have a question that I think I have the answer to but I'm not sure. All the information I get kind of dance around it. Well, my question is if you have NFS running, automount running, with auto_master and auto_home on a server. If a user logs in form cleint machine that has... (3 Replies)
Discussion started by: larry
3 Replies

2. Solaris

How to mount a directory on another server?

Hi, I have two solaris 10 servers, and I want a directory (test) in server A be accessible in server B. I searched the web and the concept should be as follows: Server A: # share -F nfs /home/nms/test Server B: # mount -F nfs serverA:/home/nms/test /home/nms/test But when I... (1 Reply)
Discussion started by: racbern
1 Replies

3. AIX

mount directory as cdrom

Hi guy's, my first post here on the forum :p I did a quick search here, but did not find a direct hit, so decided to post my question. I'm taking my first steps into AIX, and right now I'm trying to install some software that I've downloaded as a zip file, and have this extracted into a mounted... (1 Reply)
Discussion started by: psyduck
1 Replies

4. UNIX for Dummies Questions & Answers

mount directory on Linux problem

folks; I have 3 similar Linux SUSE 10 servers A, B & C I log as root and when i'm on B server & try to mount a directory on A server it works fine, but when i try to mount the same directory when i'm on C it doesn't and i get this error: Server C# mount 172.32.5.2:/var/local/export/... (4 Replies)
Discussion started by: Katkota
4 Replies

5. UNIX for Dummies Questions & Answers

Mount a file or directory

Hi All, I am very new to Linux. I have just started preparation for RHCE. Can anybody pls tell me the meaning of mount a file or directory. When we mount particular file at that time what exactly we do with the file. (2 Replies)
Discussion started by: kunalpatil09
2 Replies

6. Red Hat

Can not change timestamp on directory inside cifs mount

Greetings, I have an rsync server that is unable to change the timestamp on any directories inside of cifs mounts. The same thing happens on all of my red hat machines. These machines are all patched, touch -t works on directories inside any other filesystem including NFS mounts. This is... (0 Replies)
Discussion started by: Create
0 Replies

7. UNIX for Advanced & Expert Users

Find Mount Directory

HI , I am trying to find directories/folder for the mount path . Ex mount path : /real/path/oracle/ora/ output is drwxr-xr-x 2 oracle dba 37888 Feb 10 08:36 realdum drwxr-xr-x 2 oracle dba 16384 Feb 10 09:08 delete Is there any unix command to get... (3 Replies)
Discussion started by: Perlbaby
3 Replies

8. Linux

Make directory used as mount point read-only

For my backup , I mount and external hard disk to /mnt/mybackup and then I do an rsync to /mnt/mybackup If for some reason the rsync fails, I want to prevent it from writing data on the server hard disk itself since the external hard disk will no longer be mounted on it. I want /mnt/mybackup... (8 Replies)
Discussion started by: coolatt
8 Replies

9. UNIX for Beginners Questions & Answers

Can we have 2 mount point under the same name but at different directory?

guys i would like to know can we have 2 mount point which is same name but on different directory? (3 Replies)
Discussion started by: leecopper
3 Replies
MOUNTD(8)						    BSD System Manager's Manual 						 MOUNTD(8)

NAME
mountd -- service remote NFS mount requests SYNOPSIS
Obsolete. See nfsd(8). DESCRIPTION
The mountd daemon was formerly the server for NFS mount requests from NFS clients. This functionality has been moved into the NFS server daemon nfsd(8). Please refer to nfsd(8) for NFS server documenation. The following is a list of former mountd options that are now available as nfsd(8) options: mountd option nfsd option Description -n -N allow non-root mounts -r -R allow regular file mounts exportsfile -F exportsfile alternate exports file However, such configuration options are normally specified via nfs.conf(5). When the NFS server is started, it loads the export host addresses and options into the kernel using the nfssvc(2) system call. After chang- ing the list of exports (either directly or indirectly via a change in netgroup membership), the administrator should send a hangup signal to the nfsd daemon to get it to reload the export information: kill -s HUP `cat /var/run/nfsd.pid` For backwards compatibility, the following should also work: kill -s HUP `cat /var/run/mountd.pid` Any errors encountered while processing the export entries will be logged via syslog(3). FILES
/etc/exports the list of exported filesystems /var/run/mountd.pid the pid of the currently running mountd /var/run/mountdtab the current list of outstanding mounts served /var/run/mountdexptab information about exported file systems and directories (UUIDs, handles, ...) SEE ALSO
nfsd(8), exports(5), nfs.conf(5), nfsstat(1), portmap(8), showmount(8) HISTORY
The mountd utility first appeared in 4.4BSD. It's functionality was merged into nfsd(8) in Darwin 9. BSD
November 10, 2006 BSD
All times are GMT -4. The time now is 07:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy