The classic way of doing this is to create an entry in fstab that will mount the share at boot. But this has a lot
of problems related to when the actual mounting takes place and whether you remember to turn on the NAS device before
you boot the pc and if you have wireless. So I'm going to offer you a completely unique ( to me ) approach:
This is where I found this technique:http://ubuntuforums.org/showthread.php?t=1186877
My synopsis of the procedure:
The act of opening nautilus > Network > Windows Network > Workgroup > share
can be done from the command line:
Type gvfs-mount smb://NAS_ip_address/share_nameFor example: gvfs-mount smb://10.0.0.2/user_a
The share should show up under "Places" in Nautilus and more importantly has an actual mountpoint at /home/userid/.gvfs
Next, create a script with that same command and put it in your Autostart Folder:
Enter the following:
Save it to /home/userid/nasmount.sh
Make it executable: chmod +x /home/userid/nasmount.sh
Go to Menu > Preferences > Startup Applications > Add > point it to your nasmount.sh file.
The author also describes how to create the username / password entry using Gnome keyring so the user is not prompted for it.
I think it's kind of clever but I tend to like unconventional approaches