


Using a shadow file to attach a read-only image read-write to modify Note use of the block-special device.Īlso, this piece looks like something you could use: If read access to /dev/rdisk1 is not available. Hdiutil convert /dev/disk1 -format UDRW -o devimageĬonverts the disk /dev/disk1 to a read/write device image file. Hdiutil convert master.dmg -format UDTO -o masterĬonverts master.dmg to a CD-R export image named master.cdr I found this in the Examples section of the hdiutil man page: Converting: Which, unfortunately, is probably what you were hoping to avoid.īy the way, you might find this command helpful to peek into the DMG's partitions: hdiutil pmap your_file.dmg So there's the work-around: Copy the files off and make another DMG. The generated filesystem is not intended for conversion to read-write, but can safely have its files copied to a read/write filesystem by ditto(8) or asr(8) (in file-copy mode). The generated image can later be burned using burn, or converted to another read-only format with convert. Here's an excerpt from the hdiutil(1) man page section on Hybrid images: You run into a similar problem with the hybrid filesystem images that many OS distributions are shipping these days. | Disk Image (r/o) | | Disk Image (r/w) | We can convert a DMG that contains an ISO to be read/write, but the ISO itself can only be read-only: _ _ So you've probably only converted the container to read/write. The DMG's contents are distinct from the DMG container. Disk images are just containers that emulate a disk.
