CHAPTER 13
Troubleshooting Your MacBook
To keep your MacBook running well, you need to perform basic maintenance, such as emptying the Trash, updating OS X and your apps with the latest fixes, and backing up your files. You may also need to troubleshoot your MacBook, solving problems such as corrupt preferences files, disk permission errors, or drive failure.
Reclaim Space by Emptying the Trash
Keep Your MacBook Current with Updates
Control Checking for Software Updates
Troubleshoot Corrupt Preference Files
Run First Aid from Within OS X
Using OS X’s Help System
OS X has a built-in help system that enables you to solve problems that you encounter when using your MacBook and its software. You can launch the help system from the menu bar of the Finder. You can then either browse or search to find the information you need.
Most apps that run on OS X include help files. In such apps, you can use the Help menu at the right end of the menu bar to browse or search the help files.
Using OS X’s Help System
Click anywhere on the desktop.
The Finder becomes active.
Click Help.
The Help menu opens.
Click Mac Help.
The Mac Help window opens.
You can click OS X overview to display an overview of OS X.
You can click Show topics to display a sidebar on the left of the window containing a navigable hierarchy of help topics.
Click the search box.
Start typing a question or some keywords.
Search results appear as you type.
Click the appropriate search result.
The Mac Help window shows a list of topics related to your search terms.
Click the topic you want to view.
Mac Help displays the topic.
Click a link to open another topic, an app or utility, or a web page.
Click Back (
) to return to the previous screen you viewed.
Click Home (
) to return to the Help Center screen.
When you finish using Help, click Close (
).
The Mac Help window closes.
Reclaim Space by Emptying the Trash
In OS X, the Trash is a receptacle for files you delete from your MacBook’s drives. Any file you place in the Trash remains there until you empty the Trash, or until the Trash runs out of space for files and automatically deletes the earliest files it contains; until then, you can recover the file from the Trash. You can reclaim drive space by emptying the Trash manually.
Reclaim Space by Emptying the Trash
Empty the Trash
Click Trash (
) on the Dock.
Note: If the Trash icon on the Dock is the empty Trash can (), the Trash is already empty.
Look through the files and folders in the Trash to make sure it contains nothing you want to keep.
To quickly view the contents of a file, use Quick Look. Click the file, and then press .
Note: You cannot open a file while it is in the Trash. If you want to open a file, you must remove it from the Trash.
Click Empty.
A dialog opens to confirm that you want to permanently erase the items in the Trash.
Note: You can turn off the confirmation of deleting files. Click Finder and then click Preferences. Click Advanced and then click Show warning before emptying the Trash ( changes to
).
Click Empty Trash.
OS X empties the Trash and then closes the Finder window.
Restore a File or Folder to Its Previous Location
In the Trash folder, click the file or folder.
Click Action (
).
Click Put Back.
Note: You can also press + click an item and click Put Back on the contextual menu.
OS X restores the file or folder to its previous location.
Note: To move a file from the Trash to another folder, drag the file to that folder. For example, you can drag a file to the desktop.
Keep Your MacBook Current with Updates
The App Store app built into OS X includes a feature for keeping your MacBook, its operating system, and your App Store apps up to date. You can use the App Store app to check for updates and to install them. You can choose which updates to install.
Your MacBook must be connected to the Internet when you check for updates and download them. You can install most updates when your MacBook is either online or offline. Some updates require restarting your MacBook.
Keep Your MacBook Current with Updates
A badge on the App Store icon indicates the number of updates available.
Click App Store (
) on the Dock.
Note: If App Store () does not appear on the Dock, click Launchpad (
) on the Dock and then click App Store (
) on the Launchpad screen.
Note: You can also open the App Store app by clicking Apple () and then clicking App Store.
The App Store app opens.
Click Updates.
The Updates pane appears.
App Store automatically checks for updates.
If updates are available, the Updates Available list shows the details.
Note: If the message No Updates Available appears, go to step 5.
You can install an individual update by clicking Update. If the update requires a restart, click Restart.
You can click More to display full details of the update.
To install all the updates, click Update All.
Note: You can set the App Store app to install updates or remind you later. Click next to Update All and then click Try in an Hour, Try Tonight, or Remind Me Tomorrow, as needed.
If installing the updates requires a restart, App Store displays a dialog.
Click Restart.
You can click Later and then click Install in an Hour, Install Tonight, or Remind Me Tomorrow.
OS X installs the updates, restarting your MacBook if necessary.
App Store appears and checks for updates.
Note: If App Store finds further updates, click Update All to install them.
Click Close (
).
The App Store app closes.
Control Checking for Software Updates
OS X’s App Store app enables you to check easily for software updates available through the App Store. These include updates for OS X itself, the apps that Apple releases, and third-party apps sold through the App Store. To keep your MacBook running smoothly and protect it from both online and offline threats, you should apply software updates when they become available.
You can configure the App Store app to check automatically for updates on a schedule. You can also check for updates manually.
Control Checking for Software Updates
Click System Preferences (
) on the Dock.
Note: You can also open System Preferences by clicking Apple () on the menu bar and then clicking System Preferences.
The System Preferences window opens.
Click App Store (
).
The App Store preferences pane appears.
Click Automatically check for updates (
changes to
).
Click Download newly available updates in the background (
changes to
) if you want to download updates.
Note: Downloading updates in the background is usually helpful, because you can then install the updates quickly.
Click Install app updates (
changes to
) if you want to install app updates automatically.
Click Install OS X updates (
changes to
) if you want to install operating system updates automatically.
Click Install system data files and security updates (
changes to
).
Click Automatically download apps purchased on other Macs (
changes to
) if you want to automatically add apps you buy on other Macs using the same Apple ID to your MacBook.
You can click Check Now to check for updates.
Click Purchases and In-app Purchases (
) and then click Always Require or Require After 15 Minutes, as needed.
Note: For security, choose Always Require for both Purchases and In-app Purchases and Free Downloads.
Click Free Downloads (
) and then click Require Password or Save Password, as needed.
Click Close (
).
System Preferences closes.
Back Up Your Files
To enable you to keep your valuable files safe, OS X includes an automatic backup application called Time Machine. Time Machine automatically saves copies of your files to an external drive or an AirPort Time Capsule. You can choose what drive to use, how frequently to back up your files, and what folders to include.
To protect your data, you must back up your files. Time Machine is the most convenient choice because it takes only a few minutes to set up and thereafter runs automatically.
Back Up Your Files
If you will use an external drive for Time Machine, connect the drive to your MacBook.
Press
+ click System Preferences (
) on the Dock.
The contextual menu appears.
Click Time Machine.
The System Preferences window opens, showing the Time Machine preferences pane.
Click the switch to move it to On.
The Select Disk dialog opens.
Click the drive or AirPort Time Capsule you want to use for backup.
You can click Encrypt backups (
changes to
) to encrypt your backups.
Click Use Disk.
The Select Disk dialog closes.
You can click Show Time Machine in menu bar (
changes to
) to give yourself easy access to Time Machine.
Click Options.
The Options dialog opens.
Click Back up while on battery power (
changes to
) if you want your MacBook to perform backups even when it is running on battery power.
Click Notify after old backups are deleted (
changes to
) if you want notifications of deletions.
Click Add (
).
A dialog opens.
Select each drive or folder you want to exclude from backup.
Click Exclude.
The dialog closes, and Time Machine adds the items to the Exclude These Items from Backups dialog.
Click Save to close the Options dialog.
Click the System Preferences menu and click Quit System Preferences to close System Preferences.
Recover Files from Backup
OS X’s Time Machine feature enables you to recover files easily from your backups. So when you delete a file by accident, or discover that a file has become corrupted, you can recover the file from backup by opening Time Machine. You can recover either the latest copy of the file or an earlier copy.
If you still have the current copy of the file that you recover, you can choose whether to overwrite that copy or keep it. Time Machine refers to this copy as the “original” file.
Recover Files from Backup
Note: This section shows you how to recover files using the Finder. To recover old data within Contacts, Calendar, or Mail, open the appropriate app and make it active before giving the Enter Time Machine command.
Click Time Machine (
) on the menu bar.
The Time Machine menu opens.
Click Enter Time Machine.
Note: If the Time Machine status icon does not appear on the menu bar, click Launchpad () on the Dock, and then click Time Machine (
) on the Launchpad screen.
Time Machine opens.
The front window shows your MacBook’s drive or drives in their current state.
Backups of the selected drive or folder appear in the windows behind it, newest at the front.
The timeline on the right shows how far back in time the available backups go.
Click the date or time from which you want to recover the files or folders.
Time Machine brings the backup you chose to the front.
Select the item or items you want to restore.
Click Restore.
Time Machine disappears.
If restoring a file will overwrite the current version, the Copy dialog opens.
Choose how to handle the file conflict:
Click Replace to replace the current file with the older file.
Click Keep Original to keep the current file.
Click Keep Both to keep both versions of the file. Time Machine adds “(Original)” to the name of the current version.
Recover When OS X Crashes
Normally, OS X runs stably and smoothly, but sometimes the operating system may suffer a crash. Crashes can occur for various reasons, including power fluctuations, bad memory modules, an app having become corrupted, or problems with disk permissions.
Your MacBook may detect that the crash has occurred and display an informational message, but in other cases the MacBook’s screen may simply freeze and continue displaying the same information. Normally, you can recover from a crash by turning off your MacBook’s power and then turning it on again.
Recover When OS X Crashes
Recover from the Screen Freezing
If the pointer shows the “wait” cursor that looks like a spinning beach ball, wait a couple of minutes to see if OS X can recover from the problem. If the pointer has disappeared, go straight to step 2.
To verify that your MacBook is not responding, press keys on the keyboard or move your fingers on the trackpad.
Press and hold
+
and press the MacBook’s power button.
If the MacBook does not respond to that key combination, press and hold the MacBook’s power button for about 4 seconds.
The MacBook turns off.
Wait at least 8 seconds, and then press the power button once to restart the MacBook.
Recover from a Detected Crash
When your MacBook detects an OS X crash, it dims the screen and displays a message in the center.
Read the message for information.
Press and hold the MacBook’s power button for about 4 seconds.
The MacBook turns off.
Wait at least 8 seconds, and then press the power button once to restart the MacBook.
Note: Depending on how your MacBook is configured, OS X may log you in automatically or display the Login dialog.
The login screen appears.
Click your username, and then log in to your account as normal.
Troubleshoot Corrupt Preference Files
OS X and many apps enable you to set preferences to customize the way they run. Each app stores its configuration in a special file called a preference file. Sometimes a preference file becomes corrupted, which may prevent the app from running properly or cause it to crash.
To fix the problem, you delete the preference file. This forces the app to create a new preference file from scratch with default settings. When the app is running properly again, you can choose your custom settings again.
Troubleshoot Corrupt Preference Files
Quit the problem app if it is running. Click the app’s menu, such as the Contacts menu for the Contacts app, and then click the Quit command, such as Quit Contacts.
Note: If you cannot quit the app by using its Quit command, force quit it. Press + click the app’s Dock icon and click Force Quit on the contextual menu.
Click an open space on the desktop.
The Finder becomes active.
Click Go.
The Go menu opens.
Press and hold
.
The Library item appears on the Go menu.
Note: OS X hides the Library item on the Go menu until you press .
Click Library.
The contents of the Library folder appear.
Click Preferences.
The contents of the Preferences folder appear.
Click the preference file for the problem application. See the tip in this section for help on identifying the file.
Note: If the application has two or more preference files, move them all to the Trash.
Click Action (
).
The Action menu opens.
Click Move to Trash.
OS X moves the file to the Trash.
Start the application.
The application creates a new preference file containing default settings.
Set preferences in the application. In most applications, click the application’s menu and click Preferences to open the Preferences window.
The application saves your preferences in the new preference file.
Run First Aid from Within OS X
OS X includes automatic tools for fixing minor problems that may occur as your MacBook runs. Normally, the operating system resolves these problems in the background without your involvement.
However, sometimes your MacBook may exhibit disk problems that these automatic tools cannot fix. In such cases, you can run the First Aid tool from within OS X to try to resolve the issue.
Run First Aid from Within OS X
Click Launchpad (
) on the Dock.
The Launchpad screen appears.
Press
.
Launchpad displays only those items that include a word starting with D.
Click Disk Utility.
Disk Utility opens.
Click your MacBook’s drive.
The controls for manipulating the drive appear.
Click First Aid.
The Would You Like to Run First Aid dialog opens.
Click Run.
Disk Utility searches for problems and resolves any that it can resolve. The process may take several minutes.
Click Show Details if you want to see details of the repairs.
Disk Utility informs you when the First Aid process is complete.
Click Done.
The dialog closes.
Click Close (
).
Disk Utility closes.
Run First Aid from OS X Utilities
If your MacBook will not start, you may be able to fix the problem by running First Aid. To do so, you start your MacBook from the recovery partition, which contains tools called OS X Utilities for recovering from problems. OS X Utilities enables you to launch the Disk Utility tool from outside OS X when the operating system is not working.
Run First Aid from OS X Utilities
Start your MacBook by pressing the power button.
Note: If your MacBook is running, restart it by clicking Apple () and then pressing
+clicking Restart.
At the startup chime, press and hold
+
until the Apple logo appears.
Your MacBook starts from the recovery partition.
The Welcome screen appears.
Click the language you want to use.
Click Continue (
).
The OS X Utilities screen appears.
Click Disk Utility.
Click Continue.
The Disk Utility window opens.
Click your MacBook’s internal drive.
The controls for manipulating the drive appear.
Click First Aid.
The Would You Like to Run First Aid dialog opens.
Click Run.
Disk Utility analyzes the drive and repairs problems, displaying its progress as it does so.
Disk Utility informs you when the First Aid process is complete.
Click Done.
The dialog closes.
Click Disk Utility.
The Disk Utility menu opens.
Click Quit Disk Utility.
Disk Utility closes, and the Install OS X dialog opens.
Click OS X Utilities.
The OS X Utilities menu opens.
Click Quit OS X Utilities.
A confirmation dialog opens.
Click Restart.
Your MacBook restarts into OS X from the internal drive.
Reinstall OS X to Solve Severe Problems
If your MacBook suffers severe software damage, OS X may not be able to run. When this happens, you can fix the problem by reinstalling OS X. You may also need to reinstall OS X if your MacBook runs but crashes frequently and you are not able to restore stability by repairing the permissions or repairing the disk.
OS X includes a recovery partition that enables you to begin reinstalling the operating system. Once connected to the Internet, your MacBook can then download the files it needs from Apple’s servers and complete the reinstallation.
Reinstall OS X to Solve Severe Problems
Press the power button.
At the startup chime, press and hold
+
until the Apple logo appears.
Your MacBook starts from the recovery partition.
The Welcome screen appears.
Click the language you want to use.
Click Continue (
).
The OS X Utilities screen appears.
Click Reinstall OS X.
Click Continue.
The Install OS X screen appears.
Click Continue.
A dialog opens telling you your computer’s eligibility will be verified with Apple.
Click Continue.
The Software License Agreement screen appears.
Click Continue.
A confirmation dialog opens.
Click Agree.
The screen for selecting the installation disk appears.
Click the disk.
Click Install.
Note: If the Sign In to Download from the App Store dialog opens, type your Apple ID and your password, and then click Sign In.
Install OS X begins downloading the components it needs to install OS X.
After the reinstallation finishes and your MacBook restarts, log in. You can then access your files as before.