Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Clear out phantom NFS shares' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Clear out phantom NFS shares
Authored by: emendelson on Jul 23, '12 11:39:50AM

The post about dscl is interesting, and news to me. Could you possibly spell out for non-experts exactly how to find and remove a phantom share with this command? The man pages aren't exactly user-friendly, at least not to this particular user...

Edited on Jul 23, '12 11:40:25AM by emendelson



[ Reply to This | # ]
Clear out phantom NFS shares
Authored by: richard2 on Jul 23, '12 01:29:57PM

Certainly. :)

Firstly, execute dscl in interactive mode:

  1. Open Terminal.
  2. If you're using a Mac OS X user account with standard privileges, then enter su - Account, where Account is the account name, to switch to an account that has administrative privileges.
  3. Enter sudo dscl, then enter your Mac OS X user account password if prompted to.

The following is an example of using dscl in interactive mode:

To navigate to the Mounts directory:

 > cd /Local/Default/Mounts
/Local/Default/Mounts > 

To list the contents of the directory:

/Local/Default/Mounts > ls
Example
/Local/Default/Mounts > 

To read the properties of the Example record:

/Local/Default/Mounts > read Example
Property: Value

/Local/Default/Mounts > 

To remove the Example record:

/Local/Default/Mounts > delete Example
/Local/Default/Mounts > 


[ Reply to This | # ]
Clear out phantom NFS shares
Authored by: emendelson on Jul 23, '12 06:31:02PM

Thank you! Very clear and useful, and better than my brute-force method...!



[ Reply to This | # ]