How To Mount Windows Share on Linux System Using CIFS

There are few scenario that classes of applications runs mainly on linux and partly on Windows or vice versa. One of scenario is we put a backup drive into a linux system. This procedure will giude you how to mount a windows share on a linux system specifically on CentOS or Redhat OS.

Share can be mounted on RHEL or CentOS system using cifs option of mount as:

[root@host ~]# mount -t cifs -o username=<share user>,password=<share password> //WIN_PC_IP/<share name> /mnt/backup

To make the mount persistant across reboots, make the below entry to the /etc/fstab

//WIN_PC_IP/<share name>    /<mntpoint>   cifs  _netdev,username=<share user>,password=<share password>,dir_mode=0755,file_mode=0755,uid=500,gid=500 0 0