Updating boot caches os x
Gonzalo Martinez is the President of Clever Tech, a tech repair business he founded over 5 years ago.
Clever Tech LLC specializes in repairing Apple branded devices like i Phones, i Pads, Macbooks & i Macs.
One way to do this is to simply reboot your system into Safe mode periodically, which among some other built-in maintenance tasks will run the "fsck" command-line tool to check the hard drive for errors and repair them if found.
However, there are several alternative, manual ways to check for and fix hard-drive errors. This is the standard and recommended method for checking the system's hard drive, since the graphical interface is quick and intuitive to use.
Apple recommends using diskutil whenever possible, but sometimes diskutil may show an error it cannot overcome, in which case fsck may be successful.
To use fsck, simply run the following command at the OS X Terminal prompt, changing the volume slice ID to be that of your boot drive: sudo fsck_hfs -f /dev/disk0s2 As with diskutil, this will result in an output that checks the various formatting database files and shows any potential problems.
You may have even seen advertisements for programs that automate these tasks.
While such routines can be beneficial if a system is experiencing slowdowns, and should not adversely affect the system if implemented correctly, there is potential for something to go awry.
While periodic maintenance of your Mac is usually not necessary to keep it running in top shape, one exception is periodically checking your hard drive for errors.Therefore, be sure to run "disktuil list" again before running the command to find out the proper ID to use.Apple has offered a Safe Boot (sometimes called Safe Mode) option ever since Jaguar (OS X 10.2.x).Simply select your boot volume in the device list (this will be the name of your boot drive), and then hold the Option, Command, or Shift key and select the drive device itself, which will have the size and manufacturer in its name.With both of these selected, click the Verify Disk button and the system will check the partition tables and formatting of the drive.
For the second command, VOLUME is some name that will target the boot partition itself, instead of the drive. The first is to use the name of the boot volume, which should be surrounded by quotes if there are spaces in it (or you can properly escape the space characters with a backslash before them).