mounting NFS remote volumes on boot-up?
Bill Janssen
janssen at parc.com
Tue May 29 11:38:15 PDT 2007
Ned, Brendan,
Thanks, I'll try that.
Bill
Ned Deily wrote:
> Not exactly "modern" but one way is to create mount entries in your
> local netinfo domain, using Netinfo Manager.app or from the command line
> with "nicl" or "niload". The nfs volumes will then be automounted as
> needed. There are various ways to do this. See, for example:
>
> http://mactechnotes.blogspot.com/2005/08/mac-os-x-as-nfs-client_31.html
>
> I use something similar to the suggestion in the comments near the
> bottom of the page, that is using the "net" opts flag which causes the
> mount points to be automatically created under /Network/Servers/.
>
> The usual warnings about using caution when mucking around with netinfo
> apply.
Brendan Mahoney wrote:
> If you want to static mount the file system you can use Netinfo
> Manager or niload at the command line.
>
> eg
> sudo niload -r /mounts / < ni_mounts
>
> where ni_mounts is a file of the form:
>
> {
> "name" = ( "mounts" );
> CHILDREN = (
> {
> "name" = ( "server:/the/path/to/folder1" );
> "dir" = ( "/Network/Servers" );
> "opts" = ( "net" );
> "vfstype" = ( "nfs" );
> },
> {
> "name" = ( "server:/the/path/to/folder2" );
> "dir" = ( "/Network/Servers" );
> "opts" = ( "net" );
> "vfstype" = ( "afp" );
> }
> )
> }
More information about the MacOSX-admin
mailing list