The mount.cifs file is provided by the samba-client package. This can be installed from the standard CentOS yum repository by running the following command:
Syntax:
SHARE_NAME: The name of the shared folder configured on the Windows system
USERNAME: Windows user that has access to this share
MOUNT_POINT: The local mount point on your CentOS server
I am mounting to a share from \\10.11.10.26\snaps
Make a directory under mount for your reference
yum install samba samba-client
Once installed, you can mount a Windows SMB share on your CentOS server by running the following command:Syntax:
mount.cifs //SERVER_ADDRESS/SHARE_NAME MOUNT_POINT -o user=USERNAME
SERVER_ADDRESS: Windows system’s IP address or hostnameSHARE_NAME: The name of the shared folder configured on the Windows system
USERNAME: Windows user that has access to this share
MOUNT_POINT: The local mount point on your CentOS server
I am mounting to a share from \\10.11.10.26\snaps
Make a directory under mount for your reference
mkdir /mnt/mymount
Now I am mounting the snaps folder from indiafps02, User name is the Domain credentials, i.e. Mydomain in this casemount.cifs //10.11.10.26/snaps /mnt/mymount -o user=ajeeth,password=curve,dir_mode=0777,file_mode=0777
Now you could see the content by typingls /mnt/mymount
So, after performing your task, just fire umount commandumount /mnt/mymount
That's it. You are done.
No comments:
Post a Comment