Link to home
Start Free TrialLog in
Avatar of c_hockland
c_hocklandFlag for Greece

asked on

how to create a linux export

I have one windows server and 2 linux servers.
I have created a shared folder on windows server  ( server A )
I have mounted the shared folder ( cifs.mount ) on linux server ( Server B )  /mnt

I want to be able to access the /mnt  from Server B ( the other linux server ) and be able to read / write.
How can i do this ? Export the /mnt ? Any idea or examples would be appreciated.
Avatar of Peter Hutchison
Peter Hutchison
Flag of United Kingdom of Great Britain and Northern Ireland image

You need to set up the smb client on Linux and mount the share to a mount point in /mnt

1. Install smbclient (if not already done):
 sudo apt-get smbclient smbfs

2. Test access to server A
smbclient –L servera –U userid

3. Create a mount point folder
mkdir /mnt/sharename

4. Now mount the share to new mount point
mount –t cifs –o username=user,password=thepass //servera/sharename  /mnt/sharename
You could use NFS to export the /mnt on the linux server that mounted the folder from windows server, and on the other linux server you can use nfs to mount the exported folder.

Example:

server A mount the windows folder using samba client to /mnt
server A then exports the /mnt folder
server B (the 2nd linux server) uses NFS to mount the exported folder from server A.

What is your linux servers' platform?

below link might help you with commands / steps for NFS
ASKER CERTIFIED SOLUTION
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial