How do I restore Automated Help from a Device/thumbdrive?

I re-installed Yosemite fresh after upgrading to a new hard drive and then migrated all my files over. However, the automated help file did not come over. So I went to a website that had a collection of the files: https://github.com/upekkha/AppleHardwareTest


There is found the correct version of the hardware test for my Macbook and then download a dmg file that created a device on my desktop (similar to when you plug in a thumbdrive) from which I could restore the .diagnostic file. I don't have hidden files turned on so I can see it in the folder but its the right directory structure: System/Library/CoreServices. The website says to restore this file but I don't know how to do that. I can't copy it without changing the set up to show hidden files, which I don't want to do and I am not sure that's the right way to do it. So what is the easiest way to restore that to the Coreservices folder on my computer? I could copy it to a thumbdrive if need be as well. I have used the terminal but not real familiar with syntax so if I have to copy it that way please provide the exact syntax. The full name of the device created on my desktop is: "AHTBThree/System/Library/CoreServices/". It appears as though there is nothing showing in Coreservices folder but as noted it is because the file is hidden.

MacBook, OS X Yosemite (10.10.1), Macbook 7,1 MAC-F22C89C8

Posted on Dec 29, 2014 4:42 PM

Reply
8 replies

Dec 29, 2014 5:40 PM in response to ccmulder

The website you downloaded the AHT files from says to put them in the folder /System/Library/CoreServices/.diagnostics folder, not the folder /System/Library/CoreServices - do you understand the difference?


So from the Terminal window this is what I would do if I were you:

sudo ditto /Volumes/AHTBThree/System/Library/CoreServices/.diagnostics /System/Library/CoreServices/.diagnostics

and then enter your password (this assumes that the account you're logged in to is an "admin" type account).

good luck...

Dec 29, 2014 8:39 PM in response to ccmulder

Well I figured it out so let me give step by step instructions in case anyone else has the same issue whereby you Apple Diagnostics file is missing or corrupted.


First, you need to start terminal and enter the following command, which will make hidden files visible (don't worry you can change it back by giving the same command and substituting "FALSE" for "TRUE" once you are finished):


defaults write com.apple.finder AppleShowAllFiles TRUE

Then go to this site: https://github.com/upekkha/AppleHardwareTest to find the missing or corrupted "

.diagnostics" folder.  As explained there, run EACH of these commands separately to determine the correct model and board number:

sysctl hw.model | awk '{ print $2 }'


ioreg -l | grep board-id | awk -F\" '{ print $4 }'


The first will give you the model of your Mac (in my case, "Macbook 7,1") and the second will give you the board number (in my case, Mac-F22C89C8). With those two identifiers you find your particular Mac product heading in bold on the page ((in my case a MacBook) and click or double click on the matching model and board number combination--this will download the ".diagnostics" folder you need including the complete folder structure (i.e., "System/Library/CoreServices/" in my case). Navigate to the ".diagnostics" folder and copy it to the corresponding folder on your Mac (i.e., "System/Library/CoreServices/") in my case. Then follow the instructions here: Using Apple Diagnostics - Apple Support.

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.

How do I restore Automated Help from a Device/thumbdrive?

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