Autofs

From OLPC
Revision as of 03:29, 15 February 2008 by Kove (talk | contribs) (Use autofs to seamlessly mount nfs shares on the fly)
Jump to navigation Jump to search

autofs will allow you to easily mount nfs/smb shares

Suppose you have a server on your network that has content you would like to access from your xo. You can setup your xo to mount that share as if it were local to your xo.

First become root user:

su -l

Next install nfs-utils:

yum install nfs-utils


Now install autofs:

yum install autofs


Configure autofs by editimg /etc/auto.master:

#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
#/misc  /etc/auto.misc
#/net   -hosts
/media /etc/auto.media --timeout=60 
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
#+auto.master