Using Automount (autofs) to mount network disks




First verify you can mount it manually with "mount -t nfs physics:/home /home1"

REMOVE any manual mounts from /etc/fstab

/etc/auto.master
================
# $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
/misc /etc/auto.misc --timeout=60
/auto /etc/auto.home --timeout=60


/etc/auto.home
==============
# $Id: auto.misc,v 1.2 1997/10/06 21:52:04 hpa Exp $
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

#kernel -ro,soft,intr ftp.kernel.org:/pub/linux
#cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

# the following entries are samples to pique your imagination
#floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1

home1 -rw,soft,intr physics:/home
home2 -rw,soft,intr physics:/home
home3 -rw,soft,intr physics:/home
web -rw,soft,intr physics:/web


then execute:
==========
umount /home1
umount /home2
umount /home3
umount /web
rmdir /home1
rmdir /home2
rmdir /home3
rmdir /web
ln -s /auto/home1 /home1
ln -s /auto/home2 /home2
ln -s /auto/home3 /home3
ln -s /auto/web /web
/etc/rc.d/init.d/autofs restart

If this doesn't work, try to "mount /home1 physics:/home1"


Disclaimer:
I don't guarantee these pages to be 100% accurate or complete, although I did try to make them that way.
If you notice an error, or something that could help people better, please let me know.

Physics Help Pages Maintained by Dan Kirkpatrick
Last updated [an error occurred while processing this directive]