Skip to content

Instantly share code, notes, and snippets.

@iwalfy
Last active April 28, 2024 13:00
Show Gist options
  • Save iwalfy/a6294b7ba7e1c9fa38f72c0e0a837e89 to your computer and use it in GitHub Desktop.
Save iwalfy/a6294b7ba7e1c9fa38f72c0e0a837e89 to your computer and use it in GitHub Desktop.

Here is how to disable The disk you attached was not readable by this computer. warning when drive with unknown filesystem connected to the Mac:

Works only on macOS 13 Ventura and newer!

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.DiskArbitration.diskarbitrationd.plist DADisableUnreadableNotification -bool YES

Then reboot or execute:

sudo launchctl kickstart -k system/com.apple.diskarbitrationd

There is also some other flags for diskarbitrationd:

DAMountAutomatic
DAMountOptions
DAMountPath
DAProbeID
DAProbeKind
DAMountDeferExternal
DAMountDeferInternal
DAMountDeferRemovable
DAMountTrustExternal
DAMountTrustInternal
DAMountTrustRemovable
DAAutoMountDisable
DAEnableUserFSMountExternal
DAEnableUserFSMountInternal
DAEnableUserFSMountRemovable
DAMountMethod
DADisableEjectNotification
DADisableUnreadableNotification
DADisableUnrepairableNotification

You can see them with:

strings /usr/libexec/diskarbitrationd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment