Friday, December 20, 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 likelihood the kind 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 mistaken kind, you’ll not be allowed in addition to common macOS Restoration. Booting to Web Restoration just isn’t the one technique to right the partition kind. For instance, you can also make a bootable Ubuntu Stay flash drive. After booting from the flash drive, you should utilize 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.


The right way 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 normally will likely 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 Kind 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

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles