[Samba] Mounting Share at Boot

Mike Rambo mrambo at lsd.k12.mi.us
Mon Sep 30 12:10:01 GMT 2002


Barry Skidmore wrote:
> 
> I am trying to mount a Windows share on my Linux machine at boot time.
> I tried using the same syntax in /etc/fstab that is in /etc/mtab, but
> this did not work.
> 
> Here is the mtab entry:
> 
> //DELL-4400/linux /root/mnt/DELL-4400/linux smbfs  0 0
> 
> Barry
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba

This may or may not meet your needs - sorry for the wasted bandwidth if
it doesn't.

We needed a mechanism for our experimental LTSP lab to transparently
mount & unmount shares from a Win2000 server at login/logoff awhile
back. What we came up with is a set of shell scripts that do this
utilizing the capability of gdm to run pre & postsession scripts.
Unfortunately, at least at this time, you _do_ have to use gdm as your
display manager as I have not found a way to make kdm perform similar
functions. This does not tie you to the Gnome desktop - you can still
run, KDE, Ice, or whatever - but you have to use gdm to do it. The
scripts use two hidden files in your home directory, one to tell the
scripts what share to mount where, the other is a credentials file.
Putting the credentials in your home directory (hopefully) keeps them
more secure as opposed to putting them in fstab which is usually world
readable.

If you want to give them a spin you can get them at:

http://scnc.lsd.k12.mi.us/~mrambo

Just follow the linux link.

Hope this helps.


-- 
Mike Rambo
mrambo at lsd.k12.mi.us



More information about the samba mailing list