Mounting Windows Share to Linux

In order to Mount a windows share to Linux , create a share in your windows

\\serverip\shareddrive

Now in the linux server create a directory where you want to mount the share
mkdir /mnt/winshare

Now mount the share by typing the following command:
mount -t cifs -o username=<username>,password=<password> //serverip/shareddrive /mnt/winshare</password></username>

If you want the drive to be mounted on reboots, create an fstab entry:

vi /etc/fstab<br></br>
//serverip/shareddrive /mnt/winshare cifs auto,gid=users,file_mode=0664,dir_mode=0775,iocharset=iso8859-15,credentials=/etc/sharepasswd 0 0<br></br>```

Now create a password file /etc/sharepasswd  

vi /etc/sharepasswd


username=


password=

mount -a

```

Now you can access your windows share at /mnt/winshare