Posts Tagged admin

Space disappearing on Mac

One day I noticed that the free space started to disappear on my macbook pro (and even deleting files did not free any byte), I had a difference in 100Gb  between the commands `sudo du -shg /` (space used) and `df -h` (actually free available space).  After hours of googling I’ve managed finally to fix the issue (found out that the space disappeared because my time machine worked in a wrong way ) doing the following

  • Disabling time machine in System Preferences
  • Using command line utility tmutil `tmutil thinlocalsnapshots / 1000000000 1` to shrink the space used by time machine
  • Rebooting the mac into the save mode and staying there for about 5 minutes

Making that note just in case I have that problem again to spare the time but in hope that I do not need to use it anymore ( but probably it will help somebody else). I faced this time machine issue first time for 7 years of Macbook usage 😦

, , , , , , , ,

Leave a comment

Delete certificates from System Roots in Keychain Access on Mac

Before you start deleting certificates from System Roots in your Keychain Access, make sure that you know what you are doing as you can harm your mac if you will delete some essential certificates.

You have been warned 🙂

1. Reboot mac in recovery mode (Hold cmd+R) during restart

2. Start terminal and switch off System Integrity Protection running the command

csrutil disable

3. Reboot in normal mode

4. Start keychain access and find the certificates you want to delete, check its name or unique fingerprint (Right click -> Get info -> Common name or SHA1)

5. Use command line below to delete the certificate using common name:

sudo security delete-certificate -c Common-Name /System/Library/Keychains/SystemRootCertificates.keychain

Or command line below if you are using SHA1 (delete all the spaces in SHA1 fingerprint before running the command)

sudo security delete-certificate -Z SHA1-fingerprint /System/Library/Keychains/SystemRootCertificates.keychain

6. Reboot your mac in recovery mode again (Hold cmd+R)

7. Start terminal and switch on System Integrity Protection running the command

csrutil enable

8. Reboot in normal mode

, , , , , , , , ,

Leave a comment