Menu

Cannot upgrade to macOS Mojave

2019-03-12
2019-10-05
  • Bill McClung

    Bill McClung - 2019-03-12

    I have a dual-boot macOS Sierra 10.12.6 /Ubuntu 17.10 MacBook Pro (mid 2012). When I had problems updating to macOS Mojave last week I uninstalled rEFInd from Ubuntu using the instructions. Now # ls /boot/efi/EFI returns APPLE BOOT tools ubuntu, # ls /boot|grep -i refind returns nothing, # ls /etc|grep -i refind returns nothing and

    # aptitude search refind
    p  refind - boot manager for EFI-based computers
    p  refind:i386 - boot manager for EFI-based computers
    

    Thus it appears that rEFInd has been expunged. Here's a partition map:

    # fdisk -l /dev/sda
    Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disklabel type: gpt
    Disk identifier: 00003036-15A6-0000-C763-000001460000
    
    Device         Start        End   Sectors   Size Type
    /dev/sda1         40     409639    409600   200M EFI System
    /dev/sda2     409640  977680295 977270656   466G Apple Core storage
    /dev/sda3  977680296  978949831   1269536 619.9M Apple HFS/HFS+
    /dev/sda4  978949832 1953262983 974313152 464.6G Linux filesystem
    

    From the macOS Disk Utility, it's clear that /dev/sda2 is the Macintosh HD and /dev/sda3 is the Recovery HD.

    When I boot, it launches grub2 which boots Ubuntu normally. If rEFInd is truly expunged, why is that?

    When I boot with the Option key depressed, it presents only the Recovery HD to boot from and boots Sierra normally. Why doesn't it present the Macintosh HD? System Preferences -> Startup Disk shows only the Macintosh HD as a choice.

    When I run the Install macOS Mojave.app it presents both the Macintosh HD and Recovery HD as disks where I could install Mojave but both have a pop-up "This disk cannot be used to start up your computer."

    When I boot with Option-Command-R to "Upgrade to the latest macOS compatible with your Mac" Internet Recovery starts. I choose "Reinstall macOS" from the macOS Utilities menu and the Mojave install begins. But this time it terminates quickly with "The recovery server could not be contacted."

    My goal is a working dual-boot macOS Mojave 10.14/Ubuntu 17.10 box. Any hints toward achieving this goal will be gratefully received.

     
  • Roderick W. Smith

    First, rEFInd and GRUB are two entirely different boot programs. Deleting rEFInd will leave GRUB fully installed, and depending on a variety of other factors, GRUB might then take over the boot process. Thus, GRUB appearing after you delete rEFInd is perfectly understandable. If you want to delete GRUB, you can do so, but then if you have a Linux system installed, you will no longer be able to boot it -- at least, not easily. (You could boot your Linux kernel directly if it were on a FAT or HFS+ partition, but then you'd need to use Apple's built-in boot manager to pick between it and macOS, and that's not easy to set up.) GRUB and rEFInd are the two most flexible boot managers out there for multi-booting on a Mac or any other EFI-based computer.

    As to why Apple's boot manager (that you access via the Option key) isn't showing a non-Recovery macOS option, I'm not sure. It could be that a partition type code is wrong or a partition is otherwise damaged; or it could be that Apple's boot options have become damaged or lost. Quite honestly, I've never really understood how Apple's boot manager stores information on its boot options, and I've never delved very far into fixing problems with it. You might be able to do something with the Startup Disk tool in the System Preferences panel, but I'm afraid I can't offer much guidance. Asking on a Mac forum might get you some better help.

    An inability to (re-)install macOS to a volume with an error message of "This disk cannot be used to start up your computer" sounds like a problem with partition spacing. MacOS is pretty insistent about having a 128MiB gap between partitions, as described here. It looks like that space doesn't exist after your /dev/sda3, which is probably causing the problem. Shrinking /dev/sda3 by 128MiB (or shrinking /dev/sda4 by the same amount and then moving it so the gap is between those two partitions) should fix the problem.

    If the recovery tool says it can't contact a recovery server, then that sounds like a network access problem.

     
  • Bill McClung

    Bill McClung - 2019-10-05

    I deleted the Ubuntu partition, installed Mojave, and re-installed rEFInd and Ubuntu. Details are at StackExchange.

     

Log in to post a comment.