I'm developing some low-level system tools that need to read the physical storage device. Prior to macOS 10.13, I was able to open /dev/disk0
, /dev/disk1
, etc. and read raw data from the device. But after upgrading, I'm no longer able to open these devices, and I get "Operation not permitted" errors, even though I'm running as sudo. Is there a way to access the physical drive in this version?
Macos10.13, must disable the SIP to access the disk0.
1.boot into recovery
2.execute cmdline: csrutil disable