Searching nfs mounted through disk utility

Discussion in 'Mac OS X Lion (10.7)' started by barbz127, Nov 22, 2011.

  1. barbz127 macrumors newbie

    Joined:
    Sep 1, 2011
    #1
    Hi all,

    I have a nas mounting over nfs to /nazbox

    I want to make this drive indexed by finder; I have tried the mdutil command to add it but I get errors. I have also run a mdutil -sa to see what is availbe to index and /nazbox doesn't display (same thing if I mount to /network/nazbox or /volumes/nazbox).

    So what do I have to do to make this show up as an option in mdutil -sa?

    I've tried running the commands with sudo and no luck.

    Cheers
    Paul
     
  2. barbz127 thread starter macrumors newbie

    Joined:
    Sep 1, 2011
    #2
    Anyone have any ideas?

    I have full access to the share, share is running on a freenas server 0.7 - with maproot set in the NFS config file.

    Outputs

    $ sudo mdutil -i /Nazbox/
    Error: unexpected indexing state (/Nazbox/)
    Usage: mdutil -pEsa -i (on|off) -d volume ...
    Utility to manage Spotlight indexes.
    -p Publish metadata.
    -i (on|off) Turn indexing on or off.
    -d Disable Spotlight activity for volume (re-enable using -i on).
    -E Erase and rebuild index.
    -s Print indexing status.
    -a Apply command to all volumes.
    -V vol Apply command to all stores on the specified volume.
    -v Display verbose information.
    NOTE: Run as owner for network homes, otherwise run as root.

    and

    $ mdutil -sa
    /:
    Indexing enabled.
    /.MobileBackups:
    No index.
     
  3. barbz127 thread starter macrumors newbie

    Joined:
    Sep 1, 2011
    #3
    Any thoughts on this?

    Need to index a nfs share mounted at root level.

    Happy to move this to /network or /share if someone can confirm it will work.

    Paul
     
  4. admanb macrumors newbie

    Joined:
    Feb 2, 2010
    #4
    I'd also like to know how to index an NFS mount so that searches for files in Finder turn up results. Whenever I use mdutil -s it states "No index." and attempting to start an index either with "-E" or "-i on", I get an "Error: invalid operation. No index." message. I've tried running it as the owner of the share (root) to no avail. Any help would be greatly appreciated!

    Note that I'm running Snow Leopard, not Lion, but this problem seems to have persisted across many OSX versions and I figure the fix is likely the same (at least I hope).
     

Share This Page