1

I had installed Ubuntu on my MacBook, but I don't need it anymore so I was trying to delete the parts of Ubuntu.

When I entered Disk Utility the minus button was greyed out, so I checked some videos and they explained that sometimes you just need to change the format of the partitions and the minus button becomes active, but I didn't see any change. Then here on Stack Exchange, I saw that someone reboot his Mac and entered Disk Utility from the Recovery, but when I rebooted my Mac a message appeared: GNU GRUB version 2.06 and now can't see any of my partitions even when I enter to Disk Utility and if I used ⌥ Option I only see EFI Boot.

I hope someone could help me, please. Because I'm very concerned and I don't want to lose my information.

sw_vers and diskutil list output

Diskutil output

Update I created a bootable USB with Linux Mint. I used the command lsblkand I could see my disks. Now I want to know if I can access my files from here. Or I don't know if I can solve the problem by deleting nvme0nlp3 which is the partition that had Ubuntu.

enter image description here

Update gdisk -l /dev/nvme0n1 enter image description here

12
  • How can you enter Disk Utility if you can not boot to macOS or macOS recovery? Commented Feb 13, 2023 at 7:50
  • When I deleted the Ubuntu partition I was using my macOS sesion. But the problem appeard when I was trying to reboot. And I have access to macOS recovery, but I don't see my macOS disk I only see EFI Boot.
    – Omar15
    Commented Feb 13, 2023 at 15:06
  • How old is your backup? It's probably easier to just wipe the drive and reinstall macOS. Commented Feb 13, 2023 at 15:22
  • That is Recovery. You're seeing a bunch of RAM disks used by the installer.
    – Allan
    Commented Feb 13, 2023 at 19:20
  • It would appear the internal drive and/or hardware that supports the internal drive is failing intermittently. Commented Feb 13, 2023 at 19:50

1 Answer 1

0

This answer assumes the version of macOS installed on the OP's Mac is Mojave or newer.

The Code FFFF shown in the output from gdisk -l /dev/nvme0n1 should be AF0A. You can change this by running the interactive version of the gdisk command. Start by entering the command given below while booted to Linux Mint.

gdisk /dev/nvme0n1

Next, enter the values given in the Entry column of the table below.

Entry Type Comment
t command Change a partition's type code
2 parameter Partition number
af0a parameter Hex code or GUID
w command Write table to disk and exit
y parameter Do you want to proceed? (Y/N)
1
  • 1
    This works also on macOS High Sierra
    – Omar15
    Commented Feb 14, 2023 at 18:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .