1745786 Members
3830 Online
108722 Solutions
New Discussion юеВ

Mounting a directory

 
Karthik_sg
Frequent Advisor

Mounting a directory

Hi all,

I want to know how can i make directory mount by other users. for ex:
i have /home/exper/shared in 11.0.0.3

and i want a user on another machine mount exper@11.0.0.3:/home/exper/shared /shared on the new machime that is 11.0.0.5

Thanks in advance.
9 REPLIES 9
Karthik_sg
Frequent Advisor

Re: Mounting a directory

Also i have started the nfs server on 11.0.0.3.
So what is the next step to be followed.
Change_happens
Honored Contributor

Re: Mounting a directory

use mount command to do it or make a manual entry in fstab for permanent mounting every time system starts.
"man mount"
Which version of Linux u r using?
Karthik_sg
Frequent Advisor

Re: Mounting a directory

I am using RHEL5 for server and RHEL4 for client,And i have added the entry in /etc/fstab and the entry is
LABEL=/home/exper /home/exper ext3 defaults 1 1
and i have restarted nfs on both.Not sure wht is the problem.
Alexander Chuzhoy
Honored Contributor

Re: Mounting a directory

make sure you have an etry as the following in /etc/exports file:
/home/exper/shared 11.0.0.5/32(rw)

rw here means read+write - use ro for read only.
then restart the nfs service:
service nfs restart
then make sure the firewall (iptables) allows the traffic.


from 11.0.0.5 issue the command:
showmount -e
the output should list the available shares -f you get it, then basically you should be able to mount the directory.

Very important thing is to assign points.
Karthik_sg
Frequent Advisor

Re: Mounting a directory

In the exports file on server i have included the directory as /home/exper/shared *(rw,no_root_squash)
and i have restarted the nfs and nfslock service now and still i get the following error message mount to NFS server '11.0.0.0.3' failed: server is down

I have even restarted the nfs and nfslock on the client machine not sure what to do about this.

Alexander Chuzhoy
Honored Contributor

Re: Mounting a directory

1. check the ip address.
2. From server, run `showmount -e` to see the available shares. If shows nothing - the share isn't there.
3. From client run `showmount -e 10.0.0.3`.



First check connectivity between these 2 servers (ping) and make sure the ports aren't blocked with firewall.

ASSIGN POINTS: 7 assignments out of 85?.
Karthik_sg
Frequent Advisor

Re: Mounting a directory

when i do showmount -e on server it shows me the shared directory but i cannot do showmount -e 11.0.0.3 on client i get the following error showmount -e 11.0.0.3
bash: showmount: command not found

And i can ping both the machines.Pls let me know how i shd go abt this
PS:I have assigned the points
Alexander Chuzhoy
Honored Contributor

Re: Mounting a directory

try with the full path:
/usr/sbin/showmount -e


if not found - install the nfs-utils rpm.
Jimmy Vance
HPE Pro

Re: Mounting a directory

by default Red Hat turns on the firewall during install, try running /etc/init.d/iptabls stop and then see if the client can get access. If it works, then you need to either leave the firewall off or set it up to pass the proper ports for NFS

No support by private messages. Please ask the forum!