Make sure that smbfs is installed. If not, you'll get an error indicating “mount: wrong fs type, bad option, bad superblock”. Use the following command to install it.
sudo apt-get install smbfs
Now, type to mount the share with the following command.
mount -t cifs //server/dir -o username=joel,password=secret /mnt/server
You might get an error indicating “could not find target server”. If so, edit the /etc/nsswitch.conf file and add “wins” to the hosts line.
hosts: files wins dns
Then, install winbind.
sudo apt-get install winbind
Now you should be able to mount the file with the mount command specified earlier.