Mac OS X Basic Troubleshooting & Maintenance Tips
By © 2005-2007 G. BALLARD main website
This Apple Macintosh information how to perform general maintenance, back ups and troubleshooting guide tutorial is about Mac OS X 10.5 Leopard, OS10.4 Tiger, 10.3 Panther, 10.2 Jaguar, OS on the generation 2008 Mac Pros, four G4, and generation five G5 Altivec CPU workstations, including dual core quad core eight core processors quad processors Macbook Pro laptops Intel-based Intel Xeon Mac Pro IntelXeon MacPro computers.
WARNING TO THE BRAVE SOULS UPGRADING TO APPLE’S NEW 10.5.0 LEOPARD OR ANY NEW OPERATING SYSTEM OR HARDWARE (please read rant at page bottom).
My free online basic troubleshooting guide:
When a computer starts acting flaky — unstable, crashing, freezing or generally misbehaving — it’s a corruption issue 98 percent of the time (unless we’ve recently done something to it, and there is 98 percent of our clue). After I’ve ruled out the two-percent by removing whatever I recently added, I will start with the Mac OSX basics:
FIRST, before we start any troubleshooting or System or hard drive maintenance procedures, it is important that we BACK UP OUR DATA to other drives or CD or DVD media. This is important because the disk may be hanging on by a thread and the most basic procedure may lose the drive and data forever.
Be sure to back up all critical MAIL folders, DOCUMENT folders, FINANCIAL data files, iPHOTO and iTUNES folders and PREFERENCE files.
FREE UNUSED DISK SPACE
SECOND, be sure you have a lot of free unused disk space on your hard drives — a hard drive that fills up and turns flaky is nearly impossible for me to get back to normal without Erasing reformatting.
If you run Photoshop scratch disk off the boot drive, I would recommend at keeping at least 80 gigabytes Available space (this free space need to be relatively unfragmented for Photoshop to run properly).
If all you are doing is Microsoft Word and E-mail, I would keep a minimum of 30 GB free unused space available — this allows the operating system vital unused space to write its swap files, virtual memory scratch disk.
Full hard drives also tend to fragment system and data files and greatly slow disk access down, too. Check free space by 1) click on hard drive icon, 2) Command+I (File> Get Info), and note Available space.
On the Windows PC XP and Vista Platforms, open space can be found under Properties.
HARD DRIVE FRAGMENTATION
DEFRAGGING a boot hard disk is generally a Windows “PC” thing, but we Apple Mac users do need to watch how we manage our data.
The best way to defragment a Mac harddrive is to copy our data folders-files over to another disk, delete the originals, empty the trash completely, and then copy them back onto the drive.
Mac OS-X is pretty good at defragging its operating system on its own (unless the hard drive has filled up and forced it to write into a fragmented state) so generally we do not have to worry about defragging the System and Applications folders.
In the case the Mac OS has been badly fragmented — but is still healthy and functioning proper — I would opt to CLONE it to another harddrive, and either swap the Cloned disk back, or Erase the fragmented drive and Clone it back in an unfragged state (keeping the other drive as a backup).
MAC VIRUSES SOFTWARE OS-X
It has been widely stated on the internet and Apple forums there are no known computer viruses for the Mac OSX operating system — so worrying about getting a virus is probably needless worry for most of us — search Google for more facts and information about Mac viruses, Trojans, prevention. What we do need to watchout for is passing infected files that we download or receive in emails over to Windows users where they can do serious damage.
Tip #1 Create a New “Spare User” Account:
Create a new SPARE USER with ADMIN privileges (System Preferences> System> Accounts).
A fresh NEW USER ACCOUNT gives us a new, clean, untouched set of User Preferences to work with and trouble shoot — this is usually the first move I make in troubleshooting because it resets all applications to default (in case I have set a bad preference), and it also rules out any whacky or corrupted user Preferences.
Then, WHEN something isn’t working correctly
Log Out of our problem User Account, and Log In to a new Spare User account:
- If the problem has NOT cleared in the Spare User, then it is most likely a System-wide, or hardware problem — remove 3rd-party hardware and suspected bad preferences from the Hard Drive> Library> Preferences folder.
- If the problem has cleared in Spare User, then the main user has corruption, or bad fonts activated that doesn’t exist in our user account — remove suspected bad preferences from the Hard Drive> Users> Name> Library> Preferences folder.
If the problem prevents us from logging into our user account, but can still login to Spare User, I would suspect a conflict or preference associated with my Log In items (disable login items if you can get logged in, or navigate to the login System or User preference “loginwindow.plist” and trash it).
Troubleshooting Preference Files:
If our user account is corrupted (problem clears in Spare User), the first thing to consider is a damaged preference file in our normal user account. One workflow technique is to have previously backed up our Preferences folder. Then we simply start swapping the suspect preferences with our back ups.
Or else we start trashing the most likely preferences and rebooting or logging out/in….
Another troubleshooting technique is to drag our user entire Preferences folder out of the our user Library and onto the Desktop. Then Log Out and back into our user account. If the problem has cleared, one of the old Preferences is bad (we can continue replacing the new with the until the problem returns and nails the bad preference file).
It may be easier to just make a new account and trash the corrupted one, though, which is probably what I would do.
Hold down Shift for a “Safe Boot”:
Starting with 10.2 Jaguar, Mac OS X features a “Safe Boot/Safe Mode.” Safe Booting — rebooting from a complete ShutDown with Shift key down — forces a directory check of the boot volume and loads only required kernel extensions and Apple start-up items.
What is Safe Boot, Safe Mode? (Mac OS X)
Safe Boot is a special way to start Mac OS X 10.2 or later when troubleshooting. Safe Mode is the state Mac OS X is in after a Safe Boot.
Starting up into Safe Mode does three things to simplify the startup and operation of your computer:
• It forces a directory check of the startup volume.
• It loads only required kernel extensions (some of the items in /System/Library/Extensions).
• It runs only Apple-installed startup items (some of the items in /Library/StartupItems and /System/Library/StartupItems – and different than login items).
• Mac OS X 10.4 Tiger only: It disables all fonts other than those in /System/Library/Fonts .
• Mac OS X 10.4 Tiger only: It moves to the Trash all font caches normally stored in /Library/Caches/com.apple.ATS/(uid)/ , where (uid) is a user ID number such as 501.
• Mac OS X 10.4 Tiger only: It disables any Login Items.
Taken together, these changes can work around issues caused by software or directory damage on the startup volume.
Some features don’t work in Safe Mode….
Run Disk Utility’s Repair Permissions:
Starting with 10.2 Jaguar, Mac OS X features a Repair Permissions routine located in Hard Drive> Applications> Utilities> Disk Utility> First Aid.
PERMISSIONS REPAIR is to be ran from the boot OS System while booted from that system. In other words, navigate to Disk Utility and run Repair Permissions on the boot hard drive.
Run Disk Utility’s Repair Disk:
See above screen picture for panel for Repair Disk, highlighting any non boot volume or hard drive will active the Repair Disk option.
Repairing the BOOT hard drive or volume REQUIRES us to boot from another disk, hard drive, hard disk or removable disk:
- Insert the Mac OS X Install CD or DVD.
- Restart Mac, immediately after the bong, hold down the C key until the Apple logo appears.
- When the Installer reaches the INTRODUCTION phase, click on Utilities at the top of the screen, and drop down to Disk Utility.
- Click the First Aid tab.
- Highlight the boot hard drive volume or partition.
- Click Repair Disk.
- Repeat steps 5 and 6 until the scan comes up all clean and good (and run it one more time).
- Quit Disk Utility and the OS Installer and reboot.
- Firewire Target Disk Mode is another option we should know about.
Repairing other non-boot drives or volumes:
- Repair Disk may be ran on any non-boot from the boot hard drive (there is no need to boot off the Install CD/DVD to repair non-boot drives, partitions or volumes).
- See above screen picture for Repair Disk panel, highlighting any non-boot volume or hard drive will active the Repair Disk option.
DISK WARRIOR — 3rd Party Disk Utilities
If Apple’s REPAIR DISK and FSCK-Y cannot repair the problem, we need to try third-party DISK UTILITIES like Disk Warrior alsoft.com. But BEWARE of 3rd-party disk utilities, especially running Norton Utilities on OS X disks because Norton is not compatible with them (search GOOGLE for the OSX-Norton issues). Warning: NEVER USE NORTON DISK UTILITIES on an OS X hard drive.
I know a lot of people recommend running DISK WARRIOR on healthy, properly-functioning boot drives — including system/applications hardrives that may need only minor repairs or routine maintenance — but I only recommend using Disk Warrior as a last resort AFTER everything has been properly backed up to other disks.
I say this because it makes more comonsense to let Apple’s Disk Utility maintain the Operating System and boot drive, rather than some extreme third-party disk utility — in the four or five times I have used Disk Warrior in the past several years, it was to repair problems Disk Utility couldn’t fix (and it is a very useful tool for that).
Booting in Single User Mode and Running fsck -y:
fsck (file system check) is a start-up Unix utility ran from the command line.
Here is Apple’s technical article on running FSCK-Y.
Apple tech article states that Disk Utility Repair Disk is the same as running as fsck, yet many users have said they prefer fsck -y from a Shut Down. In the linked Apple tech article, Apple states, “For Mac OS X 10.4 or later, you should use Disk Utility.”
In any case, we do NOT need an Apple boot Install CD or DVD to run fsck -y.
Here’s how to fsck -y:
- Shut Down Mac completely, Restart your Mac.
- Immediately press and hold down the Command and S keys until text begins to scroll on screen. In a few more seconds, the Unix command line prompt (%).
- Type fsck –y (fsck space minus y).
- Press Return key.
- Text will start updating the progress…if there is damage, the final line will say ***** FILE SYSTEM WAS MODIFIED *****.
- If you see that message, REPEAT Steps 3 and 4 again and again until that message no longer appears. Having to run fsck more than once is normal, because the first run’s repairs may uncover additional problems.
- The end should read: “The volume <name of disk> appears to be OK.”
- Then type “reboot”, then press Return to boot back off the hard drive.
This is a big deal and very important maintenance routine.
If the Macintosh doesn’t run 24/7, or if it is set to sleep at night, we should look into a utility like COCKTAIL to manually perform the usual daily/weekly/monthly UNIX maintenance scripts that the operating system enables to clean up the Mac during the wee AM hours of the morning. Cocktail is a general purpose utility for Mac OSX that will run cron scripts (among other things).
Running Apple’s COMBO System Updaters:
System Preferences> Software Update can be flaky so a proven troubleshooting technique is to manually download Apple’s COMBO UPDATES (PPC & INTEL). The 10.4.11 10.5.6 Combo Update, for example, can be installed right on top of an existing 10.4.11 or 10.5.6 install.
The advantage or pro of using the Combo Updates is it goes in and replaces the updated parts of the system. The con is the Combo Updates are usually over over 100MB to download.
Again, running a Combo Updater is something to try before giving up on a flaky installed system.
FREQUENTLY ASKED QUESTIONS FAQ KEYBOARD SHORTCUTS PLUS USEFUL WHY ABOUT HOW TO INFORMATION, TIPS On USING MAC OSX:
- How to boot off a bootable DVD CD?:
Restart, Power On, immediately press and hold down the C key until the logo appears on screen.
- How to reset, zap PRAM?:
Shut Down, Restart immediately press and hold down the Option+Command+P+R keys until three or four startup tones are heard.
- Press and hold Option key down while booting/restarting computer will display icons for all bootable volumes, at which time select any bootable system.
- How to run Disk Utility Repair Disk?:
See above Run Disk Utility Repair Disk.
- How to run Disk Utility Repair Permissions?:
See above Run Disk Utility Repair Permissions.
- How to Safe Boot in Mac OS X?:
See above Hold Down Shift Key for a “Safe Boot.”
- How to create a new user?:
See above Create a Spare User Account.
- How to install OS X?:
Boot off an OSX Install CD or DVD and follow on-screen directions.
- How to do an ARCHIVE INSTALL?
I don’t recommend Archive Install, aka clean install (it is easier and far less complicated for me to Erase and Restore my hard drive, or Erase and start-from-scratch), but you may get lucky with an Archive Install.
- SETUP ASSISTANT / MIGRATION ASSISTANT
I never liked these OS-X assistants FAQ, because they always seemed problematic (and I’ve learned how to manually BackUp and Restore my iTunes, email, network settings) — your mileage may vary.
For help with troubleshooting FONT ISSUES.
BACK UP – Cloning HD:
Backing Up is likely the most important point of this article and it is so easy these days that even casual users can learn how to make restorable back ups with minimal effort — so take a few minutes to figure out what backing up computers is all about.
The point is:
WHEN an install starts acting flaky or the hard drive actually dies, simply replace and Erase-reformat the hard drive, and RESTORE it back to a trustworthy state — but we will need to have already backed up or cloned the install to restore a working bootable system.
We may also pull good Preferences from cloned drives (so our Preferences are backed up in the process). It is easy to drag a set of Photoshop preferences out of the cloned back up and copy them over to a working install, for example, if you dread re-configuring or troubleshooting Adobe Photoshop preferences.
What is a cloned hard drive?:
A cloned hard drive is an exact bootable copy, a mirror image, of source hard drive.
Typically that means my working boot drive with all my applications installed, and all my preferences set up.
A cloned drive will boot and/or restore another drive EXACTLY as its original source drive.
This means — if my working boot drive fails, I can swap it with the cloned hard drive and get right back to work in a few minutes.
I can also use my backup cloned hard drive to RESTORE a freshly-formatted hard drive and get back to work in an hour or so on my fully-tuned working restored hard drive.
How to Back Up or Clone a boot system-applications hard drive:
I have only used Carbon Copy Cloner CCC and it has worked so flawlessly for me that I haven’t tried other backup options under OS X, including Super Duper application (that many people recommend on the Apple forums) and Apple’s own Time Machine.app that is included with Leopard 10.5x.
When to back up?:
I make my first clone right after I have installed my main applications, ran all the updaters, and set all their preferences, but if your install is running stable now, NOW is the time to back up your bootable system hard drive before you learn this lesson the Hard Way!
I generally make a second clone after I have installed minor applications like bookkeeping and font management apps, printer and scanner drivers, system haxies, games, and plug-ins.
There is one complication I should mention — how I use Carbon Copy Cloner — I boot off a third “maintenance” hard drive, launch Carbon Copy Cloaner, and select my Source and Target hard drives (using three drives in the process).
This three-drive, backup-cloan process may or not be necessary, but it is how I prefer to do it because it frees up any items in use over both Source and Target drives.
An external FireWire drive can also be used for backing up the entire Tiger or Leopard install if you don’t have a free internal drive available.
In fact, my “maintenance” boot system resides on an external FireWire drive, and I also Clone boot systems to FireWire drives, and Restore bootable hard drives from cloned FireWire drives.
I prefer to keep data files (Music, Pictures, font libraries, Documents, backups) on other drives so the boot drive keeps only system and application files. This keeps my system backup small and apart from my data files:
For example, in my workflow, if my Music Folder holds 200 gigabytes of music, and my Pictures Folder holds 800 gigabytes of Photoshop files, and my Documents Folder holds 300 gigabytes of Final Cut Studio projects, I don’t want them stored on my boot drive or contained in my cloned hard drive (for obvious reasons).
I prefer to make full complete cloned system hard drive clones versus incremental backups (like how Time Machine app works).
The bottom line is create the types of backups you understand and use the workflows that fit your needs, but take a few minutes now to figure out and setup a back-up strategy in place.
Reformat, Erase & Start From Scratch:
Some people fear initializing, reformatting, erasing their computer and starting over with a clean install. My experience is that spending two or eight hours reinstalling everything is a lot better than wasting days, weeks, months pulling hair out and losing work on a corrupted system or bad hardware.
One very useful TIP I use for a fast answer is to Erase the Photoshop Scratch Disk or another HD, and TEMPORARILY install OSX, run the OSX updaters and install only the suspect application — this takes about two hours and will generally rule out corruption on the normal boot drive by booting off a new fresh system…an external FireWire hard drive works fine for this fire drill.
WARNING TO THE BRAVE SOULS UPGRADING TO APPLE’S NEW 10.5.0 LEOPARD operating system. There are good reasons experienced users avoid brand new Operating Systems, but if you must be on The Bleeding Edge, consider my free advice:
1) Clone your old boot drive to another hard drive for BACKUP in case you need to RESTORE the old system/applications. Carbon Copy Cloner and Super Duper apps are both proven reliable products. An external FireWire drive can be used for backing up the entire Tiger or Leopard install if you don’t have a free internal drive available.
2) Erase and reinstall 10.5 Leopard from scratch. I know a lot of people will just upgrade (install) on top of their 10.4 system — and this is one of the Leopard features Apple is recommending — but this has always proven less reliable and problematic. Plus, installing Leopard onto its own partition-volume-harddrive gives me the option to simply boot off the reliable 10.4 system drive and return to my good working system.
4) Avoid Setup Assistant to port over old files, settings, preferences. I know this is supposed to work, and again Apple is touting this procedure, but it has proven unreliable and problematic — spend a little extra time to keep your new installation pristine by building the 10.5 install from scratch.
3) Inevitably, we are going to hit BUGS with Leopard 10.5 that will break our computers. Whether the new operating system breaks our printer drivers, network, fonts, Microsoft and Adobe applications, or FireWire devices, it is commonsense not to bet our sanity on a new operating system without a reliable back up.
Personally, I will install Leopard onto a separate hard drive and give it a go, but I would not consider thinking 10.5.0 Leopard is ready to replace my working 10.4.10 Tiger install — why do you think they call it The Bleeding Edge?