Contribute
Register

Is it possible to block OS X from seeing a disk device?

Status
Not open for further replies.
Joined
Mar 14, 2016
Messages
8
Motherboard
GA-Z170N-Gaming 5
CPU
Intel Core i7-6700K
Graphics
Asus GTX 1070 Turbo
Please note that this question is NOT about preventing a disk from mounting; fstab(5) is called following the device being accessed, and can only reference a disk by UUID or LABEL after the disk has already been read.

On logging into my functioning installation of El Capitan 10.11.6, I receive the following warning: The disk you inserted was not readable by this computer. (Options: Initialize, Ignore, Eject).

My fstab(5) already prevents mounting all of my non-macOS drives, and I am also using Disk Arbitrator with its user launch agent to block all mounts. I also have <Hide> in my Clover config.plist for all of these drives.

I believe this error is in regards to a Samsung 950 Pro NVMe disk connected by M.2 PCI-e, which has several GPT Linux partitions, since I am NOT using the IONVMeFamily.kext.

I assume I could get rid of the error message by using the IONVMeFamily.kext, and then block the partitions from being mounted with fstab(5) or Disk Arbitrator, but I'd prefer to prevent macOS from attempting to access the device in the first place. I was hoping Clover config.plist would have an option to hide something in <Devices>, but there appear to be only options to modify the device rather than hide it. I imagine it would be possible to disable the device in UEFI firmware before even Clover sees it, but I DO need it enabled for booting into Linux.

TL;DR - Is it possible to block macOS from seeing a device on boot? Or to maybe use a DSDT that prevents macOS from ever having access?
 
I believe you can do it in the Clover configuration - in Clover Configurator, it's called "Hide Volume" and can be found on the "GUI" tab. I'm not sure how you specify the volume(s) to be hidden, probably by GUID (e.g. "
PciRoot(0x0)\Pci(0x1F,0x2)\Sata(0x3,0xFFFF,0x0)\HD(1,GPT,1F461330-B56D-4DC0-91C0-752986BA9098,0x28,0x64000)\EFI\Microsoft\Boot\bootmgfw.efi"), but it should be documented somewhere. Good luck!
 
Status
Not open for further replies.
Back
Top