Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Proper fstab entry to mount a samba share on boot?

How to add samba share to fstab to ensure mounting at boot time?

share|improve this question

marked as duplicate by Jorge Castro, Thomas Ward, Jjed, stephenmyall, Eliah Kagan Sep 13 '12 at 17:46

This question was marked as an exact duplicate of an existing question.

up vote 0 down vote accepted

Please refer to this post: http://www.ghacks.net/2009/04/19/auto-mounting-a-samba-share-in-linux/

I will edit this, and add a more detailed answer later. For now refer the link for a step by step tutorial. Hope it helps you.

share|improve this answer

The /etc/fstab entry looks like this:

//SMB_HOST/SHARENAME /local/mountpoint cifs auto,user,rw,uid=LOCAL_USER,gid=LOCAL_GROUP,workgroup=WGNAME,iocharset=utf8,credentials=/home/LOCAL_USER/.secret/smb 0 0

In /home/USER/.secret/smb you put

username=SMB_USERNAME
password=SMB_PASSWORD
share|improve this answer