How to mount Windows share on Debian

Install mount.cifs

mount.cifs mounts a Linux CIFS filesystem. It is usually invoked indirectly by the mount command when using the “-t cifs” option. This command only works in Linux, and the kernel must support the cifs filesystem. The CIFS protocol is the successor to the SMB protocol and is supported by most Windows servers and many other commercial servers and Network Attached Storage appliances as well as by the popular Open Source server Samba.

sudo apt-get install cifs-utils

Mount Windows share

/sbin/mount.cifs -o username=myuser,password='mypass' //mypc/myshare /mnt/myshare