I have 3 SMB shared drives I need to connect to for work purposes. I had Ubuntu 10.10 Maverick and had all my drives loaded into fstab to be auto-mounted. Everything worked fine for a while but just before I upgraded to 11.04 Natty, the fstab auto-mount stopped working. Unfortunately I don't know what changed I made to my machine or what update installed that made this occur.
/etc/fstab
{snip}
//192.168.7.3/apache_proj/ /home/brett/Desktop/apache smbfs guest,rw,iocharset=utf8,uid=1000,gid=1000 0 0
//192.168.7.3/apache_54321/ /home/brett/Desktop/54321 smbfs guest,rw,iocharset=utf8,uid=1000,gid=1000 0 0
//freenas.local/shared/ /home/brett/Desktop/shared smbfs guest,rw,iocharset=utf8,uid=1000,gid=1000 0 0
//lamp/www/ /home/brett/Desktop/lamp smbfs username={snip},password={snip},rw,iocharset=utf8,uid=1000,gid=1000 0 0
When the machine boots, I run this command to get them to mount:
$ sudo umount /home/brett/Desktop/54321 /home/brett/Desktop/shared /home/brett/Desktop/apache; sudo mount -a
[sudo] password for brett:
umount: /home/brett/Desktop/54321: not mounted
umount: /home/brett/Desktop/shared: not mounted
umount: /home/brett/Desktop/apache: not mounted
Warning: mapping 'guest' to 'guest,sec=none'
Warning: mapping 'guest' to 'guest,sec=none'
Warning: mapping 'guest' to 'guest,sec=none'
mount error: could not resolve address for lamp: No address associated with hostname
(I run that umount as a just-in-case).
I looked through dmesg and some error logs and couldn't see why fstab was failing on my mounts. I see that my 'lamp' directive is failing, but that's because the machine is currently down.