mounting NFS remote volumes on boot-up?

Dr. Brendan Patrick Mahony brendan.mahony at dsto.defence.gov.au
Mon May 28 16:42:43 PDT 2007


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" );
     }
   )
}

Apparently Netinfo is on the way out though.

On 29/05/2007, at 8:58 AM, Bill Janssen wrote:

> Thanks, that's how I mount my home directory, but these I want mounted
> on boot, regardless of who's logged in (they're used by some cron
> jobs).  I suppose I could just add a system @reboot cron job to do the
> mount.


IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914.  If you have received this email in error, you are requested to contact the sender and delete the email.




More information about the MacOSX-admin mailing list