trebber

Q: Hardware test...

I can't do (unless I'm really stupid) Apple Hardware Test on my box.  I hold down D at boot, no go.  I hold down Option-D at boot, no go.  I do the same with the install disc in, no go ...  Am I missing something?  Does Tech Tool Deluxe do the same thing?  Is it better, or not?

MacBook Pro, Mac OS X (10.6.8)

Posted on Jan 5, 2015 6:29 PM

Close

Q: Hardware test...

  • All replies
  • Helpful answers

first Previous Page 4 of 5 last Next
  • by trebber,

    trebber trebber Feb 4, 2015 8:22 AM in response to trebber
    Level 1 (19 points)
    iPhone
    Feb 4, 2015 8:22 AM in response to trebber

    Read this on the 'Riven by Five' blog:

     

    Is it just a case of dump your command lines shown above into Terminal because my flash drive doesn't appear to have anything on it and i get "Can't statfs diags.efi". Any help greatly appreciated.

     

  • by trebber,

    trebber trebber Feb 4, 2015 8:35 AM in response to trebber
    Level 1 (19 points)
    iPhone
    Feb 4, 2015 8:35 AM in response to trebber

    Also tried this line with the .dmg mounted on desktop, and got similar report in Terminal:

     

    cd /Volumes/Red4GB/ && cp -r ~/Users/rob/Desktop/AHT_F/System

  • by Drew Reece,Solvedanswer

    Drew Reece Drew Reece Feb 4, 2015 10:57 AM in response to trebber
    Level 5 (7,552 points)
    Notebooks
    Feb 4, 2015 10:57 AM in response to trebber

    I need to come back to the rivenfive post, I have focusing on my script instead, since it worked for me.

     

    This needs to be done on the Mac that needs to run AHT, all the usual warnings apply about running scripts from strangers on the internet!

    Backup first if the Mac has ANY important data, get a second opinion if you need help. Don't run it if you are concerned what it does.

    It worked for me on 10.6 when I made it & I tested on 10.9 earlier.

     

    It needs to use sudo, so login to an admin user account otherwise it will fail to work (the first user account is an admin). It will prompt for the password.

    The destination needs to be a 'Macintosh Extended (journaled) format' volume.

     

    Download the 'gist' (right hand button) https://gist.github.com/drewreece/2e5eed7dbfbd5dd7e929

    Open the archive via double click & you will get an insanely named folder 'gist2e… '

    Rename the folder to 'aht-my-disk', move that folder to the Desktop

     

    Make the script executable (only needed once), in Terminal

    chmod +x ~/Desktop/aht-my-disk/AHT-my-disk.sh
    

     

    To run it the command in Terminal is …

    ~/Desktop/aht-my-disk/AHT-my-disk.sh SOURCE-AHT-DISK-IMAGE DESTINATION-DISK
    

     

    The easy way to do this…

    Drag & drop the AHT-My-disk.sh script into Terminal to autofill the path to it.

    tap spacebar

    drag & drop the source disk image

    tap spacebar

    drag & drop the destination disk

     

    Hit return to run the script

     

    It will post lots of output to the Terminal as it runs. It does the following…

    • Mount the source AHT disk image
    • Copy the AHT onto the destination disk
    • 'bless' the diags.efi for booting  <- REQUIRES SUDO - enter password at prompt.
    • Unmount the source AHT disk image

     

     

    Now when you reboot will be set to use this as the startup disk. Do not hold any startup keys.

    If it fails to launch AHT reboot & hold alt at next startup to choose another startup disk, or remove the USB stick to allow the Mac to search for other OS's.


    Let me know if it fails or if you get any errors.

  • by trebber,

    trebber trebber Feb 4, 2015 4:49 PM in response to Drew Reece
    Level 1 (19 points)
    iPhone
    Feb 4, 2015 4:49 PM in response to Drew Reece

    I'm starting to believe my computer has some dirty little secret it doesn't want the AHT to reveal!  Alas...

    I did this in Terminal:

     

    Last login: Wed Feb  4 15:21:58 on console

    my-MacBook-Pro-15:~ rob$ chmod +x ~/Desktop/aht-my-disk/AHT-my-disk.sh

    my-MacBook-Pro-15:~ rob$ /Users/rob/Desktop/aht-my-disk/AHT-my-disk.sh /Users/rob/Desktop/018-2405-A.dmg /Volumes/Red4GB 

     

    Will ERASE /Volumes/Red4GB and copy AHT from /Users/rob/Desktop/018-2405-A.dmg

    ctrl + c to exit...

    5 seconds to stop!

    --> Will use sudo for bless & reboot - enter admin password

    --> Mounting disk image...

    --> Copying system...

    rm: /Volumes/Red4GB/AHT-version.txt: No such file or directory

    --> Copying EFI Loader...

    --> Blessing system...

    Enter admin password

    "disk2" unmounted.

    "disk2" ejected.

    my-MacBook-Pro-15:~ rob$

     

    I rebooted and saw flashing words on a black screen.  Best I could do was photograph it, no way to copy, that I know of.  Hopefully the picture's clear enough to be legible:

    (sorry for enormous size and that it's cut-off, but...)

    screen.jpg

     

    I rebooted and got:

    "Error 0x8000000e loading /Runtime_Files/Common/IndyErrors.h

    Error 0x8000000e.  Couldn't load /Runtime/Files/EFI/Drivers/TestSupport.efi"

  • by Drew Reece,

    Drew Reece Drew Reece Feb 4, 2015 5:19 PM in response to trebber
    Level 5 (7,552 points)
    Notebooks
    Feb 4, 2015 5:19 PM in response to trebber

    The script output looks correct.

     

    I am setting things up incorrectly on the USB - I think it is actually starting from the AHT disk you made (TestSupport.efi is part of diagnostics)

    I did it wrong, let me rethink.

  • by Drew Reece,

    Drew Reece Drew Reece Feb 4, 2015 6:58 PM in response to Drew Reece
    Level 5 (7,552 points)
    Notebooks
    Feb 4, 2015 6:58 PM in response to Drew Reece

    trebbler,

    Please grab the new version from GitHub & make it executable & retry the USB stick.

  • by trebber,

    trebber trebber Feb 5, 2015 8:06 AM in response to Drew Reece
    Level 1 (19 points)
    iPhone
    Feb 5, 2015 8:06 AM in response to Drew Reece

    A picture, as they say, is worth a thousand words, two are worth at least two thousand, I suppose:

    aht2.JPG

     

     

    First time I tried it with the "new" script, I got:

     

    Last login: Wed Feb  4 21:47:15 on console

    my-MacBook-Pro-15:~ rob$ chmod +x ~/Desktop/aht-my-disk/AHT-my-disk.sh

    my-MacBook-Pro-15:~ rob$ /Users/rob/Desktop/aht-my-disk/AHT-my-disk.sh /Users/rob/Desktop/AHT/018-2405-A.dmg /Volumes/Red4GB

    Will ERASE /Volumes/Red4GB and copy AHT from /Users/rob/Desktop/AHT/018-2405-A.dmg

    ctrl + c to exit...

    5 seconds to stop!

    --> Will use sudo for bless & reboot - enter admin password at prompt

    --> Mounting disk image...

    "disk2" unmounted.

    "disk2" ejected.

    --> Warning!

    --> Found System on destination: /Volumes/Red4GB

    --> Check this is correct & remove from: /Volumes/Red4GB, exiting...

    my-MacBook-Pro-15:~ rob$

     

     

    Then I re-partitioned (if that's what you call it) the flash drive with Disk Utility, 1 partition, GUID.  Second time I tried the Terminal/script thing, I got:

     

    my-MacBook-Pro-15:~ rob$ /Users/rob/Desktop/aht-my-disk/AHT-my-disk.sh /Users/rob/Desktop/AHT/018-2405-A.dmg /Volumes/Red4GB

    Will ERASE /Volumes/Red4GB and copy AHT from /Users/rob/Desktop/AHT/018-2405-A.dmg

    ctrl + c to exit...

    5 seconds to stop!

    --> Will use sudo for bless & reboot - enter admin password at prompt

    --> Mounting disk image...

    --> Copying system...

    cp: /Volumes/AHT F//.Trashes: unable to copy extended attributes to /Volumes/Red4GB/.Trashes: Permission denied

    cp: /Volumes/AHT F//.Trashes: Permission denied

    --> Blessing system...

    Enter admin password

    "disk2" unmounted.

    "disk2" ejected.

    finderinfo[0]:    162 => Blessed System Folder is /Volumes/Red4GB/System/Library/CoreServices/.diagnostics

    finderinfo[1]:    224 => Blessed System File is /Volumes/Red4GB/System/Library/CoreServices/.diagnostics/diags.efi

    finderinfo[2]:      0 => Open-folder linked list empty

    finderinfo[3]:      0 => No alternate OS blessed file/folder

    finderinfo[4]:      0 => Unused field unset

    finderinfo[5]:    162 => OS X blessed folder is /Volumes/Red4GB/System/Library/CoreServices/.diagnostics

    64-bit VSDB volume id:  0x1EBD00652C7C67A8

    my-MacBook-Pro-15:~ rob$

     

    aht1.JPG

     

    And it flew on reboot...  Now , for the sake of repeating the tests, what would I do?

    BTW, thank you for your dedicated commitment to helping me out with the issue of running the AHT.  Since my original question was, "Am I missing something?", that you provided, I mark this post answered!

  • by Drew Reece,

    Drew Reece Drew Reece Feb 5, 2015 10:53 AM in response to trebber
    Level 5 (7,552 points)
    Notebooks
    Feb 5, 2015 10:53 AM in response to trebber

    trebber wrote:

     

    A picture, as they say, is worth a thousand words, two are worth at least two thousand, I suppose:

    aht2.JPG

    aht1.JPG

    Hurrah, finally thats good news.

    It's been a while since I was so pleased to see that old Carbon UI.

     

    Run the extended mode a few times.

    I also allow the Mac to cool completely (especially in cold rooms with poor heating) and then try running AHT on extended mode for a few hours so it warms up to max temp (put the heating back on if you turned it off too). It can provoke any issues that appear because of temperature. Tiny expansion & contractions can be enough sometimes to bring a Mac down.

     

    I hope it picks up something you can act on. Let us know how it goes.

  • by trebber,

    trebber trebber Feb 5, 2015 11:49 AM in response to Drew Reece
    Level 1 (19 points)
    iPhone
    Feb 5, 2015 11:49 AM in response to Drew Reece

    ..."Now , for the sake of repeating the tests, what would I do?"...

  • by Drew Reece,

    Drew Reece Drew Reece Feb 5, 2015 6:43 PM in response to trebber
    Level 5 (7,552 points)
    Notebooks
    Feb 5, 2015 6:43 PM in response to trebber

    trebber wrote:

     

    ..."Now , for the sake of repeating the tests, what would I do?"...

    I misunderstood what you were asking.

    The disk should now be 'blessed', so reboot holding alt to see if it is an option in the boot picker.

    If that fails you can delete the USB sticks content & re run the script to set the next boot to us the USB stick

     

    Or manually re-bless & set the 'boot' option as follows…

     

    sudo bless --folder "/Volumes/USB-STICK-HERE/System/Library/CoreServices/.diagnostics" --setBoot --file "/Volumes/USB-STICK-HERE/System/Library/CoreServices/.diagnostics/diags.efi"

  • by trebber,

    trebber trebber Feb 5, 2015 8:04 PM in response to Drew Reece
    Level 1 (19 points)
    iPhone
    Feb 5, 2015 8:04 PM in response to Drew Reece

    .."reboot holding alt to see if it is an option in the boot picker"...

     

    And it is!  "EFI Boot", pretty little orange disk icon.  Doesn't get a whole lot more beautiful than that!  I'll run the extended test tmro and report back, but so far, so good.  Thanks again for all your help.

  • by WZZZ,

    WZZZ WZZZ Feb 8, 2015 12:20 PM in response to Drew Reece
    Level 6 (13,112 points)
    Mac OS X
    Feb 8, 2015 12:20 PM in response to Drew Reece

    Drew, my turn now to ask for some help. I'm still trying to get the AHT for my iMac on a flash drive. Have used Carbon Copy Cloner to first create a disk image from the mounted Applications Install disc 2, from /System/Library?CoreServices/.diagnostics (before creating the disk image, I eliminated the Installation folder containing packages at 4.7 GB), and then used CCC to restore to the flash drive. Everything's there as it should be: /System/Library/CoreServices/.diagnostics. However, no matter what I try, and I've tried every variation of sudo bless I can think of, I can't get the drive blessed. Keep getting "can't find mount point" or other error messages. Maybe you will have an idea what to do.

     

    With one variation of sudo bless it really looked like it was going to work, didn't get any failure or error message back, the cursor looked like something was happening, but then it stalled completely, and I quit. Once got a > before the cursor, and had to quit.

     

    A few examples among many that I tried--here with and without the enclosing quotes--only tried without the quotes once or twice (I eliminated the boot option). I've mostly been getting "No mount point," or "can't find mount point." Tried cding to the drive before running bless, but that didn't help either.

     

    $ sudo bless --folder /Volumes/iMac\ AHT/System/Library/CoreServices/.diagnostics --file /Volumes/diags/System/Library/CoreServices/.diagnostics/diags.efi

     

    Error while getting file ID of /Volumes/diags/System/Library/CoreServices/.diagnostics/diags.efi. Ignoring...

     

    or

     

    $ sudo bless --folder "/Volumes/iMac\ AHT/System/Library/CoreServices/.diagnostics" --file "/Volumes/iMac\ AHT/System/Library/CoreServices/.diagnostics/diags.efi"

     

    No mount point for /Volumes/iMac\ AHT/System/Library/CoreServices/.diagnostics
    Can't determine mount point of '/Volumes/iMac\ AHT/System/Library/CoreServices/.diagnostics' and ''

  • by Drew Reece,

    Drew Reece Drew Reece Feb 8, 2015 12:32 PM in response to WZZZ
    Level 5 (7,552 points)
    Notebooks
    Feb 8, 2015 12:32 PM in response to WZZZ

    You are telling bless to use 2 disks, that won't work as far as I know.

     

    bless mucks around in the HFS disk headers to say that 'this disk can use this thing to boot' (that's the technical explanation )

    You are asking it to jump across file system boundaries - I haven't read anywhere that says that is OK.

     

    Assuming you have everything correctly on the 'diags' volume…

     

    sudo bless --folder "/Volumes/diags/System/Library/CoreServices/.diagnostics/" --file "/Volumes/diags/System/Library/CoreServices/.diagnostics/diags.efi"


    Use 'alt' to select the disk on reboot (or add the '--setBoot' option)

     

    To check it worked…

    bless --info /Volumes/diags/

     

    Compare to your boot disk ('bless --info' won't modify & it doesn't need sudo)

    bless --info /

     

    If you go to …

    https://github.com/upekkha/AppleHardwareTest

    & run the commands there to work out the model you could probably try my script that trebber used to clone the download to a USB stick.

  • by WZZZ,

    WZZZ WZZZ Feb 8, 2015 12:50 PM in response to Drew Reece
    Level 6 (13,112 points)
    Mac OS X
    Feb 8, 2015 12:50 PM in response to Drew Reece

    Then the command I should be using is

     

    sudo bless --folder "/Volumes/diags/System/Library/CoreServices/.diagnostics/" --file "/Volumes/diags/System/Library/CoreServices/.diagnostics/diags.efi"


    Doesn't need the name of the flash drive (volume) "iMac\ AHT" in there? That's how it's seen in /Volumes.


    Screen Shot 2015-02-08 at 3.45.51 PM.png



    EDIT: tried that command, still "No mount point."

  • by Drew Reece,

    Drew Reece Drew Reece Feb 8, 2015 12:53 PM in response to WZZZ
    Level 5 (7,552 points)
    Notebooks
    Feb 8, 2015 12:53 PM in response to WZZZ

    WZZZ wrote:

     

    Doesn't need the name of the flash drive (volume) "iMac\ AHT" in there? That's how it's seen in /Volumes.


     

    Yep, you need whatever it's called.

     

    If you are wrapping in quotes you can't escape spaces

     

    EITHER

    /Volumes/iMac\ AHT/...

    OR

    "/Volumes/iMac AHT/..."

     

    Drag & drop will sort out the escapes up to 'CoreServices' at which point you can add /.diag & use tab to confirm and complete the path.

first Previous Page 4 of 5 last Next