Menu

Refind show 5 OSX menus but none of them can boot into OSX

Leonk
2018-02-09
2018-10-22
  • Leonk

    Leonk - 2018-02-09

    Hi,

    I installed rEFInd 0.11.2 which work fine to dual boot OSX 10.13.3 and Win10 EFI. However it was showing 3 OSX preboot menus and only 1st one can boot into OSX successfully, other 2 gave the Error sign and with message such as No Er state for Object preboot. I am not sure if that is because I reinstalled OSX twice in Recovery Mode. so it end up with 3 entry menu for OSX?

    Anyway due to some reasons, I have to resintall OSX. and I found in Recovery mode, it gave me the error "Could not create a Preboot Volume for APFS install". After some research, I remove refind folder and tools folder in ESP partition when in recovery mode. and reinstall latest OSX by creating a USB installer. I also deleted the OSX partition during reinstallation. Everything went fine. and I can dual boot OSX and Win10.

    Then I install rEFInd in recovery mode and reEFInd boot up fine. but it now shows 5 OSX boot menus (along with my Win10 EFI and 2 Lagecy from NTFS which I don't know where it come from), But none of the OSX menus works, all shows following error:

    APFSStart:1454: Mounting with apfs_efi_osx-748.41.3
    efi_fusion_pairing:632: Container 3c51e2e9-7cf8-4c06-be07-db33fc7ab1ad
    efi_fusion_pairing:637: fusion uuid: 00000000-0000-0000-000000000000
    efi_container_create: 926: Volume attached is internal
    nx_kernal_mount:1369: checkpoint serach: largest xid 5930495, best xid 5930495 @ 10
    er_stat_obj_get_for_recovery:3811: No ER state object for volume Preboot - rooling is not happening, nothing to recover.
    er_stat_obj_get_for_recovery:3811: No ER state object for volume Recovery - rooling is not happening, nothing to recover.
    er_stat_obj_get_for_recovery:3811: No ER state object for volume VM - rooling is not happening, nothing to recover.
    does printf works??

    • Hit any key to cotinue *

    I can still use rEFInd's second row menu to boot into OSX recovery. it also show 5 OSX recovery icon in 2nd row and all of the 5 can boot into Recovery. rEFInd also boots win10 EFI without any issue.

    so now I have to use Option key to boot into OSX. Any help is appreciated.

    Thanks
    Leon

     

    Last edit: Leonk 2018-02-10
  • Leonk

    Leonk - 2018-02-10

    some more info about my disk. I do have Filevault2 on the OSX partition.

    $ diskutil list
    /dev/disk0 (internal):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                         500.3 GB   disk0
       1:                        EFI EFI                     314.6 MB   disk0s1
       2:                 Apple_APFS Container disk1         249.0 GB   disk0s2
       3:       Microsoft Basic Data BOOTCAMP                250.5 GB   disk0s3
       4:           Windows Recovery                         494.9 MB   disk0s4
    
    /dev/disk1 (synthesized):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      APFS Container Scheme -                      +249.0 GB   disk1
                                     Physical Store disk0s2
       1:                APFS Volume Macintosh HD            134.6 GB   disk1s1
       2:                APFS Volume Preboot                 104.8 MB   disk1s2
       3:                APFS Volume Recovery                2.5 GB     disk1s3
       4:                APFS Volume VM                      1.1 GB     disk1s4
    
    $ diskutil apfs list
    APFS Container (1 found)
    |
    +-- Container disk1 3C61E2E9-7CF8-4C0B-BE07-DB33FC7AB1AD
        ====================================================
        APFS Container Reference:     disk1
        Capacity Ceiling (Size):      249000075264 B (249.0 GB)
        Capacity In Use By Volumes:   138442895360 B (138.4 GB) (55.6% used)
        Capacity Available:           110557179904 B (110.6 GB) (44.4% free)
        |
        +-< Physical Store disk0s2 9736F453-2061-4E64-8C2F-5C12493D1EFF
        |   -----------------------------------------------------------
        |   APFS Physical Store Disk:   disk0s2
        |   Size:                       249000075264 B (249.0 GB)
        |
        +-> Volume disk1s1 43694177-F795-4C64-9F4B-75DDCDDFE00B
        |   ---------------------------------------------------
        |   APFS Volume Disk (Role):   disk1s1 (No specific role)
        |   Name:                      Macintosh HD (Case-insensitive)
        |   Mount Point:               /
        |   Capacity Consumed:         134577131520 B (134.6 GB)
        |   FileVault:                 Yes (Unlocked)
        |
        +-> Volume disk1s2 5F79732C-03DF-4A5A-8643-6EF38CB46B9D
        |   ---------------------------------------------------
        |   APFS Volume Disk (Role):   disk1s2 (Preboot)
        |   Name:                      Preboot (Case-insensitive)
        |   Mount Point:               Not Mounted
        |   Capacity Consumed:         104771584 B (104.8 MB)
        |   FileVault:                 No
        |
        +-> Volume disk1s3 3FE89EDA-9994-48F0-9D1E-C5078A565EBA
        |   ---------------------------------------------------
        |   APFS Volume Disk (Role):   disk1s3 (Recovery)
        |   Name:                      Recovery (Case-insensitive)
        |   Mount Point:               Not Mounted
        |   Capacity Consumed:         2549002240 B (2.5 GB)
        |   FileVault:                 No
        |
        +-> Volume disk1s4 0420D9E1-75CD-4458-94E6-BA6579092D94
            ---------------------------------------------------
            APFS Volume Disk (Role):   disk1s4 (VM)
            Name:                      VM (Case-insensitive)
            Mount Point:               /private/var/vm
            Capacity Consumed:         1073762304 B (1.1 GB)
            FileVault:                 No
    
     

    Last edit: Leonk 2018-02-10
  • Leonk

    Leonk - 2018-02-11

    I try it on my old late 2013 MBP which has the exactly same setup, OSX 10.13.3 and Win10 EFI boot. OSX APFS partition is Filevault2 encrypted. this one seems do not suffer to multiple OSX preboot menu items. it only show one and boots into OSX fine. This seems there is some problem in rEFInd auto scan boot loader. When it work perfectly for my old MBP, it seems have problem auto scan my 2017 MBP.

     

    Last edit: Leonk 2018-02-11
  • Leonk

    Leonk - 2018-02-12

    I mounted my Preboot volume as I notice it is over 100MB when my old MBP only have 20MB size.

    $ pwd
    /Volumes/Preboot
    $ ls -ltr
    total 0
    drwxr-xr-x  7 root  wheel  224 Jan 31 21:18 D98D54CB-F7D8-423C-AB69-2A6FDFD60579
    drwxr-xr-x  7 root  wheel  224 Jan 31 22:34 E734CCD5-5967-45B5-B81D-22B0ECB59F54
    drwxr-xr-x  7 root  wheel  224 Jan 31 23:10 C9EE884F-D6CC-4A65-8A20-261C05F2CF60
    drwxr-xr-x  2 root  wheel   64 Feb  8 12:03 52B79766-9CA7-4713-BF83-949F350493D4
    drwxr-xr-x  2 root  wheel   64 Feb  8 12:17 A86440D7-F894-48CA-B55E-F6A26E90DDF7
    drwxr-xr-x  7 root  wheel  224 Feb  8 15:32 2545266A-F33E-4DF7-A0F3-B3AFBC5F2963
    drwxr-xr-x  7 root  wheel  224 Feb  8 16:14 43694177-F795-4C64-9F4B-75DDCDDFE00B
    

    There are 7 folders under Preboot and only 1 corresponding to my Macintosh HD's UUID 43694177-F795-4C64-9F4B-75DDCDDFE00B. I think the Preboot folder is for unlock the Filevault2 partition? I am really new to this thing. but can I delete all other folders except 43694177-F795-4C64-9F4B-75DDCDDFE00B? Also how to use the dont_scan_dirs?

    I tried change refind.conf with following to skip the 6 old folder, but it still shows up 5 OSX menus

    dont_scan_dirs Preboot:/D98D54CB-F7D8-423C-AB69-2A6FDFD60579,/E734CCD5-5967-45B5-B81D-22B0ECB59F54,Preboot/C9EE884F-D6CC-4A65-8A20-261C05F2CF60,/52B79766-9CA7-4713-BF83-949F350493D4,/A86440D7-F894-48CA-B55E-F6A26E90DDF7,/2545266A-F33E-4DF7-A0F3-B3AFBC5F2963
    

    and I also tried following, but same result without success.

    dont_scan_dirs +,D98D54CB-F7D8-423C-AB69-2A6FDFD60579/System/Library/CoreServices,E734CCD5-5967-45B5-B81D-22B0ECB59F54/System/Library/CoreServices,C9EE884F-D6CC-4A65-8A20-261C05F2CF60/System/Library/CoreServices,52B79766-9CA7-4713-BF83-949F350493D4/System/Library/CoreServices,A86440D7-F894-48CA-B55E-F6A26E90DDF7/System/Library/CoreServices,2545266A-F33E-4DF7-A0F3-B3AFBC5F2963/System/Library/CoreServices
    

    So I finally boot into recovery mode, mount Preboot volume, rename every xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/System/Library/CoreServices/boot.efi to boot.efi.orig except leaving only the 43694177-F795-4C64-9F4B-75DDCDDFE00B/System/Library/CoreServices/boot.efi untouched. This finally make rEFInd show only 1 OSX preboot menu and successfully boot into OSX 10.13.3 without issue.

    My old MBP only have 1 entry and only cache folder under /System/Library without CoreServices folder any or any *.efi files under them. . it seems during reinstall OSX, the latest 10.13.3 installer do not remove the old entry anymore. my OLD mbp was clean install 10.13 then upgraded to 10.13.3.

     

    Last edit: Leonk 2018-02-12
  • Matteo Guglielmi

    Dual boot (no scan, manual only): OSX & ARCH

    scanfor manual
    
    # OSX
    menuentry "OSX" {
      icon /EFI/refind/icons/os_mac.png
      volume Preboot
      loader /11D45074-3127-4674-9CE5-B8B36D1B1FC6/System/Library/CoreServices/boot.efi
    }
    
    # ARCH
    menuentry "ARCH" {
      icon /EFI/refind/icons/os_arch.png
      volume BOOT
      loader vmlinuz-linux
      initrd initramfs-linux.img
      options "rw root=UUID=f2dce769-7828-4e16-bb14-a302affecfef initrd=intel-ucode.img"
    }
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.