Syntax to use hdiutil to convert .img to …
Imported from the Apple Support Forums via the Wayback Machine 🔗
I have a large set of old .img files made from floppy disks back in 1998, and they no longer open under Mojave. I can use the Disk Utility application to convert the files, individually, to .dmg files, but it's tedious. I should be able to use the terminal command "hdiutil convert" to do that to all files in the tree. However, the manpage doesn't guide, it gives cryptic format options :
UDRW - UDIF read/write image
UDRO - UDIF read-only image
UDCO - UDIF ADC-compressed image
UDZO - UDIF zlib-compressed image
UDBZ - UDIF bzip2-compressed image (macOS 10.4+ only)
UFBI - UDIF entire image with MD5 checksum
UDRo - UDIF read-only (obsolete format)
UDCo - UDIF compressed (obsolete format)
UDTO - DVD/CD-R master for export
UDxx - UDIF stub image
UDSP - SPARSE (grows with content)
UDSB - SPARSEBUNDLE (grows with content; bundle-backed)
RdWr - NDIF read/write image (deprecated)
Rdxx - NDIF read-only image (Disk Copy 6.3.3 format)
ROCo - NDIF compressed image (deprecated)
Rken - NDIF compressed (obsolete format)
DC42 - Disk Copy 4.2 image
I can probably hack my way through the "right" combination, but I'm hoping that someone in this forum with deeper knowledge of formats and terminal commands can quickly respond, so that others might benefit.
3 replies
Sign in or join Beachball Help to reply.
- 0
- 0
- 0