Linux Mount Drive

I require to mount a drive from a Linux Server Redhat 5 to a Linux Server Redhat.
Up until now I have done this from Linux Server to Windows Server.

The commands I use are below.   How do I do this from Linux to Linux.

Createing the directories to use as mount points on Linux Server
mkdir /mnt/dir

Mounting the directories as cifs shares
mount -t cifs -o username=***,password=*** //vs01/c$/iris /mnt/dir
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

1. Share that directory with nfs
2. mount it normally e.g.

#mount <ip>:/<dir> /mountpoint


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bransby-ITAuthor Commented:
What about the username and password?
no need in case of nfs
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Bransby-ITAuthor Commented:
:-) The world of Linux! Mind Blowing :-)
let me clarify this further for you..

Machine 1 (From where you want to share)

#mkdir /test
#vim /etc/exports
/test            <ip>/<SubnetMask>(rw,sync,no_root_squash)


#service portmap restart  or #service rpcbind restart

#service nfs restart

#chkconfig portmap on
#chkconfig nfs on

#showmount -e localhost


Machine 2 (Where you have to mount)

#showmount -e <machine1_IP>

#mount <machine1_IP>:/test /mnt  (/mnt m considering as mountpoint)

Bransby-ITAuthor Commented:
What does this command do?
#vim /etc/exports
this is to modify the exports file for sharing the folder you want..

its NFS config file for sharing the directories.

Bransby-ITAuthor Commented:
OK I have got the following error Mount: Path of share failed, reason given by server: Permission denied.

I set the username and password on this to WP (for software reasons.  

Any advise?
What is the Entry u made in exports ? ?

instead of username limit the access by ip ot subnet

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.