AFP548 Changing the world one server at a time.

NFS auto mount

Home › Forums › Software › InstaDMG › NFS auto mount

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #381353
    Confusion
    Participant

    I have been given the job of reverse engineering a 10.6 image to work as 10.7
    I am pretty new to Mac so am still working through everything but I have the image 90% completed.

    The last bit is NFS homes, I can get this to work if I go into Disk utility and add the NFS connections from there.

    However because I am deploying an instaDMG image I can not set the NFS in the Image so I need a way to push this out. How can you set the nfs mounts via a script?

    Has anyone else had to do this?
    I can’t find any pges to do with instaDMG and NFS.

    If anyone cano point me in the right directin I would really appreciate it.

    I tried using a mount -t nfs from a script but it could not authenticate. when you do it through disk utility it doesn’t sk for any credentials.

    #381354
    Arjen
    Participant

    NFS Mounts that you create with Disk utility are stored in the local directory. You can view and manipulate those entries via dscl e.g.:

    mw-003998:~ bochoven$ dscl localhost -read "/Local/Default/NFS/file.vua.local:/usr/local/storage"
    AppleMetaNodeLocation: /Local/Default
    GeneratedUID: 08FF6D43-3B58-4151-BDD8-0BB3A9D1E3D5
    RecordName: file.vua.local:/usr/local/storage
    RecordType: dsRecTypeStandard:NFS
    VFSLinkDir: /Volumes/storage
    VFSOpts: resvport
    VFSType: nfs

    The other way would be to modify the autofs configuration files to add NFS automounts (auto_master, autofs.conf)
    See also the man pages for auto_master:

    Arjen

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.