1

after trying to remove a linux distribution through diskutil, i somehow managed to mess up my OS-Volume - i can't boot:

  • Output of diskutil list

output diskutil list

  • Output of gpt -r show /dev/disk0

output gpt -r show /dev/disk0

Thats the output i get after trying this fix: related question, before it looked like this:

before fix

In the recovery-mode disk tool, the disk0s2 is now shown but grayed out, i cannot mount it either. Trying diskutil verifydisk disk0 gives me the following error:

verify error

Thanks for the help

5
  • You will have to go through the process of identifying what the partition type should be. This answer explains how to do this. Do you know what version of macOS was installed? Apr 3, 2020 at 18:06
  • I have mojave installed. So i guess it needs to be APFS instead of HFSJ Extended. However, when i use gpt remove -i 2 disk0 again, i now get: gpt remove: unable to open device 'disk0': Resource busy
    – pmoritz
    Apr 3, 2020 at 18:17
  • @pmoritz You have to boot to Internet Recovery Mode or to a second boot drive (e.g. a thumb drive)!
    – klanomath
    Apr 3, 2020 at 18:27
  • Try entering diskutil unmountdisk disk0 before the gpt command. Apr 3, 2020 at 18:30
  • Problem was that I wasn't using internet recovery. It works now, thanks
    – pmoritz
    Apr 4, 2020 at 19:32

0

You must log in to answer this question.

Browse other questions tagged .