[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Linux Mount Drive

Posted on 2014-08-14
9
Medium Priority
?
368 Views
Last Modified: 2014-09-10
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
0
Comment
Question by:Bransby-IT
  • 5
  • 4
9 Comments
 
LVL 13

Accepted Solution

by:
Sandy earned 2000 total points
ID: 40262444
1. Share that directory with nfs
2. mount it normally e.g.

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

TY/SA
0
 
LVL 3

Author Comment

by:Bransby-IT
ID: 40262450
What about the username and password?
0
 
LVL 13

Expert Comment

by:Sandy
ID: 40262454
no need in case of nfs
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 3

Author Comment

by:Bransby-IT
ID: 40262459
:-) The world of Linux! Mind Blowing :-)
0
 
LVL 13

Expert Comment

by:Sandy
ID: 40262466
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)

:wq

#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)

TY/SA
0
 
LVL 3

Author Comment

by:Bransby-IT
ID: 40262472
What does this command do?
#vim /etc/exports
0
 
LVL 13

Expert Comment

by:Sandy
ID: 40262474
this is to modify the exports file for sharing the folder you want..

its NFS config file for sharing the directories.

TY/SA
0
 
LVL 3

Author Comment

by:Bransby-IT
ID: 40262766
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?
0
 
LVL 13

Expert Comment

by:Sandy
ID: 40262773
What is the Entry u made in exports ? ?

instead of username limit the access by ip ot subnet

ty/sa
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month19 days, 9 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question