-0.4 C
New York
Friday, December 6, 2024

macos – Twin-Boot MacBook Professional 2015 caught loading into GNU GRUB model 2.04


In the event you used the Disk Utility or diskutil command to take away a Linux partition, then there’s a pretty good probability the sort for the partition containing macOS was modified to FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF. Apparently, you didn’t take away the Ubuntu boot (GRUB) information from the EFI partition. Once you boot your Mac, the firmware will solely detect these Ubuntu boot information which is why your Mac is booting to GRUB. Because the partition containing macOS is the improper sort, you’ll not be allowed as well to common macOS Restoration. Booting to Web Restoration shouldn’t be the one option to appropriate the partition sort. For instance, you may make a bootable Ubuntu Dwell flash drive. After booting from the flash drive, you should utilize the gdisk command to appropriate sort partition sort. Notice that gdisk makes use of codes to characterize sort partition sort GUIDs. In your case, you will have the code for APFS which is AF0A. Or, you’ll be able to enter the precise APFS GUID of 7C3457EF-0000-11AA-AA11-00306543ECAC.


Tips on how to Use the gdisk Command

  1. Enter the lsblk command. From the output, decide the title of the interior drive the place Ubuntu is put in. This often can be both sda or nvme0n1. Right here I’ll assume nvme0n1.

  2. Enter the next command. In case your title from from the earlier step is completely different from nvme0n1, then make the suitable substitution.

    sudo gdisk /dev/nvme0n1
    
  3. The gdisk command is interactive. Enter the values proven within the first column of the desk.

    Entry Kind Remark
    p command Print the partition desk
    t command Change a partition’s sort code
    2 parameter Partition quantity (In case your partition quantity is completely different, then make the suitable substitution.)
    af0a parameter Hex code
    w command Write desk to disk and exit
    y parameter Affirm to proceed

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles