diskutil eraseVolume jhfs+ "Macintosh HD" disk15
diskutil list
Last login: Thu May 27 11:52:35 on console
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
MacBook-Pro-de-Aurore:~ CallMeA$ 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_APFS Container disk1 499.8 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +499.8 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD - Données 193.3 GB disk1s1
2: APFS Volume Preboot 31.6 MB disk1s2
3: APFS Volume Recovery 525.8 MB disk1s3
4: APFS Volume VM 3.2 GB disk1s4
5: APFS Volume Macintosh HD 11.3 GB disk1s5
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *8.0 GB disk2
1: Apple_HFS USB Amorçable 8.0 GB disk2s1
MacBook-Pro-de-Aurore:~ CallMeA$
diskutil eraseDisk jhfs+ CLE gpt disk2 ; diskutil list disk2
Last login: Thu May 27 11:52:35 on console
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
MacBook-Pro-de-Aurore:~ CallMeA$ 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_APFS Container disk1 499.8 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +499.8 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD - Données 193.3 GB disk1s1
2: APFS Volume Preboot 31.6 MB disk1s2
3: APFS Volume Recovery 525.8 MB disk1s3
4: APFS Volume VM 3.2 GB disk1s4
5: APFS Volume Macintosh HD 11.3 GB disk1s5
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *8.0 GB disk2
1: Apple_HFS USB Amorçable 8.0 GB disk2s1
MacBook-Pro-de-Aurore:~ CallMeA$ diskutil eraseDisk jhfs+ CLE gpt disk2 ; diskutil list disk2
Started erase on disk2
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk2s2 as Mac OS Extended (Journaled) with name CLE
Initialized /dev/rdisk2s2 as a 7 GB case-insensitive HFS Plus volume with a 8192k journal
Mounting disk
Finished erase on disk2
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *8.0 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS CLE 7.7 GB disk2s2
MacBook-Pro-de-Aurore:~ CallMeA$