using dscl to mount nfs from linux ...

I've been trying to figure out how to use dscl to add a bunch of nfs mounted filesystems to my iMacs. The NFS disks are on a linux cluster. By adding the NFS systems using the Directory Utility and then listing the changes with dscl I was able to replicate a lot of the necessary steps. I am still missing some pieces though.

So far I've got the following:

dscl . -create /mounts/host.server.ca:\/home
dscl . -append /mounts/host.server.ca:\/home VFSLinkDir /Network/host/home
dscl . -append /mounts/host.server.ca:\/home VFSOpts -P
dscl . -append /mounts/host.server.ca:\/home VFSType nfs

It looks like I also need a key called GeneratedUID but I have no idea how to create or retrieve the necessary value for that key.

Also there is the problem of forcing the system to see the changes. When I did this in the past with nicl (I've learned that this was pre OS X 10.5) I just forced the automounter restart with something like:

sudo kill -1 `cat /var/run/automount.pid`

Is this still the right thing to do?

I've googled and checked Apple's Command Line docs but I don't really find anything helpful. The mounts that I've added with Directory Utility work fine but I would like to be able to make these changes without actually sitting at each machine and going through the steps on the GUI. With a script and Remote Desktop it would take moments to add the mounts to all of the macs at once. There are many references on the web to doing this with nicl ... please point me toward instructions using dscl.

Mac OS X (10.5.6), G3, G4, G5, Mini, iMac, XServe, RAID and more!

Posted on Jan 22, 2009 3:39 PM

Reply
4 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

using dscl to mount nfs from linux ...

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.