Skip to main content
4 of 6
added 194 characters in body
klanomath
  • 67k
  • 10
  • 135
  • 204

Quit all apps!

Boot to Recovery Mode either with cmdR (while booting) or in normal GUI mode from within the shell (Terminal):

sudo nvram "recovery-boot-mode=unused"
sudo reboot

The two sudo commands will reboot your Mac immediately to Recovery Mode without further user interaction (i.e. no cmdR shortcut necessary while rebooting)

In Recovery Mode open Terminal (menubar > Utilities > Terminal) and enter:

/Volumes/[name_of_main_volume]/usr/bin/nano /Volumes/[name_of_main_volume]/System/Library/LaunchDaemons/com.apple.nfsd.plist

Example with the default name Macintosh HD:

/Volumes/Macintosh\ HD/usr/bin/nano /Volumes/Macintosh\ HD/System/Library/LaunchDaemons/com.apple.nfsd.plist

Replace

        <array>
            <string>/sbin/nfsd</string>
        </array>

with (here I assume you are following the instructions here and want to add -N to the plist)

        <array>
            <string>/sbin/nfsd</string>
            <string>-N</string>
        </array>

and hit ctrlO to write the changes to disk and ctrlX to exit nano.

Enter

nvram -d recovery-boot-mode #according to user3439894 and other users you don't have to execute this command
reboot

to reboot normally.

klanomath
  • 67k
  • 10
  • 135
  • 204