Since 2 mount methods were presented to you there are 2 methods to have this automounted. One requires fstab and the other does not.
If you are going with something like this as a manual mount:
sudo mount -t cifs //netbiosname/sharename /media/sharename -o username=winusername,password=winpassword,iocharset=utf8,file_mode=0777,dir_mode=0777
Then the syntax changes a bit in fstab:
Note: you will need the _netdev option present to prevent the system from attemping to mount the remote share before your network is up.
- Code: Select all
//netbiosname/sharename /media/sharename cifs username=winusername,password=winpassword,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0
If you are using the Nautilus method of mounting your remote shares there is a way to automount this process:
 The harder way: Auto Mount Samba Shares on Boot ( GVFS Method )
 The easiest way: Using Gigolo to Mount Remote Samba Shares
I would argue that Gigolo has a lot of advantages in that it solves the 2 big issues with automounting remote shares - the target share is on a box that is not running when fstab is executed, and the target box is shut down before the client system shuts down and hence shutdown is stalled. The fstab method though is the traditional way.