Apple Hardware Test now in ROM?

I note that the Apple Hardware Test can be run on a new MacBook simply by pressing D during startup; the DVD is not needed, so apparently it's now built into the computer's ROM? Does anyone know if this is now true of all Mac models, and when this became standard?

MacBook Pro 17" 2.16GHz, Mac OS X (10.5.2), 2GB RAM, 160GB HD, SuperDrive

Posted on Aug 23, 2008 3:46 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 23, 2008 5:42 PM

Well, I guess I've answered my question, or part of it anyway. I went to the Apple Manuals page, downloaded the last several manuals for the MacBook and MacBook Pro, and checked what they say about the Apple Hardware Test. The Mid-2007 MacBook manual says to "Insert the Mac OS X Install Disc 1 that came with your computer," while the Late-2007 manual simply says to "Restart your MacBook while holding down the D key." For the MacBook Pro, it's the Early-2008 model that no longer needs the Install Disc. The same research could be done for other models (which I deal with rarely).

Whether the Apple Hardware Test is in ROM or on some hidden partition on the HD I don't know; but the latter seems unlikely, as it would then be deleted if you erase the HD and install from an off-the-shelf OS X package (rather than doing a software restore from the discs that came with the computer), or if you replace the drive with a non-Apple label one. It's not much code, I'm sure (the interface is primitive, and it does only one thing); it could easily be in ROM.

This is a great idea I wish Apple had thought of years ago, as old Macs seldom come to me with their original Install discs. Apple has made AHT disc images for some older models available for download, but only those whose AHT was on a separate CD; for models where AHT is on the Install DVD, you have to have it to do the test. I suppose it might be possible to dig into the DVD and find the invisible AHT partition and copy it to a CD, but I don't have the skill to do so.
27 replies
Question marked as Top-ranking reply

Aug 23, 2008 5:42 PM in response to HandyMac

Well, I guess I've answered my question, or part of it anyway. I went to the Apple Manuals page, downloaded the last several manuals for the MacBook and MacBook Pro, and checked what they say about the Apple Hardware Test. The Mid-2007 MacBook manual says to "Insert the Mac OS X Install Disc 1 that came with your computer," while the Late-2007 manual simply says to "Restart your MacBook while holding down the D key." For the MacBook Pro, it's the Early-2008 model that no longer needs the Install Disc. The same research could be done for other models (which I deal with rarely).

Whether the Apple Hardware Test is in ROM or on some hidden partition on the HD I don't know; but the latter seems unlikely, as it would then be deleted if you erase the HD and install from an off-the-shelf OS X package (rather than doing a software restore from the discs that came with the computer), or if you replace the drive with a non-Apple label one. It's not much code, I'm sure (the interface is primitive, and it does only one thing); it could easily be in ROM.

This is a great idea I wish Apple had thought of years ago, as old Macs seldom come to me with their original Install discs. Apple has made AHT disc images for some older models available for download, but only those whose AHT was on a separate CD; for models where AHT is on the Install DVD, you have to have it to do the test. I suppose it might be possible to dig into the DVD and find the invisible AHT partition and copy it to a CD, but I don't have the skill to do so.

Aug 24, 2008 2:08 PM in response to HandyMac

Well, I've tried some experiments:

1) Removed the hard disk from the MacBook, and tried starting up while holding down the D key. Question mark icon. So apparently the AHT is not in ROM, but ensconced somewhere invisibly on the HD.

2) Put the HD back in, started the MacBook from a standard, late-2007 retail 10.5.1 Install DVD (not the Install/Restore DVD that came with it). No AHT of course. And when it started up, the backlight went dark. Shining a lamp on the screen and looking from an angle, I was able to see enough to erase the HD. And tried starting again with the D pressed. Question mark icon. So apparently the AHT is not in a special HD partition that persists even when the HD is erased.

3) Installed 10.5.1 on the MacBook HD using the standard 10.5 Install DVD (not the Install/Restore DVD that came with it); once again, running the MacBook from that DVD turned the display backlight off. Then started the MacBook with the D key pressed. Question mark icon. So the standard, retail 10.5 Installer doesn't install the AHT.

4) Started the MacBook from its own Install/Restore DVD, and restored the factory HD setup. When setup was finished, shut down and started again pressing the D key. Apple Hardware Test (v.3A143) appeared.

Conclusion: Apple Hardware Test is on the hard disk, not in ROM, installed as part of the software specific to this model. If the disk is erased and System software is installed from a generic 10.5 DVD - for instance, because the original Install/Restore DVDs have been lost - AHT will not be installed. So the instructions in the manual apply only so long as the original disk setup (or a restoration of same using the original DVDs) remains. Otherwise the original Install Disc #1 will be required to run Apple Hardware Test.

Aug 31, 2008 1:29 PM in response to HandyMac

Came across this Apple article, which clarifies the matter:
http://docs.info.apple.com/article.html?artnum=306568

Some Intel-based Macs ship with Apple Hardware Test and Mac OS X 10.4.x preinstalled on the hard drive. If an Erase and Install installation of Mac OS X 10.5 Leopard is performed using a retail Leopard installation disc, Apple Hardware Test will be erased and not reinstalled on these Macs.

If you're in this situation and need to use Apple Hardware Test, simply start from the DVD that came with your computer (not the Leopard installation disc) while holding the "D" key. Apple Hardware Test will run from the DVD.

