- Joined
- Jun 14, 2019
- Messages
- 23
- Motherboard
- Lenovo Mahobay
- CPU
- i5-3470T
- Graphics
- HD 2500
- Mac
-
- Mobile Phone
-
*** Mini-Guide ***We are now using @byteminer's EFIClone from his GitHub repository. Instructions are provided in the spoiler below. Note that the script has TEST_SWITCH set to "Y". This puts the script in dry-run mode in which it will only log the files to be deleted and copied, but will not delete or copy any files.
Mojave Users: Configure Carbon Copy Cloner for One-Key Bootable Backup
These instructions are for Mojave (10.14.x) users only. Catalina users should refer to the Mini-Guide below.
Update 8-Mar-2020:
Your first cloning operation should be run with TEST_SWITCH set to "Y". Then examine EFIClone.log as described at the bottom of the procedure to ensure that only files in the source and target EFI partitions are listed in the log. If files from any other disks or partitions are listed in the log, then STOP AND POST YOUR EFIClone.log file. However, if the log looks good, then edit the script, change TEST_SWITCH to "N" at the top of the file and save. The file can be found by selecting Utilities --> Reveal CCC's Scripts Folder from within Carbon Copy Cloner. Edit the file located in the Finder window that opens and save it with TEST_SWITCH changed to N.Prerequisites: These steps are only performed once on a new SATA SSD.
- Purchase or use a 2.5-inch SATA SSD that is large enough to hold everything in your Mojave OS disk. The backup disk only needs to be as large as the amount of space used on the source disk. If the source disk is 1TB, but only 100GB is used, then a 128GB backup SSD is sufficient.
- Purchase or use a USB 3 external SSD enclosure. These can be purchased from Amazon for under US$10. Here's an example.
- Install the SATA SSD into the USB 3 enclosure and connect the USB 3 cable to an available blue, yellow or red USB 3 port on the Hackintosh.
- Run Disk Utility, select View --> Show All Devices, and click on the parent name of the external USB SSD. Double-check that all of these steps have been followed; ask for help if necessary.
- Select Erase and make sure that a dialog appears with 3 options:
- Name: Select something like "Mojave Local Backup".
- Format: Select "APFS" (the first item in the pop-up menu).
- Scheme: Select "GUID Partition Map". This option is necessary so that an EFI partition gets created.
- Click Erase at the bottom right of the dialog.
- Check that Carbon Copy Cloner has Full Disk Access by selecting Grant Full Disk Access to CCC... as shown:
![]()
Your SATA SSD will be divided into a primary APFS partition and a secondary EFI partition. When formatting is complete, only the APFS partition will be mounted.
Now we're ready to set up our one-key backup task in Carbon Copy Cloner. This task will copy everything from the APFS and EFI partitions to the external USB SATA SSD.
Step 1: Create Backup Task
Step 2: Attach EFIClone.sh script for automated backup of EFI partition
- Run Carbon Copy Cloner (CCC) and create a new backup task by selecting your Mojave SSD as the SOURCE disk and your external USB SATA SSD as the DESTINATION disk. Note that you must select the currently booted Mojave SSD as the Source disk.
- Click on ADVANCED SETTINGS to expand that section, but don't make any changes there yet.
- Give the task a name on the left side panel.
- Compare your screen with the screenshot below. I've named my task Full Mojave Local Backup.
![]()
- Download EFIClone.sh by clicking here and selecting the green button Clone or download as shown:
View attachment 453650- IMPORTANT NOTE: Because this file is downloaded from the web, it may automatically receive a "quarantine" flag in macOS. Simply run Terminal, "cd" to the folder containing the file, and type
xattr -d com.apple.quarantine EFIClone.sh
. Then quit Terminal and continue to next step.- Open Finder and navigate to the folder containing this file.
- From Carbon Copy Cloner's Utilities menu, select Reveal CCC's Scripts Folder as shown.
![]()
- Drag and drop EFIClone.sh into the Scripts folder. Mojave will ask for authentication, so enter your password when requested. The Scripts folder should look like this:
View attachment 453651- Now we need to fix ownerships and permissions, which is done easily from the same Utilities menu. When this menu is now selected, notice that the last option has changed to Secure CCC's Scripts folder. Choose this item now.
![]()
- Great. We're nearly done. Now let's attach our script to the backup task by clicking the folder icon next to AFTER COPYING FILES --> Run a Shell Script and selecting EFIClone.sh.
View attachment 453653- Verify that your screen matches the items in the red box below.
View attachment 453654- Save the task by pressing CMD-S or File --> Save.
Step 3: Test Run
- Make sure that the external USB SATA SSD is mounted.
- Click the Clone button at the bottom right of the CCC window.
- From the Utilities menu, select Terminal to open a Terminal window.
- In the Terminal window, type
tail -f /EFIClone.log
.- When the main APFS partition has been backed up, CCC will invoke the EFIClone script. At that time you will see detailed logs messages in the Terminal window.
- Press CONTROL-C to stop the log display and quit Terminal.
- When the CCC backup task is complete, press OK at the top right.
- Use Clover Configurator or EFI Agent to mount the EFI partition of the external USB SATA SSD.
- Open the CLOVER folder on that partition and check that everything has been copied.
- Finally, reboot your machine and press F12 at the BIOS splash screen to select the USB SSD as the boot drive.
- From the Clover Boot Menu, select "Boot macOS from Mojave Local Backup" (replace "Mojave Local Backup" with the actual name you gave to the USB SSD).
- Make sure Mojave can boot up fully. Then reboot, disconnect the USB SSD, and boot from the internal Mojave SSD.
Keep your bootable USB SSD up to date by running CCC periodically. Simply boot from the normal internal disk, mount the USB SSD, and run the CCC backup task. It will mount both the source and destination EFI partitions automatically and then dismount both EFI partitions after the clone is complete.
If your clone or backup disk is internally mounted (always present in the system), it may be a good idea to disable Spotlight search on that drive because it's just a duplicate. This can be done from System Preferences --> Spotlight as follows:
View attachment 431606
I have followed this guide before and it worked great. But on a new system I'm building, the backup clone doesn't seem to work on its own. When I boot to Clover on the internal disk, I can open MacOS on the backup just fine. But when I boot to Clover on the backup disk, Clover recognizes MacOS on both the disks (see photo attached), but it can't actually initialize the boot sequence on either one (see second photo attached).
I tried updating Clover to 5xxx but got the same result. Any suggestions?