How to make Samba mount on boot

What are the steps needed to automount a SAMBA connection when my linux box starts up? I'm using FC4.
Who is Participating?
rich911Connect With a Mentor Commented:
or you could add the following to /etc/fstab file

//server/share /mount/point smbfs username=blah,password=blah,rw
jar3817Connect With a Mentor Commented:
you can just put the command in the /etc/rc.d/rc.local file:

mount -t smbfs -o username=blah,password=blah,rw //server/share /mount/point
marxyConnect With a Mentor Commented:
A little correction for rich911.
File of /etc/fstab should be made by properly manner.
Each filesystem is described on a separate line; fields on each line are separated
by tabs or spaces.  Lines starting with ’#’ are comments.  
The order of  records  in  fstab  is  important. Moreover there are SIX fields must be
in the /etc/fstab.

So th right string for SAMBA mount would be

//server/share /mount/point smbfs username=blah,password=blah,rw 0 0

Two zeros have some sense.
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

according to the fstab man page, if the 5th and 6th fields are missing they default to zeros. Though if you include them they should be both zeros in this case as marxy says.
alextoftConnect With a Mentor Commented:
And if you don't want your password plastering all over the fstab file, you can use:


instead :)
dancablamAuthor Commented:
Thank you all for your excellent assistance!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.