Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 at 9:09
    
He wants it on OSX –  Thiago F Macedo Jun 12 at 8:07

1 Answer 1

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 at 8:58
1  
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 at 9:07
    
I have no idea. I use ready-made images for installation only (Ubuntu, Raspbian, etc.). –  Klaus Warzecha Jan 30 at 9:18
1  
Actually, it might be exactly that. Turn an iso to a bootable medium. –  Klaus Warzecha Jan 30 at 9:21

Your Answer

 
discard

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.