MacOS – csrutil: command not found

macosrecoverysipterminal

I am using a Mid 2012 MacBook and recently upgraded it to OS X 10.11 El Capitan. I was having trouble with it's new SIP feature and wanted to disable it.

I tried to boot into OS X Internet Recovery using Cmd+R, which started Internet Recovery. When I tried csrutil disable in Terminal, it returned -bash: csrutil: command not found.
Then I tried booting into Recovery HD and tried the same command in the recovery mode there to get the same error.

My question is how can I access csrutil command to disable SIP? Am I missing something?

Update
I am putting the recovery terminal commands I have tried in the following screenshot. Kindly zoom it to see clearly

Terminal commands

Best Answer

The netboot image loaded by booting to Internet Recovery Mode apparently doesn't contain the executable csrutil.

The OS X Base System loaded while booting to Recovery Mode should contain it though. By pressing cmdR a 2-step procedure is initiated: First the Mac is booted to Recovery HD and then after expanding BaseSystem.dmg to "OS X Base System" (which is the name of the mounted BaseSystem.dmg). If you see an animated globe after pressing cmdR your Mac probably doesn't have a Recovery HD.

Check the system version (or product version) of the Recovery HD/Base System:

To check the system version (1 in the screenshot below), boot to your main volume and enter the following in Terminal:

diskutil list #to get the disk identifier of your Recovery HD; usually it's disk0s3 with a size of ~650 MB
diskutil mount disk0s3
cat /Volumes/Recovery\ HD/com.apple.recovery.boot/SystemVersion.plist | grep -A 2 ProductVersion

Additionally you may mount BaseSystem.dmg and check the system version (2 in the screenshot below) there also:

open /Volumes/Recovery\ HD/com.apple.recovery.boot/BaseSystem.dmg
cat /Volumes/OS\ X\ Base\ System/System/Library/CoreServices/SystemVersion.plist | grep -A 2 ProductVersion

enter image description here

Download and reinstall the latest OS X El Capitan full installer if the system version of the base system is 10.10.x or lower.