Re: Automounting nfs shares



On Fri, Apr 18, 2008 at 04:39:03PM +0100, John Talbut wrote:
I have a small home network with nfs set up so that the computers can share
files. Commonly only one of the computers is running, particularly at
first. I would like the running computer(s) to automount the nfs shares
from the other computers when they come on line.

I have been using a line in etc/fstab to mount the shares. This works with
the one problem that a boot time there is a delay and a failure message as
the computer tries to mount the shares from computers that are not on line.

I use gnome-volume-manager (gvm) to automount hardware devices. This, of
course, responds to HAL events and I presume that a computer coming on line
on a network does not cause the kernel to generate a HAL event. Is there
any way of getting gvm to automount nfs shares?

Alternatively, I have read that some people uses autofs to automount nfs
shares. Would there be any problems with using autofs alongside gvm and
udev?

If you use a soft mount in fstab then it will background the mouning.
However, if anything later relies on that mount point then that may hang
waiting.

Likely, you only share /home in which case you should probably have the
server come up first. You may want to look at something like an
automount daemon or perhaps a PAM module to just mount the user's home
directory via nfs when they log in.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: view workgroup computers
    ... Once the shares are displayed there is no ... >> Robert, ... >> computers, and we'll look further. ... >Also I did the regedit from your link [EnableProxy] the value wasn't ...
    (microsoft.public.windowsxp.network_web)
  • Re: [opensuse] Co-existing in a dynamic network Howto?
    ... I have several computers running SuSE and use ... scripts that access available remote file systems during boot up. ... SuSE menu (in the kicker bar, i.e. the menus displayed when one clicks on ... do an automount of all the file systems defined in the fstab file and this ...
    (SuSE)
  • Re: Accessing c$ remotely?
    ... >two computers in my home network. ... Frankly, I'd kill off those shares in all cases, because they are ... Else it's an open door for malware on one PC to drill into and run ... The home network is behind a NAT router and are ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: [opensuse] Co-existing in a dynamic network Howto?
    ... I have several computers running SuSE ... some scripts that access available remote file systems during boot up. ... click on the SuSE menu launcher, it seems to want to do an automount ...
    (SuSE)
  • Re: How to configure Domain access permissions for a user that would vary based on the computer they
    ... servers with the shares you could specify the exception for file and print ... not local administrators on their computers and that the IPs in the allowed ... The other way would be to use ipsec to have an ipsec ...
    (microsoft.public.windows.server.security)