I have recently built myself a Hackintosh running MacOS X El Capitan, but along side the Mac disk, I have a number of other Windows disks. Unfortunately, some of these disks have some weird and wonderful partitioning that  only Windows can understand.

As a result, whenever I boot up into my MacOS X build, I constantly get prompted with a message stating The disk you inserted was not readable by this computer with options to Initialize, Ignore or Eject.

I hear that disks used in a Windows RAID configuration also cause the same problem.

While this isn’t a big deal, it is irritating having to click the Ignore button every time I boot up MacOS X. There is no option to automatically ignore the disk, however a tool created by Andre Richter over on Github helps to solve this issue and it’s pretty simple to setup. It looks scary, but it really isn’t!

Head over to Andre Richter’s GitHub page for diskejectd and download a copy: https://github.com/andre-richter/diskejectd

Click the green Clone or download button and then Download ZIP

Extract the ZIP file somewhere sensible and you should have something that looks like this (usually in a directory titled diskejectd-master):

Now, open up a terminal window, either using the in-built Terminal app or using your preferred terminal such as iTerm2.

Enter the following command:

diskutil list

The output should look something like the below. Find your disk in the list, I’ve highlighted my particular problem disks:

In my example above, we can see that the problem disks are /dev/disk3 and /dev/disk4. These are Windows partitions that MacOS X was unable to read. Make a note of these disk numbers as we will need them in a moment.

Going back to the diskejectd-master folder where we extracted the ZIP file to, open the com.diskejectd.plist file in your favourite text editor. TextEdit is fine, I personally prefer VSCode. The file should look something like this:

On line 17 above, you can see the following line (This line number may change with newer versions of diskejectd):

<string>Blocked Disk Name 1</string>

Change the text Blocked Disk Name 1 to the disk number you wish to exclude. If you have more than one disk (like I do), then you can add an extra string tag on the next line, so you should end up with something like:

<string>disk3</string>
<string>disk4</string>

Save the file and quit your text editor.

Now return back to your terminal session and change your directory to your diskejectd-master folder. To do this, use the cd command. I extracted the ZIP into my Downloads folder, so I used command:

cd ~/Downloads/diskejectd-master

From here, we need to enter three commands:

make
sudo make install
sudo make start

When you enter the second command, you will be prompted to enter your password. This is the password you use to log into your Mac.

Successful output should look something like this:

At this point, you can now reboot your Mac. If you were successful, the annoying messages should no longer appear for those specific disks.

Hope this helps. This guide was written on a machine running Mac OS X El Capitan 10.11.6, but I believe this should work for most versions of Mac OS X. Good luck! 🙂

Share:
Share