[Solved] Couldn’t read partition map when deleting APFS container

jonah_w Asks: Couldn’t read partition map when deleting APFS container
I’m trying to clean install macOS 11.5.1 via a bootable USB. But I couldn’t find the internal SSD through the onscreen installation steps. I searched Google, trying fixing this problem, and found this command: diskutil zerodisk force disk0. So I tried this in the command line(Now I realize I really shouldn’t do that). I think after this, the partion map becomes corrupt. When later found and execute the diskutil apfs delteContainer disk0s2, it returned the error: Couldn’t read partition map.

Here are the result of the command: gpt -r show disk0 and diskutil list (I couldn’t get the text to another computer, so it’s an screenshot. Sorry for the inconvenience.)

If more information is needed, please tell me. Thank you for any help or suggestion.

disk0 and disk1 is the internal SSD(I don’t know why there’re two identifier for it). disk2 is the bootable usb installer.


disk partition info

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.