Mounting samba share in using fstab

Solution 1:

The entry in fstab is not a command; don't include the sudo mount portion.

Instead, make the line look something like

//192.168.1.5/my/folder /home/mounts/localmount cifs rw

A similar thread over at UbuntuForums has more good information about further options, if you need login credentials, special encoding, or other permissions settings.