These key combinations apply only to Mac computers with an Intel processor.
- Get an external hard drive that has at least 12 GB of available storage and plug it in your Mac.
- Launch the Disk Utility app and erase your hard drive selecting Mac OS Extended format.
- Open Terminal (Applications > Utilities).
- Paste this command and press Enter:
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
- If prompted, enter your administrator password and press Enter again.
- When Terminal says “done”, your hard drive should have the same name as the installer you downloaded (for example, Install macOS Catalina).
- Open System Preferences > Startup Disk. Choose your bootable installer as a startup disk and press Restart.
- Your Mac should start up to macOS Recovery.
- Make sure your Mac has an internet connection to download firmware updates (you can use the Wi-Fi menu in the menu bar).
- In the Utilities window, select Install macOS.
- Your Mac will then start installing macOS Catalina and will restart when it’s done.
This should attempt to install all available updates, and will log errors to /var/log/install.log
sudo softwareupdate --dump-state -i -a
Important: We have a current backup of your Mac.
Now type in the following commands into Terminal, in the exact order they are shown:
sudo mdutil -i off / sudo mdutil -i on / sudo mdutil -E /
The first command turns spotlight off
The second command turns spotlight back on
The final command restarts the spotlight index.
If, after a few minutes, spotlight is still not indexing, try running this command, followed by the three commands above:
sudo rm -rf /.Spotlight-V100
Send this commands via terminal:
rm -rf ~/Library/Caches/* rm -rf ~/Library/Saved\ Application\ State/* sudo rm -rf /Library/Caches/* sudo rm -rf /System/Library/Caches/* atsutil databases -removeUser sudo atsutil databases -remove sudo atsutil server -shutdown sudo atsutil server -ping sudo rm -rf /var/folders/*
diskutil verifyPermissions /
diskutil repairPermissions /
The issue that makes Time Machine more difficult in terms of options for backup locations is that it requires use of Apple’s proprietary HFS+ filesystem. Although I’m certain the HFS+ features that Time Machine uses for file versioning and linking could be “mimicked” for use on other more open filesystems, the reality is that Apple chose HFS+ and supports that filesystem exclusively in Time Machine (in fact as of this writing Apple’s new APFS isn’t even supported for Time Machine backups as of yet).
- Create a Windows share location
- Make the remote share automatically mount
- make Time Machine use the remote share and file
- Check Time Machine
To get a list of available software updates, type the following command:
You will see a list of available updates. You can then install all available software updates with the following command:
sudo softwareupdate -iva
The use of sudo is required to get superuser privileges to actually install the updates. You can also install only the recommended updates with:
sudo softwareupdate -irv
Launch Terminal app in your /Applications/Utilities folder.
Time Machine on or off
sudo tmutil enable sudo tmutil disable
Run a Time Machine backup
Stop a backup
You can try booting from OS X recovery by holding CMD + R at the time of startup. Once booted from OS X recovery, select Terminal from the utilities and then at the unix prompt enter:
- diskutil list
- then press return and look for the disk identifier and enter the following command with the disk identifier
sudo diskutil unmountDisk /dev/(enter here disk identifier name)
- Press return and enter your admin password if prompted. This should unmount all volumes of the physical drive.
- If still the above method didn’t work, then the last option is to force the entire disk to unmount.
- For that using the terminal application again, enter the following command:
sudo diskutil unmount force /dev/(enter here disk identifier name)
- Then press return and enter the admin password if prompted. This will definetely unmount the entire disk and all its related volume.