10.13 High Sierra "Impossible de créer un volume prédémarrage pour installation APFS"

oporter

Nouveau membre
5 Mars 2021
9
0
40
Bloc de code:
-bash-3.2# diskutil ap resizeContainer disk1 495g jhfs+ BOOT 0b
Started APFS operation
Aligning shrink delta to 4 763 889 664 bytes and targeting a new physical store size of 494 999 998 464 bytes
Determined the minimum size for the targeted physical store of this APFS Container to be 11 033 694 208 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: (82416716+1) bitmap address (70d1)
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Shrinking APFS Physical Store disk0s2 from 499 763 888 128 to 494 999 998 464 bytes
Shrinking APFS data structures
Shrinking partition
Modifying partition map
Initialized /dev/rdisk0s3 as a 4 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#
 

macomaniac

Ouroboros
Club MacG
20 Septembre 2012
83 245
25 061
Forêt de Fontainebleau
Volume créé. Passe encore la commande (copier-coller à rebours) :
Bloc de code:
asr restore --s / --t /Vol*/BOOT --erase --noprompt
  • la commande utilise l'exécutable Apple asr (apple_software_restore) > pour restaurer (= cloner en "mode blocs" absolu) le volume OS X Base System de l'OS de secours démarré (désigné par son point de montage /) => au volume BOOT. 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 tu auras récupéré -bash-3.2# en signal de fin.
 

oporter

Nouveau membre
5 Mars 2021
9
0
40
Voila le bon retour de la commande :

Bloc de code:
-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#
 

macomaniac

Ouroboros
Club MacG
20 Septembre 2012
83 245
25 061
Forêt de Fontainebleau
Parfait -->

- redémarre (Menu  > Redémarrer) > et presse aussitôt la touche "alt" pour obtenir l'écran de choix du volume de démarrage. Choisis : OS X Base System > démarre dessus. Tu retrouves le même écran aux 4 Utilitaires macOS que celui que tu viens de quitter.​

Repasse alors la commande :
Bloc de code:
diskutil list
  • et poste le tableau des disques (la partie du haut où l'on voit le Conteneur).
 

oporter

Nouveau membre
5 Mars 2021
9
0
40
Bloc de code:
-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_APFS Container disk1         495.0 GB   disk0s2
   3:                  Apple_HFS OS X Base System        4.8 GB     disk0s3

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +495.0 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            5.2 GB     disk1s1
   2:                APFS Volume Preboot                 22.7 MB    disk1s2
   3:                APFS Volume Recovery                512.1 MB   disk1s3
   4:                APFS Volume VM                      20.5 KB    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#
 

macomaniac

Ouroboros
Club MacG
20 Septembre 2012
83 245
25 061
Forêt de Fontainebleau
Passe la commande (copier-coller à rebours) :
Bloc de code:
diskutil ap deleteContainer disk1 "Macintosh HD"
  • la commande supprime l'apfs et reformate un volume Macinotsh HD standard

Poste le retour.
 

oporter

Nouveau membre
5 Mars 2021
9
0
40
Bloc de code:
-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" on disk1s1
Unmounting Volume "Preboot" on disk1s2
Unmounting Volume "Recovery" on disk1s3
Unmounting Volume "VM" on disk1s4
Deleting Volumes
Deleting Container
Wiping former APFS disks
Switching content types
Reformatting former APFS disks
Initialized /dev/rdisk0s2 as a 461 GB case-insensitive HFS Plus volume with a 40960k journal
Mounting disk
1 new disk created or changed due to APFS operation
Disk from APFS operation: disk0s2
Finished APFS operation on disk1
-bash-3.2#
 

macomaniac

Ouroboros
Club MacG
20 Septembre 2012
83 245
25 061
Forêt de Fontainebleau
Parfait : feu vert pour la réinstallation ! -->

- dans la fenêtre des 4 Utilitaires macOS > lance l'option : "Réinstaller macOS" => et choisis Macintosh HD comme destination de l'installation lorsque cela te sera proposé.​

Note : quand tu auras réinstallé > créé un compte d'utilisateur > ouvert sa session => il faudra qu'on supprime la partition auxiliaire OS X Base System pour récupérer son espace au Conteneur qui aura été recréé.
 

oporter

Nouveau membre
5 Mars 2021
9
0
40
Merci pour ton aide en tout cas, je suis en train de ré-installer l'os.

Comment je devrais "supprimer la partition auxiliaire OS X Base System pour récupérer son espace au Conteneur qui aura été recréé."?
 

macomaniac

Ouroboros
Club MacG
20 Septembre 2012
83 245
25 061
Forêt de Fontainebleau
Une fois que tu auras ouvert ta session d'utilisateur > tu trouveras un terminal at: Applications > Utilitaires > Terminal.

- lance-le > passe la commande (copier-coller) :​
Bloc de code:
diskutil eraseVolume free null disk0s3 ; diskutil ap resizeContainer disk1 0b ; diskutil list
  • commande qui : effacera la partition OS X Base System > récupérera son espace au Conteneur apfs recréé > ré-affichera le tableau des disques

Poste alors le retour complet de la commande.
 

oporter

Nouveau membre
5 Mars 2021
9
0
40
Bloc de code:
Last login: Fri Mar  5 18:23:53 on console
imac:~ admin$ diskutil eraseVolume free null disk0s3 ; diskutil ap resizeContainer disk1 0b ; diskutil list
Started erase on disk0s3 OS X Base System
Unmounting disk
Finished erase on disk0
Started APFS operation
Aligning grow delta to 4 898 107 392 bytes and targeting a new physical store size of 499 898 105 856 bytes
Determined the maximum size for the targeted physical store of this APFS Container to be 499 897 077 760 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
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Growing APFS Physical Store disk0s2 from 494 999 998 464 to 499 898 105 856 bytes
Modifying partition map
Growing APFS data structures
Finished APFS operation
/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.9 GB   disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +499.9 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            11.2 GB    disk1s1
   2:                APFS Volume Preboot                 22.7 MB    disk1s2
   3:                APFS Volume Recovery                516.2 MB   disk1s3
   4:                APFS Volume VM                      20.5 KB    disk1s4

imac:~ admin$