Installing OS X on a new Hard Drive

Discussion in 'macOS' started by Barnum, Jun 24, 2016.

  1. Barnum macrumors newbie

    Joined:
    Sep 4, 2008
    #1
    I’ve sent my old iMac to a computer repair shop (I’m not sure if it’s Apple authorized) to have my malfunctioning hard drive replaced with a new one. My question is how do install os x (El Capitan) onto the new drive? I don’t have an installation disc but I do have a Time Machine backup drive.
     
  2. JohnDS macrumors 65816

    Joined:
    Oct 25, 2015
    #2
  3. Barnum thread starter macrumors newbie

    Joined:
    Sep 4, 2008
    #3
    I'm not sure if I will be able to do that on my iMac. It's a late 2009 Core 2 duo model.
     
  4. DeltaMac macrumors 604

    DeltaMac

    Joined:
    Jul 30, 2003
    Location:
    Delaware
    #4
    Your 2009 iMac is too old for internet recovery.
    Your Time Machine backup (from El Capitan) SHOULD be bootable, and you would then be able to restore your backup on the replacement hard drive.
    A better plan would be to create a bootable flash drive with the El Cap installer. Very easy to do if you can download that installer on another Mac.
    Then, you can install El Cap fresh on your new drive, and the restore of the Time Machine backup will be even easier.
     
  5. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #5
    If the TM backup was to a local disk like USB, then just attach it and option key boot to it. That will take you to a recovery screen. From there use Disk Utility to erase the internal drive to Mac OS Extended (Journaled). Then quit Disk Utility and click restore OS X at the top.
     
  6. JohnDS macrumors 65816

    Joined:
    Oct 25, 2015
    #6
    My understanding is that Time Machine backups are not bootable. Has this changed recently?
    --- Post Merged, Jun 25, 2016 ---
    Your Mac should have shipped with a Restore/Install DVD. Do you still have it? If so, you can boot from it by holding down Command-C. Then use disk utility to format the new drive as Apple Extended Format (Journalled). Then install the OS from the DVD. On reboot, the computer should ask you if you want to transfer data from an older Mac. At that point, connect your Time Machine backup drive and select it. This should copy over all your old files, apps and preferences.

    Once you are done, go to the App Store and download and install a fresh copy of El Capitan. This will cause the installer to create a recovery partition. Then run Software Update to update all your software.
     
  7. CoastalOR, Jun 25, 2016
    Last edited: Jun 25, 2016

    CoastalOR macrumors 68000

    CoastalOR

    Joined:
    Jan 19, 2015
    Location:
    Oregon, USA
    #7
    A Time Machine backup of OS 10.7.2 and later is bootable to the OS X Recovery that is part of the Time Machine backup.
    http://pondini.org/OSX/RecoveryHD.html
     
  8. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #8
    You can't boot and run the Mac, but like CoastalOR mentioned, since 10.7.2 you can boot to the recovery partition on the TM backup disk.
     
  9. JohnDS macrumors 65816

    Joined:
    Oct 25, 2015
    #9
    Learn something new every day! I presume that works only if the Time Machine backup is to a USB drive, not to a Time Capsule?
     
  10. Bruno09, Jun 25, 2016
    Last edited: Jun 25, 2016

    Bruno09 macrumors 68020

    Joined:
    Aug 24, 2013
    Location:
    Far from here
    #10
    I think this no longer works with El Capitan...

    The solution is to manually edit the com.apple.Boot.plist file (Backups.backupdb/.RecoverySets/0/com.apple.recovery.boot/com.apple.Boot.plist)

    Replace :
    <string>\Backups.backupdb\.RecoverySets\0\com.apple.recovery.boot\kernelcache</string>

    With :
    <string>\Backups.backupdb\.RecoverySets\0\com.apple.recovery.boot\prelinkedkernel</string>

    Here in French, sorry I am not able to translate this in English.
    http://forums.macg.co/threads/booter-sur-sauvegarde-tm.1272471/#post-12977415

    EDIT : just tested myself, it does work : the Time Machine backup is bootable again after editing the .plist file.

    Path on my TM backup : Backups.backupdb/.RecoverySets/1/com.apple.recovery.boot/com.apple.Boot.plist

    .RecoverySets
    is an hidden folder, thus you need to reveal the hidden items in Finder before editing the plist file.
     
  11. JohnDS macrumors 65816

    Joined:
    Oct 25, 2015
    #11
    Hmm. Pondini doesn't mention El Capitan, and I think he died before it was released. But he does mention a problem with USB3.
     
  12. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #12
    Correct... it needs to be a locally attached backup like USB, FW, or TB.

    Well crap. Nice find and the first I heard this is borked. Why the heck would Apple do this. Maybe they are thinking all the newer machines can restore from Internet recovery so they don't need this I suppose... but still. :mad:

    That workaround is not going to help if you don't have a bootable system to start with to edit the plist file from.
     
  13. Barnum thread starter macrumors newbie

    Joined:
    Sep 4, 2008
    #13
    Welp, I got my computer back & I chickened out and made an appointment with the Genius Bar and lugged the 30 pound beast to the nearest Mac Store. El Capitan is now installed and now all I have to do is wait 7 hours to load all my files and apps to my hard drive. Yay USB 2.0!
     
  14. Bruno09, Jul 2, 2016
    Last edited: Jul 2, 2016

    Bruno09 macrumors 68020

    Joined:
    Aug 24, 2013
    Location:
    Far from here
    #14
    Fixed by Apple in macOS Sierra : kernelcache replaced with prelinkedkernel.

    Also : the Recovery partition of El Capitan was updated through the Mac App Store on June 23rd or 24th.

    May be the TM backup is bootable again with El Capitan ?
    I can not test myself because I had manually edited the .plist file (post #10).
     
  15. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #15
    Does not appear so. I just downloaded the full installer and reinstalled El Capitan and although that plist shows it was created today along with my install, it still shows kernelcache in that section.
     
  16. adam9c1 macrumors 65816

    adam9c1

    Joined:
    May 2, 2012
    Location:
    Chicagoland
    #16
    I'm confused...

    Time Machine (El Capitan) based does not allow to boot from recovery partition on Time Machine drive?
     
  17. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #17
    It always did (since Lion 10.7.2) and now El Capitan has broken it.
     
  18. adam9c1 macrumors 65816

    adam9c1

    Joined:
    May 2, 2012
    Location:
    Chicagoland
    #18
    Hmm,
    I can still boot with El Capitan installer on USB (flash drive), and choose restore from TM, correct?

    Which version of El Capitan broke it? Since 10.11. (zero)?

    That's such a fundamental flaw. wow
     
  19. grahamperrin macrumors 601

    grahamperrin

    Joined:
    Jun 8, 2007
    #19
    Maybe with the (long) countdown to booting from APFS, Apple decided to no longer maintain the feature.
     
  20. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #20
    Yes... you could still boot either from a USB key or Internet recovery on newer Macs that support it, then restore.

    I don't know which version broke this.

    I don't think so, because Bruno09 reports it is back in Sierra. So maybe just an oversight.
     

Share This Page