recentpopularlog in

kme : diskutility   9

How to remove/repair ARDAgent.com? | Apple Support Communities
Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/contents/MacOS/ARDAgent
ardagent  mac  osx  diskutility  errormessage  newbie 
october 2014 by kme
Gregor Jasny - Google+ - How to set up permanent NFS mounts with #mountainlion …
How to set up permanent NFS mounts with #mountainlion

Starting with Disk Utility 13 from Mountain Lion, the menu option to manage NFS mounts is gone. One has to use the following commands to create a permanent NFS mount:

# create
sudo dscl . -create /Mounts/foo
sudo dscl . -create /Mounts/foo VFSLinkDir /Volumes/share
sudo dscl . -create /Mounts/foo VFSOpts resvport ro nosuid
sudo dscl . -create /Mounts/foo VFSType nfs
sudo dscl . -create /Mounts/foo RecordName nfs.example.com:/srv/share

# verify
sudo dscl . -list /Mounts
sudo dscl . -read /Mounts/nfs.example.com:/srv/share

Update:
I learned that there is a graphical tool called "Directory Editor". It can be launched via

open /System/Library/CoreServices/Directory\ Utility.app


So this solves the mystery of where the 'static' autofs mounts were coming from--directory services. Just fire up the (now cleverly hidden) Directory Utility and click on the "Directory Editor" toolbar button, then choose Viewing -> "Mounts" in node -> "/Local/Default."
mac  osx  solution  nfs  autofs  automount  diskutility  mystery 
january 2014 by kme
Mountain Lion NFS Mounts Missing In...: Apple Support Communities
Jul 27, 2012 5:24 AM

After upgrading to Mountain Lion, the NFS Mounts option in Disk Utility is no longer present.

Is there another application which can be used to configure NFS mounts or how would I go about configuring these in the command line? I would like for the NFS mounts to auto-mount at boot for all users.

Proposed solution: http://www.bresink.de/osx/NFSManager.html
dangerwillrobinson  mac  osx  mountainlion  networking  nfs  diskutility  solution 
january 2014 by kme
autofsd: /usr/sbin/automount terminated...: Apple Support Communities
Beautiful, thanks for the source info.

Looks like the automount arg processing is weak. An option arg append length check was failing.

Forgoing the automounter was the simplest option.

Sticking all the mounts in a script to be run as needed solved the problem:

NFS_OPTS=soft,intr,rsize=8192,wsize=8192,timeo=900,retrans=3,proto=tcp,resvport

sudo mount -o $NFS_OPTS server:/path /local/path

....

as needed.


In my case it was using Disk Utility to create a static NFS mount, while trying to pass it '-o browse' (as opposed to its default, which looks like
"map -static on /Volumes/sulaco_share (autofs, automounted, nobrowse)"). The resulting error message when invoking 'sudo automount -vc' was:
Assertion failed: (strlcat((mntops_out), (","), (optlen)) < (optlen)), function process_fstab_mntopts, file /SourceCache/autofs/autofs-207.1/automountlib/ns_fstab.c, line 171.

NB: The 'static' automounts created by Disk Utility (in 10.7 maybe down to 10.5) are created through directory services. That's why you don't see anything in /etc/fstab. See https://plus.google.com/100089265708813302694/posts/eJ5EevKA2y3 for the detailed info that led to this epiphany.
mac  osx  sysadmin  nfs  automount  autofs  diskutility  errrormessage  solution 
january 2014 by kme
10.6: Add NFS Mounts using Disk Utility - Mac OS X Hints
This is getting me soooo close. Turns out the 'nobrowse' command is passed to these automounts by default, so they don't show up in Finder, but I want that. Evidence suggests that '-o browse' might work ordinarily, but when I restart automountd (see http://apple.stackexchange.com/questions/20050/how-to-reload-autofs-on-lion-without-restarting) I get this error:
Assertion failed: (strlcat((mntops_out), (","), (optlen)) < (optlen)), function process_fstab_mntopts, file /SourceCache/autofs/autofs-207.1/automountlib/ns_fstab.c, line 171.


Solution at http://www.opensource.apple.com/source/autofs/autofs-207.1/automountlib/ns_fstab.c - yes, those "Advanced Mount Parameters" are passed as comma-separated options to '-o'. Unsure whether '-o browse,nobrowse' will cancel and blow up the computer or not.

NB: This capability was removed from Disk Utility in Mountain Lion (10.8). There's a third party (non-free) utility called NFSManager (http://www.bresink.com/osx/NFSManager.html) which can fill the gap, or you can manually create these mount points using Directory Services utilities (see https://plus.google.com/100089265708813302694/posts/eJ5EevKA2y3)
nfs  mac  osx  lion  automount  autofs  diskutility  maybesolution  errormessage 
january 2014 by kme

Copy this bookmark:





to read