LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting samba shares at bootup (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-samba-shares-at-bootup-830162/)

mulebreath 09-03-2010 08:54 AM

Mounting samba shares at bootup
 
Good day...

I'm using ubuntu 10.04 (gnome) - at some point, I had manually mounted a samba share on the home fileserver,

mount -t cifs //homeserver/sharename /serverfiles

It now boots up automatically every time, which is definitely convenient but I don't know how it's being done. I'm going to be mounting the same share using sshfs when I'm away so I'd like to know how it works. When I googlify this, there is mention of altering fstab (which has not been done) or gnome-mount (which does not seem to be it). There is nothing in preferences/startup applications, what is the automounting mechanism being used?

Thanks ia...

sem007 09-03-2010 09:16 AM

If you want to mount partition at boot time you can add entry in /etc/fstab file.

Code:

//homeserver/sharename /serverfiles  smbfs  defaults 0 0
Or you can use autofs filesys to mount partition at demand

Configure Autofs

mulebreath 09-03-2010 11:14 AM

Thanks but I know how to do it, I'm trying to undo it.


All times are GMT -5. The time now is 12:24 PM.