Tag: hackintosh

Bootable USB Installer for Mac OS

Apple has created a guide here: https://support.apple.com/en-us/HT201372

Their instructions state that you should do download and create the installer only if you are using Sierra (10.12.5), El Capitan or higher (10.11.6).

1.  Download MacOS.
    * El Capitan
        * http://updates-http.cdn-apple.com/2019/cert/061-41424-20191024-218af9ec-cf50-4516-9011-228c78eda3d2/InstallMacOSX.dmg
    * High Sierra
        * https://itunes.apple.com/us/app/macos-high-sierra/id1246284741?ls=1&mt=12
    * Mojave
        * https://itunes.apple.com/us/app/macos-mojave/id1398502828?ls=1&mt=12
    * Catalina
        *  https://itunes.apple.com/us/app/macos-catalina/id1466841314?ls=1&mt=12
Installers for each of these macOS versions download directly to your Applications Folder as an app named Install macOS Catalina, Install macOS Mojave, or Install macOS High Sierra. If the installer opens after downloading, quit it without continuing installation.

Note: El Capitan downloads as a disk image.  Open the disk image which installs an app named Install OS X El Capitan in your Applications Folder.  Create bootable media from this app, not the disk image.

2.  Insert USB Drive, minimum size of 12 GB
3.  Open Terminal.
4.  Type one of the follow into the Terminal, replacing MyVolume with the USB Drive:
    * El Capitan
        * sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia –volume /Volumes/MyVolume –applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app
    * High Sierra
        * sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia –volume /Volumes/MyVolume
    * Mojave
        * sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia –volume /Volumes/MyVolume
    * Catalina
        * sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia –volume /Volumes/MyVolume
5.  Follow the prompts to complete the creation of bootable USB Drive.

Using your Bootable MacOS Drive
1. Plug in your USB Drive.
2. Use Startup Manager or Startup Disk preferences to select the bootable installer as the startup disk, then start up from it. Your Mac will start up to macOS Recovery.

Note: The Internet is required to get information specific to your Mac model, such as firmware updates, not for the installer.

Download Entire Mojave Installer

When downloading the Mojave installer I get a 22.8MB small installer file instead of the 6GB full version.

To build your own full “legit” macOS Mojave installer do the following.

Start the mini installer that you get from the App Store and follow the prompts until you get to the point that it starts counting down to reboot your machine. Quickly CANCEL the reboot.

Once you cancel, you will have the full 6gb installer files since the mini installer downloads all required files. It will create a folder titled “macOS install Data” on the root of your primary hard drive.

Once you have all of the files, you now have to make the installer package by running the following 3 commands in Terminal:

At the command line, first type the following for super user privileges:

sudo -s

mkdir /Applications/Install\ macOS\ Mojave.app/Contents/SharedSupport

cd /macOS\ Install\ Data

find . -mount | cpio -pvdm /Applications/Install\ macOS\ Mojave.app/Contents/SharedSupport

Right click the installer that you originally downloaded from the App Store in your Applications directory and you’ll see that its now 6GB instead of the 23mb or 25mb that you get from the App store.

Source: http://osxdaily.com/2018/09/29/download-full-macos-mojave-installer/

4k Hackintosh with Raedeo 560

As of OS 10.12.6+ AMD graphics cards work out of the box with Hackintosh.  This means sleep and wake work reliably though there is a bit of a delay compared to my actual Mac.

The following is from Hackintosher.
https://hackintosher.com/guides/hackintosh-amd-graphics-cards-sierra-10-12-6/

Step 1. Mount EFI Partition
  1. Download Clover Configurator
  2. Open Clover Configurator
  3. Select Mount EFI under TOOLS
  4. Click Mount Partition for Install macOS….
  5. Click Open Partition (This is your EFI Folder)
Step 2. Verify EmuVariableUefi-64.efi

Some motherboards such as those by Gigabyte and ASROCK will require EmuVariableUefi-64.efi for NVRAM detection, without it you wont get hardware acceleration on your AMD card.

  • Verify file EmuVariableUefi-64.efi exits in location /Volumes/EFI/EFI/CLOVER/drivers64UEFI of your mounted partition.

