Install macOS 10.15 using a bootable installer

    1. Get an external hard drive that has at least 12 GB of available storage and plug it in your Mac.
    2. Launch the Disk Utility app and erase your hard drive selecting Mac OS Extended format.
    3. Open Terminal (Applications > Utilities).
    4. Paste this command and press Enter:
  1. sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
  2. If prompted, enter your administrator password and press Enter again.
  3. When Terminal says “done”, your hard drive should have the same name as the installer you downloaded (for example, Install macOS Catalina).
  4. Open System Preferences > Startup Disk. Choose your bootable installer as a startup disk and press Restart.
  5. Your Mac should start up to macOS Recovery.
  6. Make sure your Mac has an internet connection to download firmware updates (you can use the Wi-Fi menu in the menu bar).
  7. In the Utilities window, select Install macOS.
  8. Your Mac will then start installing macOS Catalina and will restart when it’s done.

How to fix spotlight search on a macOS

Important: We have a current backup of your Mac.

Open Terminal:

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

macOS not shutting down since upgrading to new security upgrade

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/*

Reboot system.

How to use Time Machine to back up your Mac to a Windows shared folder – macOS

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

Read more

macOS Software Update via Terminal

To get a list of available software updates, type the following command:

softwareupdate -l

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

Read more

If unable to unmount drive on macOS

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.