Re-installing Mac OS after erasing disks
Good morning,
I have a MacBook Pro A1707 (intel chip) that I wanted to factory reset and remove all data from. I did this through the command line and probably messed some stuff up because I can't seem to re-install MacOS. My knowledge is very limited when it comes to hard drives, partitions, etc., and I'm pretty sure I messed it all up.
Attached are images of my disk utility and the errors I receive when I try to erase a disk or perform first aid on the disk. Also attached is an image of the error I receive when I try to re-install MacOS.
When I try to erase the disk through the command line, I receive a "Disk cannot be unmounted" error on every disk.
I know that there is a way to repair and format these disks correctly, but my knowledge just isn't there. I would like to use this as a learning experience, and any guidance would be greatly appreciated.
Thank you!
Images:
MacBook Pro 15″, macOS 12.2