Run Apple Hardware Test

an article added by: Heather Rafail at 06052007


In: Categories » » MAC » Run Apple Hardware Test

computer starts up," or words to that effect.) Find this disc now. (I'll wait while you root through your attic or basement to find it hidden in the bottom of a box somewhere.)
Back already? Super. You have in your hands a very special program. Apple Hardware Test can run only when you start up from the CD or DVD it came on; don't bother trying to copy it to your hard disk. This program performs a series of diagnostic tests on your Mac's hardware, including the AirPort card, logic board, hard drive, RAM, modem, and video RAM. It doesn't repair anything, and it doesn't look for problems such as directory errors that are the province of Disk Utility (described in the next section). But it can identify subtle hardware defects that could later lead to serious problems. Whether your Mac is fresh out of the box or years old, you owe it to yourself to make sure its major components are in good health, and this is the easiest (and cheapest) way to do so.

Note


Apple Hardware Test isn't the only tool that can check your RAM. Among the other utilities that can do this are TechTool Pro (www.micromat.com; $98) and Rember (www.kelleycomputing.net/rember/; free). I've personally had bad RAM that Apple Hardware Test could identify while these others could not, whereas other Take Control authors have had the opposite experience. Your mileage may vary!

To run Apple Hardware Test, follow these steps:


1.

Insert the disc with Apple Hardware Test on it into your Mac and restart, holding down the Option key until icons appear representing the available startup volumes.

2.

Click the Apple Hardware Test icon, and then click the right arrow.

3.

After the program loads, select a language and click the right arrow.

4.

On the Hardware Tests tab, click Extended Test.

5.

Take a nice hot bath or enjoy a stroll around your neighborhood. This test takes a while! The screen says, "Estimated time: 1015 minutes, or longer depending on the amount of memory installed." Take the "or longer" part seriously. On a fairly fast test machine with 2 GB of RAM, the test took almost an hour and 45 minutes.

6.

If all is well, the word "Passed" appears next to all the applicable tests in the Test Results area. If not, a failure message appears; if this happens, look in the About the Test and Results area for advice.

7.

Click Restart to restart your computer.

I recommend running the test again after installing RAM or any other new hardware inside your computer, or if you begin to have inexplicable problems that ordinary disk utilities do not solve.

Be Sure You Have Enough RAM

The most important thing you can do to speed up your Mac and reduce crashes is to be sure it contains enough RAM. Few new Macs ship with what I consider "enough." Even though Mac OS X and most applications can run in as little as 512 MB, in my experience performance degrades quickly with that amount of RAM when you have numerous applications and windows open at once.
How much RAM should you have? The answer depends on the type of Mac, the way you work, and your budget. On the one hand, I think everyone should have at least 1 GB (or the maximum their machine supports, if less). On the other hand, more isn't necessarily better. For example, only a few people running the most memory-intensive applications would benefit from putting the maximum of 16 GB in a Power Mac G5.

In general, if your Mac can hold 2 GB or less, I recommend maxing it out (budget permitting). Go above 2 GB if you spend all day working with heavy-duty photo, video, or audio applications, if you run high-end scientific software that performs complex mathematical operations, or if your computer functions as a server in a high-demand environment. Run Disk UtilityYou know the old saying: "If it ain't broke, don't fix it!" With computers, though, things can be broken without manifesting any obvious symptoms. You can nip many such problems in the bud with a simple procedure that looks for, and fixes, common disk errors that can crop up over time without your knowledge. I recommend doing this not only as an initial step, but also monthly.
To repair your disk, follow these steps:

1.

Start up your Mac from media other than your regular startup disk that also contains Disk Utility. This could be, for example:

  • A bootable duplicate of your startup disk stored on an external FireWire hard drive (or a USB 2.0 hard drive, if you have an Intel-based Mac), a second internal drive, or a second partition of your main disk
  • A Mac OS X installation DVD or CD
  • A TechTool Protégé device, to which you've copied Disk Utility (www.micromat.com)

