Re: SAMBA -- automatic remounting



Keith Keller wrote:
On 2006-03-30, Ignoramus27088 <ignoramus27088@xxxxxxxxxxxxxxxxxxxx> wrote:
What I do want though, is to ensure that these mounts would survive
reboots of the server and that they would auto-reconnect if something
goes bad temporarily. (one of these computers is for a 4.5 year old
kid, so I cannot expect him to do any system maintenance yet).

So...

1) How to detect when a samba mount is stale.

2) Is there some system flag to automatically remount the shared
drives, or do I just need to write a little "stale detection and
remounting" script? What is the right way to do it?

I'm surprised nobody has suggested automount. It won't necessarily
detect a stale mount, but it will timeout a mount (so that it won't be
affected if the mount is not needed when the server reboots), and will
automatically mount when a request is made for the automount point. It
works great in my NFS setup, but it's not fstype-specific (it can do
local mounts as well as network mounts).

--keith

That is what I thought the 'auto' bit in the mount command did..
.



Relevant Pages

  • [opensuse] share samba and pam_mount
    ... This server is a member of AD. ... Users' local configuration file (if there is none, ... Individual users may define additional volumes to mount if allowed by ... You can specify either absolute paths, or relative ones, in which case ...
    (SuSE)
  • Summary: Gentoo Linux NFS problem
    ... was started on the Gentoo side before trying to mount the device. ... to a Gentoo Linux client. ... firewalls are disabled on both machines. ... Rpcinfo queries of the server report all is well. ...
    (SunManagers)
  • [1/9] pohmelfs: documentation.
    ... This patch includes POHMELFS design and implementation description. ... Separate file includes mount options, ... * Fast and scalable multithreaded userspace server. ... +command (or set of commands, which is frequently used during data writing: ...
    (Linux-Kernel)
  • [1/9] pohmelfs: documentation.
    ... This patch includes POHMELFS design and implementation description. ... Separate file includes mount options, ... * Fast and scalable multithreaded userspace server. ... +command (or set of commands, which is frequently used during data writing: ...
    (Linux-Kernel)
  • RE: MS Services for UNIX 3.5
    ... by a SFU 3.5 server with no problems - performs as expected. ... 100Mbit LAN connection) but only between the SuperMicro unit and my XP ... both the ASUS and SuperMicro units can mount an exported ... properly mapping linux and windows user accounts. ...
    (RedHat)