Disk image format obsolete

Hello all,


I went to open an old .dmg that I have today and got an error message that reads, "The disk image couldn't be opened. The disk image format is obsolete. Please convert it to a new format using the command line tool 'hdiutil'


So, wondering if anyone knows the command line code to change to a new formate and how I would do that?


Thank you!

MacBook Pro 13″, macOS 12.4

Posted on Aug 4, 2022 7:06 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 4, 2022 7:32 PM

hdiutil convert imageFile -format UDRW -o ~/Desktop/newImageName

imageFile needs to be the full path to the image to convert. If there are spaces in the path, enclose the full path/name in ""

newImageName could be just about anything you want. It should automatically add the extension.

It will create a read/write disk image. It should not do anything to the original image.

If you use UDRO instead of UDRW, it will be a read only disk image.


If you are confused on entering the full path to the original image, just copy up to convert and paste into Terminal, leave a space, then drag the image file into the Terminal window. It will fill out the path. paste in the part after imageFile.


I don't have any idea if it can actually convert an obsolete image as I don't have one to try.


I think you will also have to add Terminal to Full Disk Access in the Security & Privacy System Prefs, Privacy tab.

Similar questions

3 replies
Question marked as Top-ranking reply

Aug 4, 2022 7:32 PM in response to DoubleJ757

hdiutil convert imageFile -format UDRW -o ~/Desktop/newImageName

imageFile needs to be the full path to the image to convert. If there are spaces in the path, enclose the full path/name in ""

newImageName could be just about anything you want. It should automatically add the extension.

It will create a read/write disk image. It should not do anything to the original image.

If you use UDRO instead of UDRW, it will be a read only disk image.


If you are confused on entering the full path to the original image, just copy up to convert and paste into Terminal, leave a space, then drag the image file into the Terminal window. It will fill out the path. paste in the part after imageFile.


I don't have any idea if it can actually convert an obsolete image as I don't have one to try.


I think you will also have to add Terminal to Full Disk Access in the Security & Privacy System Prefs, Privacy tab.

Aug 12, 2022 6:13 AM in response to DoubleJ757

Happened to me too. On upgrading from Big Sur to Monterey. The solution should be simpler than above. Open Disk Utility, go to Images>Convert. Disk Utility will allow you to create a new disk image from the old one, which will open ok. You will have to choose which characteristics you want, and set up the password again.


I thought it was weird of Apple to send a cryptic message telling the user to go plunge into Terminal for something like this.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Disk image format obsolete

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