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: Apple beta testing and device management services: the perfect match
Mike Boylan 6 min read

Apple beta testing and device management services: the perfect match

Every fall, Apple’s newest operating systems arrive everywhere at once. That’s great for users, but it puts IT teams on the clock: they need to validate the release, find blockers, prepare their support teams, and decide when the business is ready to move.

Educational
Featured image: A representitive illustration of multiple laptops next to each other, representing endpoint security for Macs.
Iru Team 9 min read

Endpoint security for Mac: How to protect macOS at scale

Mac endpoint security combines built-in macOS protections with centralized tools that help you monitor devices, enforce policies, detect threats, and respond quickly across your entire fleet. Built-in macOS security features like Gatekeeper and XProtect provide a strong foundation, but they don't offer the visibility, automation, threat detection, or behavior detection needed to secure Mac devices at scale. Layering third-party tools such as endpoint management, endpoint detection and response (EDR), and vulnerability management closes those gaps. With Iru, you can manage and remediate your Mac fleet from a single AI-powered platform, giving your IT and security teams more time and control. Your Mac fleet grows one device at a time. Then, almost overnight, you're supporting remote employees, multiple offices, and hundreds of endpoints. At that point, endpoint security for Mac isn't just about protecting individual devices. It's about knowing what's happening across your entire environment.

Featured image: An illustrated image showing four different device endpoints connected to a central protection hub (a shield with a checkmark), representing endpoint monitoring.
Iru Team 8 min read

What is endpoint monitoring? A practical IT and security guide

Modern IT environments rarely stay still. Employees work across offices, homes, and coworking spaces. New devices join the fleet. Software changes. Configurations drift. And then the compliance audit notice arrives.

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.