unix:apple_osx:dmg
Table of Contents
DMG Files
DMG files are Apple's equivalent of ISO's. Wikipedia explains at https://en.wikipedia.org/wiki/Apple_Disk_Image
Burn DMG to USB Drive
If you have a Mac, Disk Utilities will do this for you. For Windows and Linux, you need some additional software. I have not verified the Windows tool, DMG Editor, but an article I read says it is ok. The following is taken from https://www.androidphonesoft.com/resources/burn-dmg-to-usb-drive.html
From Linux, however, you can do the following. You must be the root user.
- Install dmg2img
apt install dmg2img
- Convert dmg file to iso
dmg2img filename.dmg
- Determine your usb drive and unmount if necessary
lsblk
- Copy the .img file created to your usb drive (assumes sdh from previous step)
dd if=./filename.img of=/dev/sdh bs=4M
- Your machine will go into lala land, with no visible indication anything is happening. Just be patient. When done, be sure all data is written with
sync
- Remove USB Drive from computer after you get command line back
If the DMG was bootable, you now have a bootable USB.
Links
unix/apple_osx/dmg.txt · Last modified: 2020/10/10 22:22 by rodolico