-bash-3.2# diskutil erasevolume jhfs+ "Macintosh HD" disk0s2
You cannot erase the boot disk
-bash-3.2# diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS OS X Base System 499.2 GB disk0s2
/dev/disk1 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +5.2 MB disk1
/dev/disk2 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk2
/dev/disk3 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk3
/dev/disk4 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk4
/dev/disk5 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk5
/dev/disk6 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk6
/dev/disk7 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk7
/dev/disk8 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +12.6 MB disk8
/dev/disk9 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +4.2 MB disk9
/dev/disk10 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk10
/dev/disk11 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk11
/dev/disk12 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk12
/dev/disk13 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk13
/dev/disk14 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk14
/dev/disk15 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk15
/dev/disk16 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk16
/dev/disk17 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk17
/dev/disk18 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk18
-bash-3.2# mount
/dev/disk0s2 on / (hfs, local, read-only)
devfs on /dev (devfs, local, nobrowse)
/dev/disk1 on /private/var/log (hfs, local, union, nobrowse)
/dev/disk2 on /Volumes (hfs, local, union, nobrowse)
/dev/disk3 on /private/var/tmp (hfs, local, union, nobrowse)
/dev/disk4 on /private/var/run (hfs, local, union, nobrowse)
/dev/disk5 on /private/tmp (hfs, local, union, nobrowse)
/dev/disk6 on /System/Installation (hfs, local, union, nobrowse)
/dev/disk7 on /private/var/db (hfs, local, union, nobrowse)
/dev/disk8 on /private/var/folders (hfs, local, union, nobrowse)
/dev/disk9 on /private/var/root/Library (hfs, local, union, nobrowse)
/dev/disk11 on /private/var/root/Library/Containers (hfs, local, union, nobrowse)
/dev/disk12 on /Library/Preferences (hfs, local, union, nobrowse)
/dev/disk13 on /Library/Preferences/SystemConfiguration (hfs, local, union, nobrowse)
/dev/disk14 on /Library/Keychains (hfs, local, union, nobrowse)
/dev/disk15 on /private/var/tmp/RecoveryTemp (hfs, local, union, nobrowse)
/dev/disk16 on /private/var/tmp/OSISPredicateUpdateProductTemp (hfs, local, union, nobrowse)
/dev/disk17 on /private/var/tmp/InstallerCookies (hfs, local, union, nobrowse)
/dev/disk18 on /Library/Logs/DiagnosticReports (hfs, local, union, nobrowse)
-bash-3.2#