Q: diskutil cant erase disk in terminal Mavericks Install
Im trying to start a complete new install of Mavericks from a USB file but im having trouble getting diskutil to erase all the partitions on my HDD, it has 2 partitions "Macintosh HD" and "Recovery HD" but when im in the terminal and use:
diskutil eraseDisk JHFS+ Test /dev/disk0 , it says it could not unmount the disk. I tried to install Mavericks from my usb file but it got so far and said "install failed. OS X could not be installed on your computer. The installer encountered an error that caused the installer to fail. Contact the software manufacturer for assistance. Click restart to restart your computer and try installing again." I know it can run Mavericks as it was on it before I started. I have tried to install it a few times but I get the same error message, In the picture below there are 12 disks made that I think came from the usb instillation that I dont know what to do with, I dont know if I need the recovery partition but im hoping Mavericks will set that up in the install if I delete it with the command above. I read that the error im getting can be fixed by resizing the "Macintosh HD" partition just a bit smaller then trying the Mavericks install again but I havnt tried that yet. I cant delete the Macintosh HD partition in the non terminal diskutil either it says it cant unmount the disk and there is no option to unmount it, see picture below. I dont know what to do to get Mavericks back a solution will be greatly appreciated.
iMac
Posted on Aug 10, 2016 9:44 AM

