Have a damaged Macbook or iMac? In want of a recent macOS installation to repair it however solely have entry to a Linux PC? Don’t fear! Thanks to the Dmg2Img software, it’s doable to make a macOS installation disk on Linux.

Please remember the fact that the Dmg2Img software doesn’t work 100% of the time. Use at your individual threat!

Set up Dmg2Img

Earlier than having the ability to create a new installation picture, you will need to set up the Dmg2Img software on your pc. On this part of the tutorial, we’ll go over how to set up Dmg2Img on most Linux working methods, together with Ubuntu, Debian, Arch Linux, Fedora Linux, OpenSUSE and even from supply.

Ubuntu

To put in Dmg2Img on Ubuntu, you’ll want first to allow the “Universe” software program repository. To allow it, open up a terminal window and enter the next command into it.

sudo add-apt-repository universe

sudo apt replace

With Universe working, you’ll give you the chance to set up Dmg2Img with the Apt package deal supervisor.

sudo apt set up dmg2img

Debian

Dmg2Img is on the market on Debian Linux within the “Main” software program repository. To put in it, launch a terminal window with Ctrl + Alt + T or Ctrl + Shift + T. Then, enter the next Apt-get command into the terminal window.

sudo apt-get set up dmg2img

Arch Linux

Arch customers can set up Dmg2Img via the AUR. To get the app put in, launch a terminal. Then, as soon as it’s opened up, use the Pacman packaging device to set up each the Base-devel and Git packages.

sudo pacman -S git base-devel

With the packages put in, it’s time to use the git clone device to obtain the Dmg2Img snapshot from the Arch Linux AUR.

git clone 

After the git clone command winds up, transfer the terminal window into the brand new “dmg2img” folder on your pc.

cd dmg2img

Lastly, use the makepkg command to construct and set up Dmg2Img on your Arch Linux PC.

makepkg -sri

Fedora

Dmg2Img is on the market to Fedora Linux customers via the normal software program sources. To put in it, launch a terminal window by way of Ctrl + Alt + T or Ctrl + Shift + T. Then, enter the next Dnf packaging command.

sudo dnf set up dmg2img -y

OpenSUSE

Not like a lot of different Linux distributions on this checklist, Dmg2Img isn’t accessible for OpenSUSE releases immediately. As an alternative, if you happen to’re wanting to get the app working, you will need to obtain an RPM file from the web and cargo it up.

In accordance to our testing, Dmg2Img works high quality on each OpenSUSE Tumbleweed and OpenSUSE Leap 15.0. To get the RPM downloaded, launch a terminal by urgent Ctrl + Alt + T or Ctrl + Shift + T. Then, use the wget command under.

OpenSUSE Tumbleweed

wget ftp://ftp.pbone.web/mirror/ftp5.gwdg.de/pub/opensuse/repositories/filesystems/openSUSE_Tumbleweed/x86_64/dmg2img-1.6.5-1.4.x86_64.rpm

OpenSUSE Leap

wget ftp://ftp.pbone.web/mirror/ftp5.gwdg.de/pub/opensuse/repositories/filesystems/SLE_12/x86_64/dmg2img-1.6.5-1.2.x86_64.rpm

With the RPM file downloaded, use the Zypper package deal supervisor to load up Dmg2Img onto your Linux PC.

sudo zypper set up dmg2img-*.x86_64.rpm

Generic Linux

The supply code for the Dmg2Img software is up on Github. Higher but, there are detailed directions on how to compile it from the supply code. Should you’re utilizing a Linux working system that’s lesser-known, follow this link, and also you’ll give you the chance to get it going!

Burn to USB – Dmg2Img

Now that the DMG2Img software is ready up, we will use it to burn a DMG file. To begin, place your macOS picture file on the Linux pc. Then, comply with the steps under to make a bootable disk.

Step 1: Plug in a appropriate USB stick into the pc. Ensure that it’s giant sufficient — at the very least 8 GB in dimension.

Step 2: Launch a terminal window on your Linux pc by urgent the Ctrl + Alt  + T or Ctrl + Shift + T on the keyboard.

Step 3: Use the Dmg2Img program to convert your macOS DMG file to a burnable ISO file. Remember the fact that /path/to/image_file.dmg is the precise location of the DMG file on your Linux pc, and /path/to/image_file.iso is the placement you’d like to save the brand new macOS ISO file. Make certain to change each of these traces within the command under.

2Q==

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

Step 4: As soon as the Dmg2Img software is finished changing your macOS DMG file to a Linux-compatible ISO file, run the lsblk command and decide what your USB’s drive label is. On this instance, the drive label is /dev/sdd. Yours will differ.

lsblk

Need assistance discovering out what your USB stick’s drive label is on Linux? Try our submit about discovering arduous drive data on Linux! It covers how to use lsblk intimately so that you could shortly discover details about arduous drives and different detachable units.

Step 5: Use the DD command to burn the brand new macOS ISO file to the USB drive. Remember the fact that this command wants to run with sudo or it’ll fail!

Keep in mind, on this instance that the USB is /dev/sdd. Please make certain to substitute of=/dev/sdd within the command under to the drive label of the USB stick on your system.

sudo dd if=/path/to/image_file.iso of=/dev/sdd

When the DD command finishes writing, the terminal can be usable once more. From right here, unplug the USB stick out of your pc and use it to re-install macOS on your Apple gadget!



Source link

Share.
Leave A Reply

Exit mobile version