M
merci pour ton aide, oui je te confirme que l'OS proposé à la réinstallation par l'option : "Réinstaller macOS" de la session de secours est High SierraJe me permets d'enchaîner. Un bogue spécifique au programme d'installation de High Sierra --> plante une réinstallation si le Conteneur de destination héberge les volumes auxiliaires Preboot (prédémarrage) et Recovery (secours) d'une installation d'OS antérieure. Comme c'est manifestement ton cas de figure.
- confirmes-tu que l'OS proposé à la réinstallation par l'option : "Réinstaller macOS" de la session de secours --> est High Sierra ?
diskutil ap resizeContainer disk1 118g jhfs+ BOOT 0b
-bash-3.2# diskutil ap resizeContainer disk1 118g jhfs+ BOOT 0b
Started APFS operation
Aligning shrink delta to 3 123 073 024 bytes and targeting a new physical store size of 117 999 996 928 bytes
Determined the minimum size for the targeted physical store of this APFS Container to be 8 888 250 368 bytes
Resizing APFS Container designated by APFS Container Reference disk1
The specific APFS Physical Store being resized is disk0s2
Verifying storage system
Using live mode
Performing fsck_apfs -n -x -l /dev/disk0s2
Checking volume
Checking the container superblock
Checking the EFI jumpstart record
Checking the space manager
Checking the object map
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Verifying allocated space
warning: Overallocation Detected on Main device: (6868784+1) bitmap address (17085)
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Shrinking APFS Physical Store disk0s2 from 121 123 069 952 to 117 999 996 928 bytes
Shrinking APFS data structures
Shrinking partition
Modifying partition map
Initialized /dev/rdisk0s3 as a 3 GB case-insensitive HFS Plus volume with a 8192k journal
Mounting disk
1 new disk created or changed due to APFS operation
Disk from APFS operation: disk0s3
Finished APFS operation
-bash-3.2#
asr restore --s / --t /Vol*/BOOT --erase --noprompt
Pafait. Passe la commande :
Bloc de code:asr restore --s / --t /Vol*/BOOT --erase --noprompt
- la commande appelle l'utilitaire de réplication Apple asr (apple_restore_software) > à répliquer le volume de secours démarré OS X Base System (désigné par son point de montage /) => au volume BOOT créé en queue de disque. BOOT va être reformaté > renommé : OS X Base System comme la source > cloné d'un OS de secours de 1,3 Go > rendu démarrable à la fin par l'inscription d'un chemin de démarrage sur son en-tête. 2 passes : Restoring > Verifying - la progression en chacune marquée par tranches de 10%.
Poste le retour quand tout est fini.
-bash-3.2# asr restore --s / --t /Vol*/BOOT --erase --noprompt
Validating target...done
Validating source...done
Validating sizes...done
Restoring ....10....20....30....40....50....60....70....80....90....100
Verifying ....10....20....30....40....50....60....70....80....90....100
Remounting target volume...done
-bash-3.2#
diskutil eraseDisk jhfs+ "Macintosh HD" gpt disk0
diskutil list
-bash-3.2# diskutil list
/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 118.0 GB disk0s2
3: Apple_HFS OS X Base System 3.0 GB disk0s3
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +118.0 GB disk1
Physical Store disk0s2
1: APFS Volume new 5.2 GB disk1s1
2: APFS Volume Preboot 45.4 MB disk1s2
3: APFS Volume Recovery 1.0 GB disk1s3
4: APFS Volume VM 2.1 GB disk1s4
/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 +6.3 MB 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 +524.3 KB disk18
/dev/disk19 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk19
-bash-3.2#
Passe une commande :
Bloc de code:diskutil list
- et poste le tableau des disques => que je voie si le disque interne est bien disk0 et quel est l'index d'appareil actuel du Conteneur apfs.
diskutil ap deleteContainer disk1 "Macintosh HD"