diskutil eraseVolume jhfs+ MacBook disk0s2
-bash-3.2# diskutil eraseVolume jhfs+ MacBook disk0s2
Started erase on disk0s2 Macbook
Unmounting disk
Erasing
Initialized /dev/rdisk0s2 as a 232 GB case-insensitive HFS Plus volume with a 24576k journal
Mounting disk
Finished erase on disk0s2 MacBook
-bash-3.2#
diskutil list
Last login: Mon Nov 19 06:15:02 on console
MacBookansalier:~ Marie$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *250.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS MacBook 249.2 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk1
1: Microsoft Basic Data Nouveau nom 700.0 GB disk1s1
2: Apple_HFS Clone 300.2 GB disk1s2
/dev/disk2 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +4.2 MB disk2
1: Apple_HFS Installer 4.2 MB disk2s1
MacBookansalier:~ Marie$
sudo gpt show disk1
Last login: Mon Nov 19 17:11:27 on ttys000
MacBookansalier:~ Marie$ sudo gpt show disk1
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.
To proceed, enter your password, or type Ctrl-C to abort.
Password:
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 2014
2048 1367187500 1 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
1367189548 500
1367190048 586268088 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
1953458136 7
1953458143 32 Sec GPT table
1953458175 1 Sec GPT header
MacBookansalier:~ Marie$
diskutil umountDisk force disk1
sudo gpt remove -i 2 disk1
diskutil umountDisk force disk1
sudo gpt remove -i 1 disk1