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
andScheme: 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
- iMac v2.5.1GMc1
- iMac v2.5.2GMc5
- iMac v2.5.3GMc1
- iMac4,1 3A103
- iMac5,1 Mac-F4228EC8
- iMac5,1 Mac-F42786A9
- iMac5,2 Mac-F4218EC8
- iMac6,1 Mac-F4218FC8
- iMac7,1 Mac-F42386C8
- iMac8,1 Mac-F226BEC8
- iMac8,1 Mac-F227BEC8
- iMac9,1 Mac-F2218EA9
- iMac9,1 Mac-F2218EC8
- iMac9,1 Mac-F2218FC8
- iMac10,1 Mac-F2268CC8
- iMac10,1 Mac-F2268CC8
- iMac10,1 Mac-F2268DC8
- iMac10,1 Mac-F2268DC8
- iMac11,2 Mac-F2238AC8
- iMac11,3 Mac-F2238BAE
- iMac12,1 Mac-942B5BF58194151B
- iMac12,1 Mac-942B5BF58194151B
- iMac12,2 Mac-942B59F58194171B
MacMini
- MacMini v1.1GMc2
- MacMini1,1 3A102
- MacMini2,1 Mac-F4208EAA
- MacMini3,1 Mac-F22C86C8
- MacMini4,1 Mac-F2208EC8
- MacMini4,1 Mac-F2208EC8
- MacMini5,1 Mac-8ED6AF5B48C039E1
- MacMini5,2 Mac-4BC72D62AD45599E
MacPro
- MacPro1,1 Mac-F4208DC8
- MacPro2,1 Mac-F4208DA9
- MacPro3,1 Mac-F42C88C8
- MacPro3,1 Mac-F42C88C8
- MacPro3,1 Mac-F42C88C8
- MacPro4,1 Mac-F221BEC8
- MacPro5,1 Mac-F221BEC8
MacBook
- MacBook2,1 Mac-F4208CA9
- MacBook2,1 Mac-F4208CAA
- MacBook3,1 Mac-F22788C8
- MacBook4,1 Mac-F22788A9
- MacBook5,1 Mac-F42D89A9
- MacBook5,1 Mac-F42D89C8
- MacBook5,2 Mac-F22788AA
- MacBook6,1 Mac-F22C8AC8
- MacBook7,1 Mac-F22C89C8
MacBookPro
- MacBookPro1,1 3A106
- MacBookPro1,1 3A107
- MacBookPro2,1 Mac-F42189C8
- MacBookPro2,2 Mac-F42187C8
- MacBookPro3,1 Mac-F42388C8
- MacBookPro3,1 Mac-F4238BC8
- MacBookPro4,1 Mac-F42C86C8
- MacBookPro4,1 Mac-F42C89C8
- MacBookPro5,1 Mac-F42D86A9
- MacBookPro5,1 Mac-F42D86C8
- MacBookPro5,2 Mac-F2268EC8
- MacBookPro5,3 Mac-F22587C8
- MacBookPro5,4 Mac-F22587A1
- MacBookPro5,5 Mac-F2268AC8
- MacBookPro6,1 Mac-F22589C8
- MacBookPro6,2 Mac-F22586C8
- MacBookPro7,1 Mac-F222BEC8
- MacBookPro8,1 Mac-94245B3640C91C81
- MacBookPro8,2 Mac-94245A3940C91C80
- MacBookPro8,3 Mac-942459F5819B171B
- MacBookPro9,1 Mac-4B7AC7E43945597E
- MacBookPro9,2 Mac-6F01561E16C75D06
- MacBookPro10,1 Mac-C3EC7CD22292981F
MacBookAir
- MacBookAir1,1 Mac-F42C8CC8
- MacBookAir2,1 Mac-F42D88C8
- MacBookAir3,1 Mac-942452F5819B1C1B
- MacBookAir3,2 Mac-942C5DF58193131B
- MacBookAir4,1 Mac-C08A6BB70A942AC2
- MacBookAir4,2 Mac-742912EFDBEE19B3
- MacBookAir5,1 Mac-66F35F19FE2A0D05
- MacBookAir5,2 Mac-2E6FAB96566FE58C
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