If it’s not there add EmuVariableUefi-64.efi:

  1. Open Clover Configurator
  2. Mount your EFI Partition
  3. Open config.plist using Clover Configurator
  4. Click Install Drivers on left column of Clover Configurator
  5. Click EmuVariableUefi in bottom left box.
  6. Verify EmuVariableUefi-64.efi exists in /Volumes/EFI/EFI/Clover/Drivers64UEFI/
Step 3. Enabling AMD Cards
  1. Download latest release version of Lilu.kext
  2. Download latest release version of WhateverGreen.kext
  3. Unzip both RELEASE.zip downloads
  4. Copy Lilu.kext and WhateverGreen.kext from their respective RELEASE folders
  5. Place them in EFI/CLOVER/kexts/Other of your mounted EFI partition
Step 4. BIOS Settings
  1. Restart your computer
  2. Enter BIOS
  3. Verify that integrated graphics is disabled (if you can disable it)
  4. Verify that GPU is set to PEG/PCIe priority (This is super important as leaving it on Auto will cause performance issues)
  5. Save & Exit
  6. Boot your hackintosh

I need to make sure the Integrated Graphics is selected on boot:
https://www.tonymacx86.com/threads/radeon-560-must-use-igfx-to-boot-up.243319/

After that’s done….
This also means I finally get 4k @ 60Hz video as my Intel HD530 was not supported.
Make sure your using a display port connection and your ASUS MG24UMonitor is using Display Port 1.2.

Open Display Preferences

With my Windows Style keyboard press alt and click Scaled to get resolution options:

Select 3840 x 2160 and it’s all set.

Backing Up My Hackintosh

My Hackintosh is pretty brittle.  Anytime there’s an update I live in fear of it breaking my system.  So to that end I found it best to just clone the entire drive so that should something go wrong I can just put the entire clone of my drive back.  Since I dual boot I do this in linux, but you could also do it just booting up w/ linux on a usb drive.

To backup and restore my drive I use dd.  Here are the commands, obviously you’ll need to figure out which drive for your particular setup.

Restore:
sudo dd if=/dev/sde of=/dev/sda bs=1M conv=noerror,sync status=progress
Make backup:
sudo dd if=/dev/sda of=/dev/sde bs=1M conv=noerror,sync status=progress


Get a list of which disk is sdX to determine your drives.
sudo fdisk -l

On My Linux Box
sda – osx drive
sde – usb backup drive




Notes:
Cloning an entire hard disk
From physical disk /dev/sdX to physical disk /dev/sdY
# dd if=/dev/sdX of=/dev/sdY bs=64K conv=noerror,sync status=progress
This will clone the entire drive, including the MBR (and therefore bootloader), all partitions, UUIDs, and data.
https://wiki.archlinux.org/index.php/disk_cloning
https://www.tonymacx86.com/threads/backup-hackintosh-bootloader-with-dd-terminal.185484/
https://apple.stackexchange.com/questions/46253/what-is-the-best-way-to-clone-a-disk-between-two-macs?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
> sudo dd if=/dev/rdisk0 of=/dev/rdisk2 bs=1m conv=noerror,sync
When dd finishes you may see an error like this:

dd: /dev/rdisk2: short write on character device
dd: /dev/rdisk2: Input/output error
3726+1 records in
3726+1 records out
500107862016 bytes transferred in 14584.393113 secs (34290619 bytes/sec)

That last error message is actually okay. The last block written was a short block because there wasn’t a full 1MB block to copy. No worries.
Now you’ve got a bit-wise perfect clone of your Macintosh HD drive. Reboot your system using the Macintosh HD drive and enjoy your clone!



Option:
If you want to compress the image to a file
https://superuser.com/questions/1097210/clone-only-space-in-use-from-hard-disk

To generate the image:
## dd probably needs sudo here.
dd if=/dev/sdb bs=32M | gzip -c > /foo/bar/my_image.dd.gz

To write the image back:
## dd probably needs sudo here.
gzip -cd < /foo/bar/my_image.dd.gz | dd of=/dev/sdb bs=32M

These commands might be built without dd, with gzip only. I used dd to ensure 32 MiB buffer.

Advantages:

  • The resulting file is non-sparse, it needs no special treatment.
  • The image size will be reduced even more if the files on your source disk are prone to compression.

Disadvantages:

  • It is hard to access the files within the compressed image without full decompression (some FUSE may be useful, although I’m not sure, never tried; consider a squashfs approach).