Re: Noisy mount
On Tue, 2003-11-11 at 16:41, Alan Chandler wrote:
> I have a cron based backup script that mounts an smbfs share in order to
> backup a windows machine.
>
> Each morning in my mail I get the following load of diagnostics from what
> appears to be the basic mount commant
>
> opts: ro
> opts: noexec
> opts: nosuid
> opts: nodev
> opts: noauto
> opts: users
> opts: uid=34
> opts: credentials=/etc/smbfs/backup
> passthrough options 'noexec,nosuid,nodev,noauto,users'
> mount.smbfs started (version 3.0.0-Debian)
> added interface ip=10.0.10.100 bcast=10.0.10.255 nmask=255.255.255.0
> resolve_hosts: Attempting host lookup for name pooh<0x20>
> Connecting to 10.0.10.2 at port 445
> error connecting to 10.0.10.2:445 (Connection refused)
> Connecting to 10.0.10.2 at port 139
>
>
> Thats from a script that does
>
> mount //pooh/backup 2>/dev/null || exit 0
>
> and a /etc/fstab entry of
>
> //pooh/backup /bak/pooh/mnt smbfs
> ro,users,noauto,uid=backup,credentials=/etc/smbfs/backup 0 0
>
>
> Is there anyway to tell mount.smbfs to shut up and be quiet????
Definitely works:
mount //pooh/backup > /dev/null 2>/dev/null || exit 0
May work:
mount //pooh/backup > /dev/null 2>&1 || exit 0
Is this emailed to you, or dropped in /var/log/syslog? If it's
mailed to you (which it what I think is happening), you can always
put this in line 2 of the script, and do away with the redirection:
MAILTO=""
--
-----------------------------------------------------------------
Ron Johnson, Jr. ron.l.johnson@cox.net
Jefferson, LA USA
"Go not unto the Usenet for advice, for you will be told both
yea and nay (and quite a few things that just have nothing at
all to do with the question)."
Unknown
Reply to:
- References:
- Noisy mount
- From: Alan Chandler <alan@chandlerfamily.org.uk>