Skip to content

Apple is deprecating hdiutil in macOS 27 Golden Gate. Are your scripts ready?

Arek Dreyer Arek Dreyer
Apple is deprecating hdiutil in macOS 27 Golden Gate. Are your scripts ready?

If you spent part of last weekend fielding Slack messages about hdiutil, you're not alone. Jeff Johnson's lapcatsoftware.com blog flagged that the man page for hdiutil in the macOS 27 Golden Gate beta now carries a deprecation notice:

"In macOS 27.0, hdiutil is deprecated. Use diskutil image instead for all disk image operations."

Because the hdiutil tool to manipulate disk images has been widely used by Mac admins for so many years, it’s worth a second look. Here's the short version.

Deprecated today doesn't mean gone today

Apple's own release notes distinguish between hdiutil and diskutil. For now, hdiutil still works. Using it in a script won't break anything in macOS 27, though depending on how you're invoking it, your users may start seeing deprecation warnings surface. Nothing about current functionality goes away in the release of macOS 27.

That's an important distinction, because "deprecated" and "removed" can get used interchangeably in the panic that follows a weekend blog post, and they're not the same thing. What it does mean is that Apple has told developers and admins where things are heading, and that diskutil image (which handles attach, create, resize, info, and chpass) is the intended long-term replacement.

Why this shows up on so many admin scripts

hdiutil has been the standard way to create and manipulate disk images (.dmg files) since early Mac OS X (as it was called then), so it's baked into a lot of custom tooling: packaging workflows, app distribution scripts, backup routines, anything that builds or mounts a disk image as part of a device management process. A single org-wide code search for hdiutil at most companies with any Mac-admin history is likely to turn up more hits than you'd expect.

That's also exactly why Apple deprecating (rather than yanking) the command matters. It gives teams a window to find every reference before it's a fire drill.

diskutil image isn't a 1:1 swap yet

Early testing referenced in the lapcatsoftware.com post is worth flagging before you start migrating scripts wholesale. Comparing the two tools on the same backup task, the author found diskutil image was noticeably faster, but also noted some gaps worth testing for in your own environment, like differences in verbose logging output, how (or whether) authentication prompts are triggered when a script hits permission issues, and support for options like hdiutil's -scrub, which controls whether temporary files and trash get included in an image. None of this is disqualifying, but it means "just swap the command name" probably isn't going to be your migration plan.

What to actually do about it

Apple has trimmed CLI tooling before without much warning. As we covered around WWDC, some legacy MDM commands were removed outright in macOS 27 with no deprecation runway at all. hdiutil is, at least, getting the more generous treatment. Here's how to spend that runway before it closes:

  1. Search your scripts, packages, and app distribution tooling for hdiutil  references.
  2. Test the equivalent diskutil image subcommands against your actual workflows in the macOS 27 beta, not just the happy path.
  3. File Apple Feedback on any gaps you hit. For example, diskutil lacks the equivalent of hdiutil’s -puppetstrings option, but if you file feedback with Apple about how this impacts your workflows and is a blocker for you, it’s more likely that Apple will address it (in other words, don’t just boo.)
  4. Track this the same way you'd track any other beta-cycle compatibility item, so it's resolved well before hdiutil functionality actually goes away in a future release.

There's no need to treat this as an emergency. There is a good reason to treat it as homework.

How Iru fits in

If you're running this audit against macOS 27 beta devices, Iru's Managed OS and ADE Library Items support enforcing Apple beta enrollment and specific beta releases, so you can put a real test population on Golden Gate without touching production devices. See our recent post on Apple beta testing for how to set that up.

Recent Articles

Featured image: An image representing the state of compliance automation.
Iru Team • 16 min read

2026 State of Compliance Automation Report: Manual evidence collection doubles the rate of fines and findings

You just sent over compliance evidence to the auditor. Their reply? Asking for more information. So you pull some more screenshots and open up spreadsheets you thought were closed for the quarter. If that scramble feels familiar, you have company: how teams collect that evidence is one of the clearest compliance industry trends in our data. For The State of Compliance Automation 2026, we surveyed 860 IT, security, and compliance professionals. How teams collect that evidence turned out to be one of the clearest dividing lines in the data.

Featured image: Zero touch doesn't have to mean Autopilot
Craig Hinchliffe • 6 min read

Zero touch doesn't have to mean Autopilot

For most Windows shops, "zero-touch enrollment" has become shorthand for Windows Autopilot. With Autopilot, each device's hardware hash is registered with Microsoft before it ships, so it sets itself up and enrolls in management when the employee signs in. No imaging bench, no IT ticket.

Product News
Featured image: Abstract diagonal bars in blue, purple, orange, and cyan on a blue gradient
John Richards • 5 min read

One year of Iru: What we built since Kandji

One year ago, Kandji became Iru: a single platform for identity, endpoint management and security, vulnerability management, and compliance automation. Here's what we've built in the 12 months since.

Product News

See Iru in action

Discover why thousands of teams choose Iru

By submitting this form I agree to Iru’s Privacy Policy and consent to be contacted by Iru about its products and services.

Stay up to date

Iru's bi-weekly collection of articles, videos, and research to keep IT & Security teams ahead of the curve.