disk0s2 can't mount - Partition shows as "MBR part 255"

Something happened with my BootCamp configuration and now my MBP will only boot into windows. When I booted into recovery and checked the Disk Utility, the "disk0s2" was unmounted and couldn't be mounted. I tried to follow guides where people had similar issues, however, I believe I've dug my hole deeper.


I'm getting an error that there's a "suspicious" and "malformed" MBR at sector 0. I'm also getting an error the there is "no space available on device" when trying to add the partition back.


The image below shows my current gpt output. Can anyone help get my OSX partition back to bootable?


Thank you in advance!!!


User uploaded file

MacBook Pro

Posted on Jul 31, 2018 1:44 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 1, 2018 4:41 PM

Run


gpt remove -i 2 /dev/disk0

gpt add -i 2 -b 409640 -s 158339032 -t apfs /dev/disk0


If 'apfs' gives you an error, then


gpt add -i 2 -b 409640 -s 158339032 -t 7C3457EF-0000-11AA-AA11-00306543ECAC /dev/disk0


Now run


diskutil repairDisk disk0


and reboot and test if macOS will boot properly.

Similar questions

81 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

disk0s2 can't mount - Partition shows as "MBR part 255"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.