Re: Automounting smbfs?

2005-04-11 Thread Micheal Patterson


- Original Message - 
From: "Kirk Strauser" <[EMAIL PROTECTED]>
To: 
Sent: Friday, April 08, 2005 3:40 PM
Subject: Re: Automounting smbfs?

On Friday 08 April 2005 14:12, you wrote:

> Kirk,  here's what I did to auto mount my pesky windows shared backup
> folder prior to having a separate nfs mount to put them.
>
> Configure your share as noauto in /etc/fstab (example)

[...]

Out of curiosity, why would you do that instead of just letting FreeBSD
mount it automatically (which is what I do now)?

The goal I'm trying to accomplish is pushing the same map to multiple
machines (eg via LDAP).  I never bothered to do that with my NFS mounts,
but I'm using the addition of the SMB shares as an excuse to rework the
system before it grows much more.
-- 
Kirk Strauser


In my experience, automounting it via fstab doesn't always work correctly.
Some folks have great success with it where others don't. For example, I can
remove the noauto and with the very same config files and 5 out of 10 times
the mount won't take on system startup. When I remove the noauto and cron it
for @reboot, it works just fine. I've no idea why but it works for me.


--

Micheal Patterson
Senior Communications Systems Engineer
405-917-0600

Confidentiality Notice:  This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential and privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all
copies of the original message.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Automounting smbfs?

2005-04-08 Thread Kevin Kinsey
Kirk Strauser wrote:
On Friday 08 April 2005 14:12, you wrote:
 

Kirk,  here's what I did to auto mount my pesky windows shared backup
folder prior to having a seperate nfs mount to put them.
Configure your share as noauto in /etc/fstab (example)
   

[...]
Out of curiosity, why would you do that instead of just letting FreeBSD 
mount it automatically (which is what I do now)?

 


I'm assuming that it's a minor league paranoid measure to ensure
that, in the event the windows host(s) are unavailable, you don't
hang up the boot process somehow.  That's what it is for *me*,
anyhow.  (I don't even list smbfs shares in /etc/fstab)
AFAIK, it would just delay booting a bit, but IANAE.  That's why I do
it from cron, anyway; that, and because I learned about cron long
before I learned about rc scripts...

The goal I'm trying to accomplish is pushing the same map to multiple 
machines (eg via LDAP).  I never bothered to do that with my NFS mounts, 
but I'm using the addition of the SMB shares as an excuse to rework the 
system before it grows much more.
 

I'm no help there, I'm afraid.  I do have scripts now that do my
post-install configuration, and might be tweaked to "push out"
smbfs mounts (via cron, as mentioned above), but that's about
it...nothing so complex as LDAP. :)
Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Automounting smbfs?

2005-04-08 Thread Kirk Strauser
On Friday 08 April 2005 14:12, you wrote:

> Kirk,  here's what I did to auto mount my pesky windows shared backup
> folder prior to having a seperate nfs mount to put them.
>
> Configure your share as noauto in /etc/fstab (example)

[...]

Out of curiosity, why would you do that instead of just letting FreeBSD 
mount it automatically (which is what I do now)?

The goal I'm trying to accomplish is pushing the same map to multiple 
machines (eg via LDAP).  I never bothered to do that with my NFS mounts, 
but I'm using the addition of the SMB shares as an excuse to rework the 
system before it grows much more.
-- 
Kirk Strauser


pgpnecNh4aXia.pgp
Description: PGP signature


Re: Automounting smbfs?

2005-04-08 Thread Micheal Patterson



- Original Message - 
From: "Kirk Strauser" <[EMAIL PROTECTED]>
To: 
Sent: Friday, April 08, 2005 12:52 PM
Subject: Automounting smbfs?

The built-in amd automounter may work great for NFS, but I increasingly find
myself mounting Windows shares and amd doesn't seem to support them.  Any
suggestions?
-- 
Kirk Strauser



Kirk,  here's what I did to auto mount my pesky windows shared backup folder
prior to having a seperate nfs mount to put them.


Configure your share as noauto in /etc/fstab (example)

### SMBFS Mounts
#
#//[EMAIL PROTECTED]/share  /smbfs
noauto,rw,-N,-I= 0   0

Then, in the root crontab, add this:

"@reboot//mbfs.sh"


Then, in  create a file named mbfs.sh and edit it as
such:

#!/bin/sh
echo " "
echo " "
echo "mounting smbfs slices..."
sleep 5
/sbin/mount /backups

Please keep in mind, that this method will require the proper share auth
info to be in /etc/nsmb.conf, so protect this file as it holds plain text
passwords for your windows systems.

Then on system restart, after everything else is accessible and running,
cron will launch and remount those drives for you.

Hope it helps.

--

Micheal Patterson
Senior Communications Systems Engineer
405-917-0600

Confidentiality Notice:  This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential and privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all
copies of the original message.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Automounting smbfs?

2005-04-08 Thread Kirk Strauser
The built-in amd automounter may work great for NFS, but I increasingly find 
myself mounting Windows shares and amd doesn't seem to support them.  Any 
suggestions?
-- 
Kirk Strauser


pgpeoVWZpiZCj.pgp
Description: PGP signature