Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I want to convert a .iso file to a .img file. So I write:

hdiutil convert -format UDRW -o ~/home/antu/target.img ~/home/antu/ubuntu.iso

in a terminal window. It shows that:

hdiutil: command not found

So please help me?

share|improve this question
Why would you need a .img file in Linux? – Luís de Sousa Jan 30 '14 at 9:09
He wants it on OSX – Thiago F Macedo Jun 12 '14 at 8:07

2 Answers 2

ccd2img converts only raw img files to iso files.

There are also 'Apple Disk Image' files (Mac OS 9 and earlier) which also end with the img postfix but are completely different.

share|improve this answer

Welcome to AskUbuntu. hdiutil is a proprietary software developed by US software company Apple, it does not run on Linux.

You can use ccd2iso for the reverse conversion; first install it:

sudo apt-get install ccd2iso

And then run it:

ccd2iso ~/home/antu/target.img ~/home/antu/ubuntu.iso
share|improve this answer
ccd2iso can convert img -> iso, but unless I'm utterly wrong, the OP wants it the other way around. – Klaus Warzecha Jan 30 '14 at 8:58
Yes you are right, he actually states it quite clearly. The question then is: what is the usage of an .img in Linux? – Luís de Sousa Jan 30 '14 at 9:07
I have no idea. I use ready-made images for installation only (Ubuntu, Raspbian, etc.). – Klaus Warzecha Jan 30 '14 at 9:18
Actually, it might be exactly that. Turn an iso to a bootable medium. – Klaus Warzecha Jan 30 '14 at 9:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.