The Computer Oracle

Making a bootable OSX USB from dmg on Linux

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Over Ancient Waters Looping

--

Chapters
00:00 Making A Bootable Osx Usb From Dmg On Linux
00:30 Accepted Answer Score 24
01:18 Answer 2 Score 0
01:34 Answer 3 Score 65
02:21 Answer 4 Score 1
02:39 Thank you

--

Full question
https://superuser.com/questions/505821/m...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#macos #mac #usb #boot #fedora

#avk47



ANSWER 1

Score 65


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

Edit

You can do the conversion and actual writing in one pass, if you don't need the .iso afterwards: it will take half the time as converting to .iso and THEN writing to the USB device. Just do:

sudo dmg2img -v -i /path/to/image_file.dmg -o /dev/sdb

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




ACCEPTED ANSWER

Score 24


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.




ANSWER 3

Score 1


Try booting from Internet Recovery (Command + Alt + Shift + R) and opening the installer app from Terminal.

Open Terminal in recovery and:

cd /Volumes/NAME-OF-YOUR-USB-STICK/
cd The-Name-Of-Your-Installer.app/Contents/MacOS
./InstallAssistant

The installer should load.




ANSWER 4

Score 0


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.