Aug 31, 2008 4:42 PM in response to Malcolm Rayfield

Malcolm Rayfield wrote:
I am hoping someone will point out HOW to embed AHT on any hard disk drive. Without having to revert back to the original OS CD (or DVD) that shipped with the particular Mac.

If you install OSX from the install DVD that came with the computer (not a retail copy), it should install AHT on the hard drive along with OSX.

I can confirm that. I've reinstalled the OS on my mac pro a couple of times and I can boot into AHT without the install DVD.

Aug 31, 2008 5:15 PM in response to Malcolm Rayfield

+If you install OSX from the install DVD that came with the computer (not a retail copy), it should install AHT on the hard drive along with OSX.+

This is true only for the latest model Macs, e.g. MacBook late 2007, MacBook Pro early 2008. As I noted above, when this feature was introduced in each Mac model can be deduced by checking the instructions in the manuals, which can be downloaded in PDF form (if you need to know about models other than your own).

Aug 23, 2008 4:26 PM in response to The hatter

Well, I just started a new MacBook, with nothing in the drive, held down the D, and after a delay (slightly longer than with the DVD in the drive) AHT appeared. And that's what the manual says to do; no mention of the DVD. The manual for my 2006 MacBook Pro says to insert the DVD first, but that instruction is missing in the manual for the new MacBook.

Aug 24, 2008 2:19 PM in response to HandyMac

P.S.: Also, of course, if you're running the Apple Hardware Test because the MacBook won't start up, starting with the D key but without the DVD may not work. The AHT software may well work even when the main System is messed up, but if a serious hard disk problem is involved it may not. Thus I'd have to say the instructions in the manual are inadequate; they should say "If the Apple Hardware Test does not appear, try again after inserting Install Disc #1" or something similar. More complete (though not entirely clear) instructions are in the AHT Read Me on the Install DVD, but of course if you can't start the computer, you can't read the AHT Read Me.

Aug 31, 2008 1:45 PM in response to HandyMac

Put this into the Terminal.app and hit the return key:

*open /Library/Documentation/"User Guides And Information.localized/Apple Hardware Test Read Me.app"*

Note the second paragraph: *+You may be able to start up your computer with Apple Hardware Test even if the machine will not start up under the Mac OS X.+*

And, under Using AHT:

*1. Restart your computer, holding down the “D” key while the computer restarts.*

*2. When the Apple Hardware Test language chooser screen appears, select the language appropriate for your locale, and press the Return key or click on the right arrow button.*

*3. If your computer is not supported by this version of Apple Hardware Test, an error dialog will be displayed. You should Shut Down the computer, locate the correct Mac OS X installation DVD containing Apple Hardware Test for this computer, and repeat the above steps.*

*4. If your computer does not restart to Apple Hardware Test:*
*a) Restart your computer with the Mac OS X installation DVD containing Apple Hardware Test. This should be the same DVD this document resides on. Hold down the “D” key while the computer restarts.*
*b) If your Mac has a Firmware Password enabled you need to disable it first using the Firmware Password Utility when booted from the Mac OS X installation DVD.*

*5. When the Apple Hardware Test main screen appears, follow the onscreen instructions.*

Aug 23, 2008 5:32 PM in response to The hatter

Yeah, I learned this by accident, when I got into AHT mode the other day and suddenly was shocked to discover Install DVD #1 lying next to the Mac... :-O

As for the "hidden partition", short of disconnecting the HDD, maybe using a mechanic's stethoscope while starting up and cycling thru AHT's options, to listen for drive access? Although I would be inclined to think this must be in firmware; otherwise, how could you consistently test for HDD failure?

Aug 24, 2008 5:05 AM in response to HandyMac

The manual for my early 2008 MacPro says "..To Use Apple Hardware Test: (1) Disconnect...devices.. (2) Restart your MacPro while holding down the D key (3)When the Apple Hardware Test chooser screen appears, select the language..."

So it seems to be on disk or rom for the Mac Pro also. I will test it IDC. More folk will have done boot drive switches on the Mac Pro than the other machines so a boot drive switcher might care to report. If anyone can calculate the likely effect on a hidden disk partition of cloning as against archive and install etc we might get to know where the routine is. There may be other stuff there as well.

Aug 24, 2008 7:20 AM in response to Robert Newall

UEFI is pretty powerful, so it doesn't surprise me, just didn't realize Apple started using it in this manner.

The new 45nm Xeon 54xx series, aka "Harpertown" Shared 6MB (24-way set associative)
http://www.anandtech.com/IT/showdoc.aspx?i=3162&p=9

12MB L2 - Each set of two cores has a total of 6MB of L2, which brings the total L2 cache up to 12MB. Anandtech


Harpertown has a larger L2 cache -- 6 MB versus 4 MB. Plus the North Bridge now has a 24 MB snoop filter which maintains an index of all cached data in each processor. - http://www.barefeats.com/harper.html

Amit Singh: http://www.osxbook.com/book/bonus/
http://www.osxbook.com/book/bonus/chapter4/firmware/
http://www.osxbook.com/book/bonus/chapter4/firmware/#INNOVATE

http://www.uefi.org/
http://en.wikipedia.org/wiki/UEFI

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Apple Hardware Test now in ROM?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.