Re: [SLUG] How to automount NT network drives??

From: Brian Coyle (brian@linuxwidows.com)
Date: Thu Sep 19 2002 - 20:59:02 EDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 19 September 2002 16:58, John Clay wrote:
> I'm able to mount NT network drives via smbmount or linneighborhood but
> how do I automate the procedure so that when I log onto the system the
> desired drives are mounted? fstab or something else?
>

I do this in my $HOME/.bashrc

if [ ! -d /mnt/hank/brian/data ]; then
    smbmount //hank/brian /mnt/hank/brian -o username=$USER%$PASSWD
fi

if [ ! -d /mnt/hank/slash/boot ]; then
    smbmount //hank/slash /mnt/hank/slash -o username=$USER%$PASSWD
fi

The checks for known subdirectories prevents multiple mounts.

HTH!

- --
'If everyone climbs Mt. Everest because it's hard to do, why do they
go up the easy side?' -- George Carlin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9inLWER3MuHUncBsRAlamAJwMAyILZ42rG+uZ2NTH2P+Ad807VwCggeQ0
q4QtCMSrtTPZnD7sbCINQeQ=
=nlsg
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:50:09 EDT