diskutil eraseVolume jhfs+ "Macintosh HD" disk0 ; diskutil list disk0
-bash-3.2# diskutil eraseVolume jhfs+ "Macintosh HD" disk0 ; diskutil list disk0
Started erase on disk0
Unmounting disk
Error: -69888: Couldn't unmount disk
/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
-bash-3.2#
diskutil umountDisk force disk0
diskutil eraseDisk jhfs+ "Macintosh HD" gpt disk0 ; diskutil list disk0
-bash-3.2# diskutil eraseDisk jhfs+ "Macintosh HD" gpt disk0 ; diskutil list disk0
Started erase on disk0
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk0s2 as Mac OS Extended (Journaled) with name Macintosh HD
Initialized /dev/rdisk0s2 as a 465 GB case-insensitive HFS Plus volume with a 40960k journal
Mounting disk
Finished erase on disk0
/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 Macintosh HD 499.8 GB disk0s2
-bash-3.2#
-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_CoreStorage Macintosh HD 499.2 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +2.1 GB disk1
1: Apple_HFS macOS Base System 2.0 GB disk1s1
/dev/disk2 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +5.2 MB 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 +524.3 KB disk5
/dev/disk6 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB 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 +524.3 KB disk8
/dev/disk9 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +12.6 MB disk9
/dev/disk10 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +4.2 MB disk10
/dev/disk11 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk11
/dev/disk12 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB 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 +524.3 KB disk14
/dev/disk15 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk15
/dev/disk16 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk16
/dev/disk17 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk17
/dev/disk18 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk18
/dev/disk19 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk19
/dev/disk20 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk20
Offline
Logical Volume macOS Base System on disk0s2
405E7324-61E1-4D93-8492-9FBC5FE7479B
Locked Encrypted
-bash-3.2#
Offline
Logical Volume macOS Base System on disk0s2
405E7324-61E1-4D93-8492-9FBC5FE7479B
Locked Encrypted
diskutil cs list
-bash-3.2# diskutil cs list
CoreStorage logical volume groups (1 found)
|
+-- Logical Volume Group 29B9A689-3031-41E4-AEB8-DFBE49C73758
=========================================================
Name: Macintosh HD
Status: Online
Size: 499248103424 B (499.2 GB)
Free Space: 0 B (0 B)
|
+-< Physical Volume B224F075-8C04-4C16-928B-8E83F7A7ADFB
| ----------------------------------------------------
| Index: 0
| Disk: disk0s2
| Status: Online
| Size: 499248103424 B (499.2 GB)
|
+-> Logical Volume Family 8D0E8C22-F474-443C-8E66-72C6C037725B
----------------------------------------------------------
Encryption Type: AES-XTS
Encryption Status: Unlocked
Conversion Status: Complete
High Level Queries: Fully Secure
| Passphrase Required
| Accepts New Users
| Has Visible Users
| Has Volume Key
|
+-> Logical Volume 405E7324-61E1-4D93-8492-9FBC5FE7479B
---------------------------------------------------
Disk: disk21
Status: Online
Size (Total): 498895781888 B (498.9 GB)
Revertible: Yes (unlock and decryption required)
LV Name: macOS Base System
Volume Name: macOS Base System
Content Hint: Apple_HFS
-bash-3.2#
diskutil cs deleteLVG 29B9A689-3031-41E4-AEB8-DFBE49C73758
-bash-3.2# diskutil cs deleteLVG 29B9A689-3031-41E4-AEB8-DFBE49C73758
Started CoreStorage operation
Unmounting Logical Volumes
Destroying Logical Volume Group
Erasing disk0s2
Initialized /dev/rdisk0s2 as a 465 GB case-insensitive HFS Plus volume with a 40960k journal
Mounting disk
Finished CoreStorage operation
-bash-3.2#
diskutil rename disk0s2 "Macintosh HD"