"ch01note08">Note
You can't repair the disk from which Mac OS X is running (or the disk from which Disk Utility is running, if it's not the same one); that would be somewhat like trying to perform brain surgery on yourself. You can, however, verify the disk (by clicking Verify Disk in Step 4) to determine whether there are problems that Disk Utility could repair.

2.

Run Disk Utility. (If running from a cloned hard disk, you can find it in /Applications/Utilities. If running from a Mac OS X installation disc, click through the language selection screen and then choose Utilities > Disk Utility.)

3.

In the list on the left side of the window, select your main startup volume (the one you want to test), as in

4.

On the First Aid tab, click Repair Disk.

Disk Utility looks for common errors and repairs them if possible. Ordinarily, it displays a message saying that repairs were completed or that no repairs were necessary. In the (rare) event that Disk Utility encounters a serious problem it cannot solve, you may need to use a commercial repair tool such as DiskWarrior (www.alsoft.com; $80).

aMake Sure Scheduled Maintenance Tasks Run

Mac OS X includes a tiny Unix utility called periodic whose purpose is to perform a variety of cleanup tasks, such as deleting old log files that would otherwise take up unnecessary space on your disk and updating the index that the Unix locate command uses to find files in the Terminal utility. The periodic utility can perform any of three sets of tasks. Once a day, periodic is supposed to run "daily" tasks; once a week, "weekly" tasks; and once a month, "monthly" tasks. (These names are more or less arbitrary; if, for example, you ran the monthly tasks every week, no harm would result.)
The periodic program doesn't launch itself, though; running it at the proper times is the job of another program, called launchd (under Tiger; in earlier versions of Mac OS X a utility called cron told periodic when to run). Apple set the launchers to run the periodic scripts in the middle of the night, so that they wouldn't slow down other things your Mac might be doing. The problem is that if your Mac happens to be off or asleep at the scheduled time (as it is for most of us), the scripts can't run. Tiger's launchd utility was supposed to be smart enough to notice that it had missed a scheduled task and run it the next time your Mac became active. Unfortunately, as of Mac OS X 10.4.4, launchd is flaky: sometimes the periodic scripts run (though possibly at completely unpredictable times) and sometimes they don't.
Tip
To learn more about launchd, which is quite useful despite its limitations, see an article I wrote for Macworld magazine: "Launch Your Mac" at www.macworld.com/2006/01/secrets/februarygeekfactor/.

