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


Should 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. If 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 fallacious kind, you’ll not be allowed besides to common macOS Restoration. Booting to Web Restoration shouldn’t be the one approach to right the partition kind. For instance, you can also make a bootable Ubuntu Reside flash drive. After booting from the flash drive, you need to use the gdisk command to right kind partition kind. Be aware that gdisk makes use of codes to symbolize kind partition kind GUIDs. In your case, you will have the code for APFS which is AF0A. Or, you possibly can enter the precise APFS GUID of 7C3457EF-0000-11AA-AA11-00306543ECAC.


Learn how to Use the gdisk Command

  1. Enter the lsblk command. From the output, decide the title of the inner drive the place Ubuntu is put in. This often will probably 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 totally 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 Sort Remark
    p command Print the partition desk
    t command Change a partition’s kind code
    2 parameter Partition quantity (In case your partition quantity is totally different, then make the suitable substitution.)
    af0a parameter Hex code
    w command Write desk to disk and exit
    y parameter Verify to proceed

Recent Articles

Related Stories

Leave A Reply

Please enter your comment!
Please enter your name here