Recovery Partition 4.0.2

June 17, 2016 by Christopher Silvertooth

Updated to 4.0.3

 

Hi all,

Thank you for your patience waiting for the bug fixes.  I think I squashed a few of the bugs though I am sure more are out there.  At any rate here is 4.0.2.  Hopefully the “maindrive” bug so many were getting is now gone.

Cheers,

Chris

Recovery Partition Creator 4.x

 

apple / Mac Fixes / tools

Comments

  1. zefram says:

    in ElCapitan the “maindrive” bug is still present.
    Cheers

    • Christopher Silvertooth says:

      I just made some changes and updated to 4.0.3. I noticed an error in how I detected the drive to install the recovery partition on. Hopefully that will reduce some errors.

      Chris

  2. Thorsten says:

    Hi Christopher!

    I also checked up your pretty new version 4.0.2 on my mac running el capitan, but I run also in the bug with it that says that the “maindrive” variable isn’t set.

    Perhaps there is something else wrong in your new build. Hope you can fix it and get it to run for us…

    Here is my diskutil output:

    /dev/disk0 (internal, physical):
    #: TYPE NAME SIZE IDENTIFIER
    0: GUID_partition_scheme *500.1 GB disk0
    1: EFI EFI 209.7 MB disk0s1
    2: Apple_HFS SSD 499.2 GB disk0s2
    3: Apple_Boot Recovery HD 650.0 MB disk0s3
    /dev/disk1 (internal, physical):
    #: TYPE NAME SIZE IDENTIFIER
    0: GUID_partition_scheme *1.5 TB disk1
    1: EFI EFI 209.7 MB disk1s1
    2: Apple_HFS Data 1.5 TB disk1s2
    3: Apple_Boot Boot OS X 134.2 MB disk1s3

    Cheers, Thorsten

    • Christopher Silvertooth says:

      I just made some changes and updated to 4.0.3. I noticed an error in how I detected the drive to install the recovery partition on. Hopefully that will reduce some errors.

      Chris

  3. =dave= says:

    Worked perfectly for me on El Cap. 10.11.5.

    Not sure it was necessary, but before I launched your app I rebooted from a cloned copy of my main drive, on which there was a fresh-download of the El Cap Installer from the App Store. That clone was where I placed your script, ran it from there. I thought it might help the process to not run the script on the startup volume(?).

    Thanks SO much for providing your script; made the process very easy and prevented me from wiping my drive, clean installing, etc., etc….

  4. I’m running 4.0.3 under El Cap.
    I get the “legacy HFS detected” (there is no legacy HFS on my system) but it seems to continue OK after that until I click “chose” on my El Cap installer application, at which point the program terminates immediately without any messages.
    What should I do?
    Thanks
    James

    • Christopher Silvertooth says:

      Can you run the following command in a terminal window? diskutil list

      Your output should be similar to below.

      /dev/disk0 (internal, physical):
      #: TYPE NAME SIZE IDENTIFIER
      0: GUID_partition_scheme *251.0 GB disk0
      1: EFI EFI 209.7 MB disk0s1
      2: Apple_CoreStorage Macintosh HD 250.1 GB disk0s2
      3: Apple_Boot Recovery HD 650.0 MB disk0s3
      /dev/disk1 (internal, virtual):
      #: TYPE NAME SIZE IDENTIFIER
      0: Apple_HFS Macintosh HD +249.8 GB disk1
      Logical Volume on disk0s2
      F1ACB634-0C35-448F-A87A-18280F789DD6
      Unlocked Encrypted
      /dev/disk2 (disk image):
      #: TYPE NAME SIZE IDENTIFIER
      0: GUID_partition_scheme +880.3 MB disk2
      1: Apple_HFS VMware Fusion 880.3 MB disk2s1
      /dev/disk3 (external, physical):
      #: TYPE NAME SIZE IDENTIFIER
      0: GUID_partition_scheme *500.1 GB disk3
      1: EFI EFI 209.7 MB disk3s1
      2: Apple_HFS OS X External 49.5 GB disk3s2
      3: Apple_Boot Recovery HD 650.0 MB disk3s3
      4: Apple_HFS OS X External 2 74.6 GB disk3s4
      5: Apple_HFS Stuff 374.9 GB disk3s5

      • /dev/disk0 (internal, physical):
        #: TYPE NAME SIZE IDENTIFIER
        0: GUID_partition_scheme *120.0 GB disk0
        1: EFI EFI 209.7 MB disk0s1
        2: Apple_HFS iMac new SSD 119.2 GB disk0s2
        /dev/disk1 (internal, physical):
        #: TYPE NAME SIZE IDENTIFIER
        0: GUID_partition_scheme *500.1 GB disk1
        1: EFI EFI 209.7 MB disk1s1
        2: Apple_HFS iMac HD 118.3 GB disk1s2
        3: Apple_Boot Recovery HD 650.0 MB disk1s3
        4: Apple_HFS Untitled 380.8 GB disk1s4

        • Christopher Silvertooth says:

          Ok, you only have Legacy HFS according to diskutil. Are you trying to install a recovery partition on iMac new SSD or maybe replace the one on iMac HD? I know in the past there have been issues with two internal drives. I have one Mac I can try and duplicate that on in my house.

          • I guess I’m confused? According to Disk Utility (the GUI) I’ve got OSX Extended (Journaled) – is that “legacy”? If it is then what would be a non-legacy format?

            Anyway – I have a “late 2009” iMac with an HD with the original OS and a recovery partition. I aded an SSD (in place of the DVD drive), formatted it, and used SuperDuper to clone the HD OS partition onto the SSD. Now I’m trying to get a recovery partition on the SSD for the day when/if the HD dies.

            CCC (trial mode) has the recovery partition options greyed out for the SSD – so no help there.

            I also have a new Mac Mini where I added an external SSD in exactly the same way, and that has exactly the same problem. On that machine I also tried a clean instal of El Cap on the SSD, but it still didn’t get a recovery partition.

            It seems the problem is not confined to your software? Is there maybe a minimum disk size for creating a R.P. (both SSDs are 120 GB)?

          • Christopher Silvertooth says:

            By legacy I mean you aren’t using the storage setup that Apple moved to in Yosemite. Apple was moving everyone from a straight apple_hfs partition to a core storage managed setup. The core storage setup allows for disk encryption and a much more dynamic way of manipulating the volumes. It isn’t really a bad thing more something I need to know before the script continues on.

            I just tried running 4.0.3 on my mac mini with 2 drives and it worked without a problem. It only uses legacy like your setup. Do you have a decent amount of space left on the drive?

          • Hi Chris
            Any progress on finding a solution to my RPC simply stopping after choosing the El Cap inhaler?
            thanks
            James

          • Christopher Silvertooth says:

            Not yet. I don’t recall anyone else having that problem. Many have the mainDrive or mainPartition error but not your issue. I saw one person post that everything worked fine once they chose english as their language. I wonder if there is a problem with regards to internationalization?

            Chris

          • Update:
            I tried shrinking the (one) partition on the SSD by 1GB to create a little free space. Maybe just a coincidence, but RP then ran correctly and created a recovery partition. I haven’t tried it yet, but it looks good in diskutil

  5. Szarky says:

    So mine worked but… isn’t it a bit confusing though for the last pop up dialogue to say to restart the computer and to hold down Command+R? …And then what? Do I have to Restore from Time Machine backup? Reinstal a new copy of OS X? Do something in Disk Utility? Or what my guess is, just not have Command+R in the first place and just let it restart normally? Thanks Chris.

    • Christopher Silvertooth says:

      Maybe I should re-word it. Voila! You made it 🙂 If you want to boot to your new recovery partition hold down the “command” and the “r” keys at the same time when you boot your mac. If you just want to know if it is really there open terminal and type diskutil list …look for partition labeled Recovery HD.

    • Szarky says:

      Restarted and seems to work! Find My Mac works again!! Is there anything else to check to make sure it worked okay? I do notice when I restart and hold down Option I now have a bit of an annoying “Recovery-10.11.5” drive now… don’t think that was there before. Do we just have to live with it? Was that kind of the point of running the script was to make that separate drive, I guess I just thought it would be baked into Macintosh HD somehow.

      • Christopher Silvertooth says:

        Nope… works perfect. That is how apple names the recovery drive. You might be able to hide it with some EFI command. I haven’t looked in to it much. Glad it worked.

        Chris

  6. Al says:

    > By legacy I mean you aren’t using the storage setup that Apple moved to in Yosemite. Apple was moving everyone from a straight apple_hfs partition to a core storage managed setup.

    Only portable Macs were moved to Core Storage in Yosemite. Desktop Macs were left alone in that regard.

    • Christopher Silvertooth says:

      Thanks for the clarification. Nearly all of my work has been related to mobile devices so I never caught that bit of info.

      Chris

  7. dvdborn says:

    At first v 4.0,x didn’t work for me. It was only after I changed my language settings from Dutch to English that the script would work.

  8. Matgen says:

    ****Edit post 22/06/2016 with no reply
    Sorry for my english.
    in Yosemite 10.10.5, the “maindrive” and the “main partition” bug is still present. I use Recovery Partition Creator 4.0.3
    Cheers

    /dev/disk0
    #: TYPE NAME SIZE IDENTIFIER
    0: GUID_partition_scheme *1.0 TB disk0
    1: EFI EFI 209.7 MB disk0s1
    2: Apple_HFS YosemiteDD 999.2 GB disk0s2
    3: Apple_Boot Recovery HD 650.0 MB disk0s3

    • Christopher Silvertooth says:

      I have had a few users report that when they switch their language to English that the program works fine. I know that isn’t ideal but until I can figure out how to add internationalization to the program that may be the best work around.

      Thanks,

      Chris

  9. badbadger says:

    I also temporarily changed the system language to English. All errors are gone. Partition recovery was established.

  10. Primitivo says:

    I can confirm that changing language to English has solved the issues with version 4.0.3. Using Spanish as system language, the script failed with errors about undefined variables.
    I received the warning about legacy HFS, but the process worked fine and the recovery partition was successfully created.
    My details:
    -iMac late 2009, 21.5 inch.
    -OS X 10.11.5 El Capitan, upgraded from the original 10.6 to all versions between 10.7 and 10.11.
    -System HD is a SSD Crucial BX200, cloned from original HD using Superduper.

  11. John Robertson says:

    OS X v10.11.5 (15F34)
    RPC v4.0.3
    Booted from an external HDD via Thunderbolt.
    MBAir (13-inch, Early 2015)
    MBAir internal drive named Macintosh HD El Cap
    Language is English

    RPC is terminating immediately after choosing my Install OS X El Capitan.

    What I encounter when I start RPC 4.0.3

    Checks for required files successfully.
    Warning text ending with You are running 10.11.5. Continuing…
    Choose the drive to install recovery partition on:
    CoreStorage detected
    We will now check your drive for errors…Skip Check.
    Disk Check skipped
    We are about to start the recovery process….
    Choose Installer version: 10.9 or greater
    Choose the location of your OS X installer
    Immediate termination of program.

    Here is the output from diskutil list that you requested from another poster.
    /dev/disk0 (internal, physical):
    #: TYPE NAME SIZE IDENTIFIER
    0: GUID_partition_scheme *500.3 GB disk0
    1: EFI EFI 209.7 MB disk0s1
    2: Apple_CoreStorage Macintosh HD El Cap 498.8 GB disk0s2
    3: Apple_Boot Recovery HD 650.0 MB disk0s3
    /dev/disk1 (internal, virtual):
    #: TYPE NAME SIZE IDENTIFIER
    0: Apple_HFS Macintosh HD El Cap +498.4 GB disk1
    Logical Volume on disk0s2
    1B860F3B-C85A-487E-AE81-2D9FEF41017D
    Unencrypted
    /dev/disk2 (external, physical):
    #: TYPE NAME SIZE IDENTIFIER
    0: GUID_partition_scheme *1.0 TB disk2
    1: EFI EFI 209.7 MB disk2s1
    2: Apple_HFS TT El Cap Boot 59.5 GB disk2s2
    3: Apple_Boot Recovery HD 650.0 MB disk2s3
    4: Apple_HFS TT El Cap Data 440.1 GB disk2s4
    5: Apple_HFS TT Mavericks Boot 59.5 GB disk2s5
    6: Apple_Boot Recovery HD 650.0 MB disk2s6
    7: Apple_HFS TT Mavericks Data 439.4 GB disk2s7
    /dev/disk3 (disk image):
    #: TYPE NAME SIZE IDENTIFIER
    0: GUID_partition_scheme +7.2 GB disk3
    1: EFI EFI 209.7 MB disk3s1
    2: Apple_HFS OS X Install ESD 6.9 GB disk3s2

Leave a Reply

Your email address will not be published. Required fields are marked *