hdiutil command cannot work properly with Catalina macOS

In the past I have successfully used hdiutil to make app install .dmg cd disks and it worked fine prior to Catalina :{ but now hdiutil command cannot work properly with Catalina for either of two reasons:


  1. hdiutil must find its source in the system root folder: / , but
  2. Catalina does not allow me Write permission to root (via 'get info') even tho' I am admin user.


hdiutil will process a source outside of root but when the .cdr product is burned to a disc, it has the DMG in it but the disc cannot be read by the computer, and is found unitialized by DiskUtility app.


Help - how can I get Write permission to the root? I have tried with Recovery mode, but Recovery does not provide a Terminal with which to run csrutil disable and enable.

Or how can I get a version of hdiutil, compatible with Catalina, that properly processes a source outside of root?



iMac 21.5″, macOS 10.15

Posted on Jul 17, 2025 03:19 PM

Reply
9 replies

Jul 18, 2025 07:10 AM in response to LorInCalif

Help - how can I get Write permission to the root?


That is no longer possible. Constraining potential solutions to that will be futile.


For productive solutions I believe you will need to provide the complete hdiutil command you had used in the past, as well as any subsequent actions that resulted in a readable disc.


Consider simpler causes, such as an optical drive that isn't working properly — burning or reading, or defective / degraded optical media.

Jul 18, 2025 12:50 PM in response to John Galt

Actually, the initial actions were successful. The subsequent attempts without placing the source .dmg in root failed. The detailed history follows.


In the past running with Mojave macOS, I constructed the dmg file (finder window) as MyProgram_Install.dmg, then according to helpful suggestion online I placed a copy of it into the system drive root (having path "/").


The suggestion said "COPY THE <name>.DMG TO THE ROOT, ELSE IT WON'T BE FOUND." Subsequent experimentation (omitting the leading path /) confirmed the truth of that statement. That information is not contained in the man udiutil documentation in Mojave or Catalina.


With Terminal I ran the following:


hdiutil convert /MyProgram_Install.dmg -format UDTO -o MyProgram_Install


This produced an object in my current directory named MyProgram_Install.cdr which I burned into a blank CD-R disk.


When mounted in the drive, this disk functioned perfectly allowing me to install MyProgram on two iMac's in my possession - the one with Mojave (10.15.7) and another with High Sierra (10.13.6). This proves the "usual suspects", hardware, media, etc. innocent.


When I tried the hdiutil command without the leading path / and the program.dmg residing with me in my current directory, the product .cdr burned to the disk found by DiskUtility to be uninitialized - unmountable.


Finally, perhaps your expertise can suggest a way to initialize the CD otherwise empty and then burn the .cdr onto it (or vice versa). I messed with DiskUtility with that goal but couldn't find a way to make it work.


Thank you deeply for your attention to this dilemma!


~~Lor


Jul 18, 2025 01:06 PM in response to LorInCalif

You need to select the correct path to your DMG file you wish to "burn" or manipulate. The easiest method is just to type your Terminal command, then drag & drop the file from the Finder onto the open Terminal window so the proper path is automatically filled in for you.


Otherwise you need to learn more about the command line if you wish to use Terminal commands. You should never blindly use any Terminal commands without understanding them since even a simple typographical error could result in unexpected results and even catastrophe such as permanently deleting your files. I suggest you begin with this six part tutorial.....while it is using the Bash shell, most of the items should also pertain to Zsh shell used by later versions of macOS as the default (it is easy to switch between them and is a personal preference).

https://scriptingosx.com/2017/07/first-steps-in-terminal/


Edit: It also sounds like you are following directions from someone who doesn't understand the command line either. So proceed with caution.


I highly recommend to make sure you have a good current backup before doing anything with the Terminal command line so you can restore the system if you make a catastrophic mistake.

Jul 18, 2025 01:14 PM in response to LorInCalif

LorInCalif wrote:

See also my reply to John Galt.

Are you suggesting that it might work to place the source dmg at the root of a non-system drive and send that path to hdiutil ? I will try it. /Volumes/whatever/source etc.

It doesn't matter where the file is located as long as it is some where that you have permissions to save/create it. It would be best to keep it in your home user folder like you do all other files/projects you create with other apps & methods.


You just need to learn how to use the command line properly to access the files.


FYI, I would not recommend creating any folders under "/Volumes" as that location is meant to be the mount point for externally mounted drives and DMG archive images. When you double-click to open a DMG archive or use "hdiutil" to manually attach the DMG archive, then macOS will automatically place their mount points under "/Volumes". macOS will automatically create the proper folder under "/Volumes" and also automatically delete the folder used for the mount point once you eject the drive/volume or "detach" it using "hdiutil".


Jul 18, 2025 02:59 PM in response to LorInCalif

I understand you want to use hdiutil to create a mountable disk image with which to burn a CD-ROM that will mount automatically, upon inserting it in the optical drive. Is that correct?


If so I understand, and the fact you did it successfully in the past implies it should still be possible, bearing in mind writing to / (the root directory of a startup disk) is no longer an option.


If all that is correct then try your proposed solution:


Are you suggesting that it might work to place the source dmg at the root of a non-system drive and send that path to hdiutil ? I will try it. /Volumes/whatever/source etc.


I have never attempted to do that without third party utilities (perhaps it was Roxio Toast; I don't recall) and my initial impression was that macOS and its predecessors lacked a native ability to do that. But you did it before... so try it. I can attempt some solutions myself but they will be time-consuming. Let us know if your technique works.


By way of clarification there is no secret to burning a CD-ROM that can be mounted. If you want to have something auto-launch, implying merely inserting the disk results in invoking an installation procedure (for example) that's a separate challenge. So I need to clarify that before going down that road.

Jul 25, 2025 05:06 PM in response to John Galt

Thank you, John Galt, for your professional, respectful, and engaged responses to my issue. Your years of experience shine through.


I started programming in 1964 and was an IT consultant, system designer and developer in the Bay Area and LA for over 32 years. For my personal work, I got my first iMac in 2000. I've been working on that platform ever since using shell commands extensively, interacting with macOS in Terminal command level applications coded with FreePascal. I have also developed a GUI app with Xcode for movie/video editors.


This current situation is the first time I've needed HDIUTIL however. So I jumped to suspect it. I figured out how to construct a workable installation DMG and passed it through hdiutil only to get the .cdr master record. Catalina's version actually does work from a source located at any reasonable location.


My original problem appeared with the migration from Mojave to Catalina, involving the changes therewith to --ta da --wait for it --DiskUtility! --and my unfamiliarity with that version.


An earlier OS version contained the burn button in DiskUtility, but Catalina's goes through the New Image function, leading to saving the DMG it makes from the .cdr wherever convenient to be found using Finder where it is right-clicked to get it burned properly.


Whew! Out of the woods now. Your kind participation has been instrumental in my ongoing education.

Thank you so much!

~~Lor



An earlier OS version contained the burn button in DiskUtility, but Catalina's goes through the New Image function, leading to saving the DMG it makes from the .cdr wherever convenient to be found using Finder where it is right-clicked to get it burned properly.


Whew! Out of the woods now. Your kind participation has been instrumental in my ongoing education.

Thank you so much!

~~Lor


Jul 28, 2025 10:22 AM in response to LorInCalif

You're welcome Lor. Glad to help.


Apple's unilateral changes to their systems can occur over a period of years (the transition from 16 to 32 to 64 bit hardware and software for example), or months (AppleTalk), or in this case, essentially overnight. One day in August 2011 an edict came down from on high and just like that, CDs and DVDs were abandoned as though they never existed. Those of us accustomed to Apple's ways saw the writing on the wall and learned to abandon them just as quickly. So it was then I forgot about Roxio Toast or any corresponding features in Disk Utility.


For someone with such an extensive background it must bemuse you to observe how Apple's customers have grown to expect literal magic from their products. For the most part they just work, with no appreciation for how seamlessly integrated they are to fulfilling whatever needs (demands?) they may have. They are no longer "computers" in the traditional sense and I stopped associating that term with Macs years ago. They're Macs, (which are inexorably becoming iPhones anyway) and if you want a "computer" today you have to build one yourself.


In creating the original Macintosh, Apple's founders sought to create an "information appliance". They succeeded.

hdiutil command cannot work properly with Catalina macOS

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.