Skip to content

Instantly share code, notes, and snippets.

@dbaba
Last active October 10, 2020 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbaba/840037e02bcef127acef86236dc92759 to your computer and use it in GitHub Desktop.
Save dbaba/840037e02bcef127acef86236dc92759 to your computer and use it in GitHub Desktop.
Clean-Reinstall Catalina without losing the User Data when Time Machine is unavailable.

Symptoms

  • Upgrading a Mac from Catalina 10.15.6 to 10.15.7 failed with a dialog saying "An error occurred while generating the kernel cache" having "Restart" button.
  • The Mac was no longer able to start in Safe Mode (seemed to cause a kernel panic).
  • It could start in all Recovery Modes (⌘+R/option+⌘+R/Shift+option+⌘).
  • But installing Catalina with retaining the user data ALWAYS failed with the same error in each Recovery Mode.
  • It could not boot macOS in an external drive (ALWAYS failed)

What I want to do

  • To clean-install Catalina to the Mac without losing the user data (Time Machine is not available)

Prerequisites

  • The Mac to be clean-installed => (A)
  • External Drive (same or larger capacity of the Mac drive) => (B)

Step-by-step

Restore the user data volume to the extenal drive

  1. Connect (B) to (A)
  2. Start (A) in Reocovery Mode (⌘+R)
  3. Open "Disk Utility"
  4. Choose (B) volume and click Restore
  5. Choose "Macintosh HD - Data" volume for a source
  6. Click Restore
  7. Shutdown after restoration

Clean-install Catalina

  1. Disconnect (B) from (A)
  2. Start (A) in Reocovery Mode (⌘+R)
  3. Open "Disk Utility"
  4. Choose a physical drive in (A)
  5. Click Erase to remove ALL volumes in the drive
  6. Quit "Disk Utility" then back to the recovery menu (macOS Utilities)
  7. Start "Reinstall macOS"
  8. Choose the erased drive for the destination
  9. Shutdown after the installation

Migration Assistant to import the user data

  1. Connect (B) to (A)
  2. Start (A) without any modification keys
  3. Follow the instructions by the setup assistant and you can find "Migration Assistant" while the setup process.
  4. In "Migration Assistant", choose "From a Mac, Time Machine backup or startup disk" and coninue.
  5. Select (B) as a migration source.
  6. Select all folders to transfer and continue.
  7. After finishing the migration, the Setup Assistant asks you to set a password for the imported user.
  8. Enter Appl ID if necessary
  9. Then setup is done and Login screen appears. After logging in, you can see all apps and user data.

Refferences

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment