Apple Hardware Test Download Links
Latest commit ba98221 Oct 12, 2016 @upekkha mention SIP
Permalink
Failed to load latest commit information.
Readme.markdown mention SIP Oct 12, 2016

Readme.markdown

Apple Hardware Test (AHT)

Description

Apple computers ship with a pre-installed suite of hardware diagnostic tools, known as Apple Hardware Test (AHT). In principle you can start them by holding the d key while booting. Newer models support holding option d to load AHT over the internet. Refer to the official Apple documentation for details: Using AHT on Intel-based Macs, Mountain Lion, Mavericks and Yosemite. Apple redesigned the AHT, now called Apple Diagnostics, for Macs introduced after June 2013. Consult the reference codes to interpret the results.

If however, you reinstalled an older computer from scratch, the diagnostic tools might no longer be available. Unless you have the original disks that came with your computer, there seems to be no way to restore the AHT.

It happens that Apple provides disk images with AHT for most computers, but does not make the links publicly available. Various blogs and forums, mostly Riven by Five and MacForum.ro have gathered a list of download links. The rest were obtained by scraping http://download.info.apple.com/Apple_Hardware_Test/ for all the links of the form 0(18|22)-\d{4}-A.dmg.

Even though there's no guarantee that this list is correct or complete, some links can come in very handy to whoever is trying to debug hardware problems.

You can use the following terminal commands to determine the model and board ID of your computer:

sysctl hw.model | awk '{ print $2 }'
ioreg -l | awk -F\" '/board-id/ { print $4 }'

Download the AHT for your computer model and use the contents to restore the /System/Library/CoreServices/.diagnostics folder, then reboot while holding d to start the diagnostic tools. Alternatively you may try with a bootable USB stick, as described below. This is also the preferred way on OS X 10.11 or later, where the System Integrity Protection (SIP) no longer allows writing to system folders.

Note that there is no one-to-one correspondence between hardware model and AHT. For some models no hardware test could be found, while others seem to have multiple AHT. As the differences are not clear, feel free to try them out, to see which one works best for your hardware.

Run AHT from bootable USB stick

  • You need a bootable USB stick, for instance using Disk Utility's Erase with Format: OS X Extended and Scheme: GUID Partition Map.
  • Let's assume the USB stick is mounted under /Volumes/USBstick.
  • Download the AHT for your computer model from the list below.
  • Mount the AHT dmg. Let's refer to the mount point as /Volumes/AHT.
  • Copy the AHT to the USB stick and flag it as bootable
cp -r /Volumes/AHT/System /Volumes/USBstick/
sudo bless --folder /Volumes/USBstick/ --file /Volumes/USBstick/System/Library/CoreServices/.diagnostics/diags.efi --label AHT
  • Insert USB stick in the computer to be tested, boot holding the option key and select the AHT.

    Download Links

PowerMac

PowerBook

iBook

iMac

MacMini

MacPro

MacBook

MacBookPro

MacBookAir

Xserve

Misc

  • unidentified
  • unidentified
  • Bundle
    • MacBook3,1 Mac-F22788C8
    • MacBookPro3,1 Mac-F42388C8
    • MacBookPro3,1 Mac-F4238BC8
    • MacMini2,1 Mac-F4208EAA
    • MacPro1,1 Mac-F4208DC8
    • MacPro2,1 Mac-F4208DA9
    • iMac5,2 Mac-F4218EC8
    • iMac7,1 Mac-F42386C8
    • iMac7,1 Mac-F4238CC8
  • Bundle
    • MacBook3,1 Mac-F22788C8
    • MacBookPro3,1 Mac-F42388C8
    • MacBookPro3,1 Mac-F4238BC8
    • MacMini2,1 Mac-F4208EAA
    • MacPro1,1 Mac-F4208DC8
    • MacPro2,1 Mac-F4208DA9
    • iMac5,2 Mac-F4218EC8
    • iMac7,1 Mac-F42386C8
    • iMac7,1 Mac-F4238CC8
  • Bundle
    • MacBook6,1 Mac-F22C8AC8
    • MacBook7,1 Mac-F22C89C8
    • MacBookPro8,1 Mac-94245B3640C91C81
    • MacBookPro8,2 Mac-94245A3940C91C80
    • MacBookPro8,3 Mac-942459F5819B171B
    • MacPro4,1 Mac-F221BEC8
    • MacPro5,1 Mac-F221BEC8
    • iMac12,1 Mac-942B5BF58194151B
    • iMac12,2 Mac-942B59F58194171B
  • Bundle
    • MacBookAir5,1 Mac-66F35F19FE2A0D05
    • MacBookAir5,2 Mac-2E6FAB96566FE58C
    • MacBookPro9,1 Mac-4B7AC7E43945597E
    • MacBookPro9,2 Mac-6F01561E16C75D06
    • MacBookPro9,2 Mac-7DF2A3B5E5D671ED
    • MacBookPro10,1 Mac-C3EC7CD22292981F
    • MacBookPro10,2 Mac-AFD8A9D944EA4843
    • MacMini6,1 Mac-031AEE4D24BFF0B1
    • MacMini6,2 Mac-F65AE981FFA204ED
    • iMac12,1 Mac-942B5BF58194151B
    • iMac13,1 Mac-00BE6ED71E35EB86
    • iMac13,2 Mac-FC02E91DDD3FA6A4

Hosted on third-party servers

This contains a .pkg that tries to install the AHT to your system folder. Alternatively right-click it to show the package contents and unpack the Archive.pax.gz file inside. The extracted Archive/System/ folder contains the diagnostic tools and can be used to create a bootable USB stick, as with the other .dmg files downloaded from Apple.

  • Bundle
    • MacBook5,1 Mac-F42D89A9
    • MacBook5,1 Mac-F42D89C8
    • MacBook5,2 Mac-F22788AA
    • MacBook6,1 Mac-F22C8AC8
    • MacBookAir2,1 Mac-F42D88C8
    • MacBookPro5,1 Mac-F42D86A9
    • MacBookPro5,1 Mac-F42D86C8
    • MacBookPro5,2 Mac-F2268EC8
    • MacBookPro5,3 Mac-F22587C8
    • MacBookPro5,4 Mac-F22587A1
    • MacBookPro5,5 Mac-F2268AC8
    • MacMini3,1 Mac-F22C86C8
    • iMac9,1 Mac-F2218EC8
    • iMac9,1 Mac-F2218FC8
    • iMac10,1 Mac-F2268CC8
    • iMac10,1 Mac-F2268DC8
    • iMac11,1 Mac-F2268DAE