Here is an example of a samba share entry in my /etc/fstab file:
Code:
//192.168.1.102/podcasts /mnt/maxtor/podcasts cifs rw,user,_netdev,noauto,cred=/home/jschiwal/.credentials,uid=jschiwal,gid=jschiwal,file_mode=0117,dir_mode=0007,nls=utf8
Remove the `noauto' option if you want the share mounted during bootup. The `_netdev' option will delay trying to mount the share until the network is up.
The .credentials file contains the username and password:
Code:
username=<username>
password=<password>
Since the fstab file is world readable, don't use the username & password fstab options. Use a credentials file instead.
If the server could be down when you boot up, it may be a good idea to still use the "noauto" and run "sudo mount /net" manually to mount it. If an auto mount entry in /etc/fstab fails when you boot up, your boot up could fail.