Sometimes I still have to deal with Windows. :-/ This time it’s an office shared disk. I was able to mount it automatically but only root could write in it, which meant I couldn’t paste files from Nautilus.
To overcome this I added the following entry in /etc/fstab:
//192.168.0.1/deviceName$ /mountpoint cifs
domain=hq,username=myUsername,password=myPassword,
_netdev,uid=username,gid=username 0 0
The _netdev option ensures the share is mounted only when the network is available, which is particularly useful on laptops that switch networks.
Once you have changed the fstab, unmount the network drive if it was already mounted:
sudo umount /mountpoint
and then mount it again:
sudo mount -a
If you only need occasional access to a Windows share, smbclient is a quick alternative:
smbclient //192.168.0.1/deviceName$ -U myUsername
This opens an FTP-like interface for browsing and transferring files.
Hope it works for you!