Solution found for all Macs and all softwares even if you don't have Macbook pro installdisk2.
MacBook Pro (15-inch, Mid 2009)
2,66 GHz Intel Core 2 Duo
4 GB 1067 MHz DDR3
320GB Macintosh HD
OS X Yosemite 10.10.1
- AHT or Diagnostics don't run because some files are missing from System/Library/Coreservices/.diagnostics folder (it's a hidden folder)
Follow me step by step:
1) Find your MacBook Pro model from: (top left) -> About this mac (1st row) -> System Report -> 2nd row in Hardware (for me it is MacBookPro5,3)
2) Visit https://github.com/upekkha/AppleHardwareTest#-download-links find your model and download .dmg file (just click on your model 😝)
3) Click and open .dmg file (for me it is 022-4343-A.dmg)
4) Inside your dmg go to System -> Library -> CoreServices -> and now you probably see a blanc folder, wait it's not empty but files are hiden
5) So now we have to unhide these files, therefore open your terminal (if you don't know where it is just type terminal in Spotlight).
6) In terminal paste the following:
defaults write com.apple.finder AppleShowAllFiles YES
and press return.
7) Hold ‘alt’ on your keyboard, then right click on the Finder icon in the dock and click Relaunch.
8) Go again in your dmg and follow the same path: System -> Library -> CoreServices - and now you can see all files. Open .diagnostics folder and copy all the included files.
9) Now go in your Macintosh HD/System/Library/Coreservices/.diagnostics and paste copied files.
!!! ATTENTION !!!
DO NOT REPLACE FILES BUT KEEP THEM BOTH
10) When paste is done close all your windows and eject your dmg.
11) Open once again your terminal and paste the following defaults write com.apple.finder AppleShowAllFiles NO (because we have to hide hidden folders again)
12) Hold ‘alt’ on your keyboard, then right click on the Finder icon in the dock and click Relaunch
!! Now we are ready to start Apple Hardware Test !!
- Shut down your computer. Then, press the power button to turn it back on.
- Press and hold the D key before the gray startup screen appears.
- It takes a minute or so for AHT to start up and inspect your hardware configuration. While this is taking place, an icon appears on the screen:
- When the process is complete, select your language and click the right arrow. If you aren't using a mouse, you can use the up and down arrows to select a language and then press the Return key.
- The AHT console appears. You can choose which sort of test or tests to perform:To exit AHT, click Restart or Shut Down at the bottom of the window. Note: Your test results will appear in the window in the bottom-right of the console.
- To perform all of the basic tests, click the Test button or press the "T" key or the Return key.
- To perform a more thorough diagnostic test, select the "Perform extended testing" checkbox under the Test button before you click the Test button.
I hope these instructions can help you.
Have a nice day and good luck with AHT!
George Zalokostas