Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Dec 2006 10:20:43 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Robert Davison <rob_27_preston@yahoo.co.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Automount
Message-ID:  <44mz63pu0k.fsf@be-well.ilk.org>
In-Reply-To: <444118.56083.qm@web25010.mail.ukl.yahoo.com> (Robert Davison's message of "Fri, 1 Dec 2006 22:37:01 %2B0000 (GMT)")
References:  <444118.56083.qm@web25010.mail.ukl.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Robert Davison <rob_27_preston@yahoo.co.uk> writes:

> After some kind advice from this mail list, im trying to set up an amd automount so that my external hard drive doesnt have to be on all the time for the main server to boot.
>
> My fstab for the drives (there is two drives contained within a Sun StorEdge S1) reads:
>
> /dev/da0s1b        none    swap    sw                0    0
> /dev/da0s1d        /s            none    rw,noauto    0    0
> /dev/da1s1b        none    swap    sw                    0    0    
> /dev/da1s2d        /t            none    rw,noauto    0    0
>
> I've mkdir -p both /s and /t as mount points
>
> I've then put the following lines into /etc/amd.map
>
> localhost/s            type:=program:fs:=/s;\
> mount:="/sbin/mount mount /s";\
> unmount:="/sbin/umount umount /s"
>
> localhost/t            type:=program:fs:=/t;\
>  mount:="/sbin/mount mount /t";\
>  unmount:="/sbin/umount umount /t"
>
> And finaly I've added the following to ,y /etc/rc.conf
>
> portmap_enable="YES"
> amd_enable="YES"
> amd_flags="-a /.amd_mnt -l syslog /host/etc/amd.map"
>
> when i reboot the server the external drives are not mounted.
>
> Am I missing a step here, or the point totally ??

I'm not sure about the exact syntax of what you have, but note that
the automounter won't mount the filesystem until something tries to
access it...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44mz63pu0k.fsf>