In short, unless you leave your Macintosh on and awake all the time, the periodic command needs a bit of help to do its thing. The easiest solution is to download any of several programs that enable you to run the maintenance scripts manually at any time or, in some cases, to schedule them for times you know your Mac will be available. Try one of these:

  • Anacron: This free utility runs the maintenance scripts whenever they're overdue, with no user intervention required. You can find it at http://members.cox.net/18james/anacron-tiger.html.
  • Cocktail: Cocktail (www.maintain.se/cocktail/; $15), provides a single, simple interface for performing a wide range of maintenance tasks, including running the maintenance scripts, deleting cache files and old logs, adjusting hidden Finder, Dock, Safari, and Exposé settings, and more. Some tasks can run on a recurring schedule.
  • Mac HelpMate: This utility (www.macworkshops.com/machelpmate/; free, donations accepted) can run the maintenance scripts manually or on a schedule. It also deletes various caches, adjusts hidden Finder and Dock settings, displays your drives' S.M.A.R.T. status disk usage and system uptime, and performs numerous other maintenance tasks.
  • MacJanitor: If you want nothing more than a simple utility that lets you run the daily, weekly, and monthly maintenance scripts manually, the free MacJanitor (http://personalpages.tds.net/%7ebrian_hill/macjanitor.html) does that nicely.
  • MainMenu: Like most of the other utilities in this list, MainMenu (www.santasw.com; free, donations accepted) performs a wide variety of functions, including running the maintenance scripts, clearing caches, and deleting log files. Unlike the others, it puts all these commands into a single, always-accessible menu, so that you can run any of them with a single click.
  • OnyX: Another multipurpose utility, the free OnyX can run the maintenance scripts manually (but not on a schedule), delete various caches and log files, adjust hidden Finder, Dock, and Safari settings, display log files, run Unix commands, and display disk usage and system uptime, among other tasks (www.titanium.free.fr/pgs/english.html).

Warning! The utilities I list here are among dozens of tools that provide a pretty GUI wrapper to Unix commands. With all such programs, you should be careful not to click buttons blindly; because Unix commands can theoretically do just about anything, you could cause damage if you don't know what you're doing.

Install Antivirus Software

If this article were about PC maintenance, one of the first steps would have been to install antivirus software. For Windows users, malicious software (or malware) has become epidemic in recent years, leading to untold grief and loss of time, money, and data. Among the varieties of malware are viruses (and their close cousins worms and Trojan horses), spyware (programs that spy on your computer usage, collecting sensitive personal data), and pop-up ad programs. Luckily, very little malware runs on Mac OS X: as of the time I wrote this, I could count on one hand the programs of this sort that have been found "in the wild."
Even though Mac users have been fortunate so far, we would be wrong to assume our computers are immune to infection. Sooner or later, someone is bound to come up with malicious software that does serious damage to Macs, and when that happens, those with enough foresight to have installed antivirus software will be much more likely to continue merrily with their work while the rest of us struggle to restore our systems.

A Conversation about Periodic Maintenance Tasks

Should you worry about running the periodic maintenance tasks at all? The experts had this to say:
Kirk McElhearn: This is one of my bugbears. In very few cases are these routines essential and, with all due respect, I think it's excessive to suggest otherwise. Too many users think that these routines can solve problems; I've never seen a case where this is true. At bestunless you use the locate commandthey're placebos. They can clean out some log files, but again, only in some cases (if you run a server) does this make much of a difference.
Andy Affleck: I've found that the real advantage to running these tasks regularly is the log rotation. When I ran them manually I saw some space gains on my disk. It wasn't huge, but it was noticeable.
Dan Frakes: I agree with Andy: for most people it won't help much, but it will clean up log files. And if you use locateor the free GUI equivalent, Locator (www.sebastian-krauss.de/software/)it's useful to have the locate database updated regularly.
Chris Pepper: Right, and remember, the locate database is as relevant to SSH or a BBEdit shell worksheet as it is to Terminal.
Joe Kissell: I use locate all the time, so this is a big deal to me. For what it's worth, updating the locate database is one of the weekly script items. All three script types (daily, weekly, and monthly) rotate certain logs. The daily tasks also back up your NetInfo database and delete certain "scratch" files, such as temporary files used when you send faxes. The monthly tasks include generating reports of system usage for each user.

Furthermore, many kinds of malware spread via email, so you could unwittingly serve as a carrier by forwarding messages containing viruses to your Windows-using friends.
Your best defense is to load antivirus softwareand keep it up to date. Developers release regular updates (to handle the latest threats), and you must be certain to configure your preferences to download them automatically as soon as they appear.


Note


Although having antivirus software is better than not having it, and having up-to-date antivirus software is better still, there are no ironclad guarantees. A particularly wily virus might still sneak by. So you should still exercise caution, and especially avoid opening iChat or email attachments from unknown sources.

Antivirus software available for Mac OS X includes the following:

legal notice

Our website is not responsible for the information contained by this article. Web-articles is a free articles resource.
Suggestion: If you need fresh, daily updated content for your website, feel free to use our service. Click here for more information.

Useful tools and features

Link to this article from your page    Send this article to you or to a friend
If you like this article (tutorial), please link to it from your web page using the information above.

related articles

1. Install the Latest Version of Mac OS X
Whether you've just unpacked a shiny new Mac or you're hoping to get an older machine into shape, your first step should be to perform some initial cleanup and preparation tasks. These steps will help your Mac run better right now, and will make ongoing maintenance tasks easier. Install the Latest Version of Mac OS X If your Mac is already running the latest and greatest version of Mac OS X, good for you! Skip to the next section. If not, your first step should be to upgrade. Every release of Mac OS X includes d...

2. Clean Out Accumulated Cruft
The term "cruft" is hacker slang for digital detritusobsolete, extraneous, or otherwise useless files that have accumulated on your disk over time and now do nothing but take up space. By removing cruft, you can recover valuable disk space, increase the speed of backups, file searches, upgrades, and disk diagnostics, and reduce the chance of software conflicts. If you have a brand-new Mac, this step may not apply to you, but even a few months of use can generate a surprising amount of cruft. Determining which files you...

3. Use a Surge Protector
If that AC cord coming out of your computer goes directly into a wall socket, you're putting your Mac at the mercy of the power company, your home's wiring, and all the things that can go wrong in between: brownouts, voltage spikes, lightning, you name it. Your Mac's power supply is pretty robust, but a single random power surge can still fry its circuits. Even when the electricity appears to be flowing correctly, imperceptible fluctuations in the current can cause computer components to deteriorate more quickly than normal. So p...

4. Use MAX OS X Software Update to Install Apple Software Updates
Software Update checks for new versions of any Apple software you have installed and (if you set it to do so) downloads them automatically. However, as I mentioned in Download Software Updates , you may wish to hold off on installing the downloaded updates until you have more free time and have checked to make sure they contain no serious flaws. When you're ready to install the updates, follow these steps: 1. Choose Software Update from the Apple menu. Software Update checks for updates and displays a list of any it finds...

5. Why Do Disk Errors Occur
Use Disk Utility's Repair Disk Feature Earlier, I suggested using Disk Utility's Repair Disk feature to preemptively check for and eliminate common disk gremlins (see Run Disk Utility). Because disk errors do creep in during ordinary computer use (seemingly of their own accord), I suggest running Disk Utility and using its Repair Disk command once a month. Why Do Disk Errors Occur? In addition to Disk Utility, numerous third-party utilities check for, and attempt to repair, a wide range of disk errors. I'v...

6. Make Archival Backups to DVD
By now, regular backups are a normal part of your routine: your backup software automatically updates your archives every day and your duplicates once a week, and you diligently rotate backup media offsiteright? Even so, I recommend adding one final element to your backup regimen: archival DVDs. If you've followed my advice, you already have archives of all your important filesgoing back several months or moreon each of two or more hard drives. You also have one or more complete, bootable copies of your main hard di...

7. When Apple Releases a New Version of Mac OS X
As you use your computer, your files gradually become fragmented into smaller segments scattered across your disk. Some people consider this a serious problem and go to great lengths (and expense) to correct it. Before worrying about fragmentation, you should understand how and why it happensand what the real-world consequences are. Pretend, for the sake of illustration, that your hard disk consists of exactly ten blocks, and that initially, your disk contains five small files (A, B, C, D, and E), each of which t...

8. Decide on a Backup Strategy on MAC OS
Most modern hard drives have built-in sensors and monitoring circuitry that form a system called S.M.A.R.T. (Self-Monitoring Analysis and Reporting Technology). The idea of S.M.A.R.T. is to detect the warning signs of potential problems before they occur. Although S.M.A.R.T. cannot detect every possible drive problem, it can provide one very valuable warning: "Your drive is about to have problems, so back it up and repair (or replace) it now!" What does it work with? As of mid 2006, Disk Utility's S.M.A.R.T. indicator works wit...

9. Backing Up a Small Network with MAC OS X
Some backup programs distinguish between incremental and differential archiving schemes. Although not all software uses the terms in exactly the same way, the difference is typically that in an incremental backup, only the files changed or added since the last time the backup ran are added to the archive. With a differential backup, all the files changed or added since the initial full backup are added to the archive. Thus, differential backups take longer to run than incremental backups. This distinction is important when backi...

10. Video and audio backup strategy
Audio or video content you've purchased from the iTunes Music Store (iTMS) differs from music you've imported from CDs you own. Besides the fact that with downloaded files you don't have an original copy to serve as an extra backup, iTMS files include special copy protection to ensure that they can be played only by the purchaser, and only on one of up to five authorized computers. Because iTMS files are especially valuable, you should take extra steps to protect them: Always include iTMS tracks in your archive backup...