diskutil rename disk1s5 "Macintosh HD" ; diskutil rename disk1s1 "Macintosh HD - Données"
Oui !!!! on voit le bout- d'accord à présent pour un reformatage de l'apfs interne => avant une réinstallation propre ?
diskutil list internal
MacosXMDavs-MBP:~ David$ diskutil rename disk1s5 "Macintosh HD" ; diskutil rename disk1s1 "Macintosh HD - Données"
Volume on disk1s5 renamed to Macintosh HD
Volume on disk1s1 renamed to Macintosh HD - Données
ls /Vol*/Mac*\Do*
-bash-3.2# diskutil list internal
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 121.1 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +121.1 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD - Données 105.0 GB disk1s1
2: APFS Volume Preboot 138.8 MB disk1s2
3: APFS Volume Recovery 610.4 MB disk1s3
4: APFS Volume VM 2.1 GB disk1s4
5: APFS Volume Macintosh HD 8.6 GB disk1s5
6: APFS Volume Update 111.2 MB disk1s6
-bash-3.2#
diskutil eraseDisk jhfs+ "Macintosh HD" gpt disk0
sudo rm -rf /Volumes/"Macintosh HD - Données"/"macOS Install Data" ; ls /Vol*/Mac*\Do*
diskutil ap deleteContainer disk1 "Macintosh HD"
MacosXMDavs-MBP:~ David$ sudo rm -rf /Volumes/"Macintosh HD - Données"/"macOS Install Data" ; ls /Vol*/Mac*\Do*
Applications Volumes private
Informations sur l’utilisateur cores sw
Library home usr
System mnt
Users opt
sudo diskutil mount disk1s2 ; bless --info /Vol*/*HD
-bash-3.2# diskutil ap deleteContainer disk1 "Macintosh HD"
Started APFS operation on disk1
Deleting APFS Container with all of its APFS Volumes
Unmounting Volumes
Unmounting Volume "Macintosh HD - Données" on disk1s1
The volume "Macintosh HD - Données" on disk1s1 couldn't be unmounted because it is in use by process 949 (diskimages-helper)
Error: -69888: Couldn't unmount disk
-bash-3.2#
Volume Preboot on disk1s2 mounted
5565 => Blessed System File is <missing>
5543 => Blessed System Folder is /Volumes/Preboot/2DCD733A-4764-3EAE-9F04-A519E51E6F6A/com.apple.installer
The blessed volume in this APFS container is "/Volumes/Macintosh HD - Données"
diskutil umount force disk1s1
sudo bless --folder /Vol*/*HD/System/Library/CoreServices --file /Vol*/*HD/System/Library/CoreServices/boot.efi --setBoot
bless --info /Vol*/*HD