DMG file editing in Ubuntu

4

2

I have a compressed dmg file in Ubuntu. I would like open this file and add 2 files to this system and create the compressed dmg file.

I open to doing the same in Windows if its not possible on Linux.

dmg2img will convert this file to an img file. But I do not know of any utility that converts it back to dmg file.

Ramya

Posted 2009-09-22T01:17:45.177

Reputation: 141

Answers

1

You can mount it with the command line directly in Linux:

mount -t hfs -o loop imagename.dmg /mnt/mymountpoint

There is also dmgextractor and 7-zip which will allow you to extract them. I know TransMac will allow creation of dmg images on Windows, but it costs a bit. On Linux you can build Apple's diskdev_cmds package and use this handy script to make dmg images.

John T

Posted 2009-09-22T01:17:45.177

Reputation: 149 037

But the mounted image is only in a read only mode, so you can't modify the dmg file. – ikreb – 2019-02-20T16:06:51.513