diskutil list disk0
diskutil eraseVolume jhfs+ "Macintosh HD" disk0s2
-bash-3.2# diskutil eraseVolume jhfs+ "Macintoch HD" disk0s2
Started erase on disk0s2
Unmounting disk
Erasing
Initialized /dev/rdisk0s2 as a 465 GB case-insensitive HFS Plus volume with a 40960k journal
Mounting disk
Finished erase on disk0s2 Macintoch HD
-bash-3.2#
diskutil list disk0
ls /Volumes/Mac*
df -H /Volumes/Mac*
-bash-3.2# ls /Volumes/Mac*
/Volumes/Mac OS X Base System:
.file dev
.vol etc
Applications private
Install OS X Mountain Lion.app sbin
Library tmp
System usr
Volumes var
bin
/Volumes/Macintoch HD:
.IAProductInfo .Trashes macOS Install Data
-bash-3.2# df -H /Volumes/Mac*
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1s2 1.2G 1.1G 38M 97% 281961 9340 97% /
/dev/disk0s2 500G 6.5G 493G 2% 1588700 120423966 1% /Volumes/Macintoch HD
-bash-3.2#
diskutil reformat disk0s2
-bash-3.2# diskutil reformat disk0s2
Started erase on disk0s2 Macintoch HD
Unmounting disk
Erasing
newfs_hfs: write (sector 28672): Invalid argument
Mounting disk
Could not mount disk0s2 with name (null) after erase
Error: -69832: File system formatter failed
-bash-3.2#