Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have 2 machines - a MacBook Pro and a desktop running Fedora, I have a USB drive and a OSX 10.8 dmg. The MacBook won't boot into OSX unfortunately, I'm trying to make a bootable mac usb to recover it.

Any insight? I've tried dmg2img but no success putting that image onto the usb drive.

Is there an easy way to do this?

share|improve this question

3 Answers 3

up vote 4 down vote accepted

Have you tried "Acetoneiso"?

It'll convert the DMG to an ISO for you. After that, the easiest way I know of to make a bootable USB is using DD.

dd if=/path/to/osx.iso of=/dev/sdX && sync

Note: sdX is an example, you will have to check your flash drive address (usually sdb if you have only one hard disk). Do not add a partition # after that (such as sdb1). This method is a little hard on flash drives (I have killed one or two doing this relatively frequently, but once should be fine).

If you are unfamiliar, DD is a bit by bit copy and sync just verifies that all files have been written to the usb.

share|improve this answer
    
why you cannot directly do DD from the .dmg to the USB ? –  Francesco Jan 6 at 20:11
    
@Francesco - Do some research on the format differences between a dmg (non-standard) and iso (standard) –  nerdwaller Jan 6 at 20:19
    
Accordign to this guide: macbreaker.com/2014/01/… this should work on Mac Osx: sudo dd if="location of Niresh disk image" of=/dev/r"identifier" bs=1m So why should not on linux ? –  Francesco Jan 7 at 9:22
    
@Francesco - Never said it doesn't. Please ask your own questions rather than piggy backing off other's and providing unrelated/chatty comments. You can also see if anyone is available in chat. –  nerdwaller Jan 7 at 14:26
1  
@Francesco - Again, look at the differences between dmg and iso. iso is a standard, dmg is often contains compressed items, where isos do not. To avoid the few rare cases in which a dmg behaves as an iso, it's best to just convert it to a known valid format. If you write the common dmgs (that contain compression) to a USB, many things do not handle them correctly. So you aren't adding details, you're asking questions without researching it beyond a single case in which your point is true while ignoring the numerous cases in which it is false. –  nerdwaller Jan 7 at 17:39

Install dmg2img

sudo apt-get install dmg2img

Convert DMG image file to ISO file

dmg2img -v -i /path/to/image_file.dmg -o /path/to/image_file.iso

Copy ISO image to USB

sudo dd if=/path/to/image_file.iso of=/dev/sdb && sync

sdb is an example. In your case it might be different

share|improve this answer

If you can find another Mac, try the Disk Utility App.

You can "Restore" your 10.8 DMG to your USB drive. This will make your USB drive be bootable.

share|improve this answer

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.