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

Passe la commande :
Bloc de code:
diskutil ap resizeContainer disk1 117g jhfs+ BOOT 0b
  • tu peux passer la commande en copier-coller à rebours : copier ici avec Safari > coller dans le terminal > exécution
  • la commande rétrécit le Conteneur apfs à 117 Go > et crée un volume BOOT indépendant de 4 Go

Poste le retour.

Note : on va créer un clone de volume de secours démarrable en queue de disque > et une fois démarré dessus > tu pourras supprimer l'apfs et réinstaller High Sierra. Car un bogue du programme d'installation de cet OS bloque la réinstallation si > après reformatage du volume principal > subsistent dans le Conteneur les volumes auxiliaires Preboot et Recovery d'une installation antérieure.
 
Voici le résultat :

Bloc de code:
-bash-3.2# diskutil ap resizeContainer disk1 117g jhfs+ BOOT 0b
Started APFS operation
Resizing APFS Container designated by APFS Container Reference disk1
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: (22571201+1) bitmap address (632038)
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Shrinking APFS Physical Store disk0s2 from 121 018 208 256 to 116 999 999 488 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#
 
Dernière édition par un modérateur:
Volume créé. Passe la commande :
Bloc de code:
asr restore --s / --t /Vol*/BOOT --erase --noprompt
  • la comande restaure le volume de secours démarré (désigné par son point de montage /) => au volume BOOT qui va devenir son clone absolu

Poste le retour quand tu auras récupéré -bash-3.2# en signal de fin.
 
Le voilà :
Je comprends pas vraiment que je fais mais merci de votre aide
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#
 
Parfait -->

- redémarre (Menu  > Redémarrer) > la touche "alt" pressée pour obtenir l'écran de choix du volume de démarrage. Choisis : OS Base System (= volume BOOT restauré et renommé) > démarre dessus. Tu récupères le même écran affichant une fenêtre de 4 Utilitaires macOS que celui que tu viens de quitter.​

Repasse alors une commande :
Bloc de code:
diskutil list
  • et poste le tableau des disques => que je voie l'index d'appareil du Conteneur apfs après ce démarrage.
 
J'ai l'impression qu'il y a eu du changement

Bloc de code:
-bash-3.2# diskutil list
/dev/disk0 (internal):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                         121.3 GB   disk0
   1:                        EFI EFI                     314.6 MB   disk0s1
   2:                 Apple_APFS Container disk1         117.0 GB   disk0s2
   3:                  Apple_HFS OS X Base System        3.9 GB     disk0s3

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +117.0 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            20.5 KB    disk1s1
   2:                APFS Volume Preboot                 20.6 MB    disk1s2
   3:                APFS Volume Recovery                506.6 MB   disk1s3
   4:                APFS Volume VM                      1.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               +2.1 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#
 
On voit bien la nouvelle partition OS X Base System en queue de disque. Passe la commande :
Bloc de code:
diskutil ap deleteContainer disk1 "Macintosh HD"
  • la commande supprime l'apfs et reformate un volume Macintosh HD standard sur la partition principale

Poste le retour.
 
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 109 GB case-insensitive HFS Plus volume with a 16384k 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#

Le voilà
 
Parfait -->

- dans la fenêtre des 4 Utilitaires macOS > lance l'option : "Réinstaller macOS" => et choisis Macintosh HD en destination.​

Note : quand l'installation aura réussi et que tu auras ouvert une session d'utilisateur => il faudra qu'on supprime la partition OS X Base System > pour récupérer son espace au Conteneur apfs recréé à l'instalation.
 
Je viens de lancer l’installation. Je reviens vers vous ensuite ?

----------------------------------------------------

Ça y est, tout fonctionne ! Merci beaucoup vous me sauvez la vie !!! Y a-t-il quelque d’autre à faire ?
 
Dernière édition par un modérateur:
Content pour toi !

- tu trouves un Terminal dans ta session à: Applications > Utilitaires > Terminal. Passe la commande :​
Bloc de code:
diskutil list
  • et poste le tableau des disques => qu'on s'occupe de la partition OS X Base System de queue de disque.
 
  • J’aime
Réactions: litobar71
Merci !
Voici le résultat :

Bloc de code:
Last login: Sat Feb 20 19:56:21 on ttys000
MBP-de-NINE:~ nine$ diskutil list
/dev/disk0 (internal):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                         121.3 GB   disk0
   1:                        EFI EFI                     314.6 MB   disk0s1
   2:                 Apple_APFS Container disk1         117.0 GB   disk0s2
   3:                  Apple_HFS OS X Base System        3.9 GB     disk0s3

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +117.0 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            24.3 GB    disk1s1
   2:                APFS Volume Preboot                 24.0 MB    disk1s2
   3:                APFS Volume Recovery                519.1 MB   disk1s3
   4:                APFS Volume VM                      2.1 GB     disk1s4

/dev/disk2 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        +12.9 GB    disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:                  Apple_HFS Shared Support          12.6 GB    disk2s2

MBP-de-NINE:~ nine$
 
Dernière édition par un modérateur:
Passe la commande (copier-coller) :
Bloc de code:
diskutil eraseVolume free null disk0s3 ; diskutil ap resizeContainer disk1 0b ; diskutil list internal
  • la commande : supprime la partition OS X Base System > récupère son espace au Conteneur apfs > ré-affiche la configuration interne

Poste le retour intégral de la commande.
 
Il y a eu une erreur apparement...

Bloc de code:
Last login: Sun Feb 21 12:31:00 on console
MBP-de-NINE:~ nine$ diskutil eraseVolume free null disk0s3 ; diskutil ap resizeContainer disk1 0b ; diskutil list internal
Started erase on disk0s3 OS X Base System
Unmounting disk
Finished erase on disk0
Started APFS operation
Aligning grow delta to 4 018 208 768 bytes and targeting a new physical store size of 121 018 208 256 bytes
Determined the maximum size for the targeted physical store of this APFS Container to be 121 017 180 160 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: (1605230+18) bitmap address (172a5)
warning: Overallocation Detected on Main device: (1605248+10) bitmap address (172a5)
warning: Overallocation Detected on Main device: (1605264+7) bitmap address (172a5)
warning: Overallocation Detected on Main device: (1605298+3) bitmap address (172a5)
warning: Overallocation Detected on Main device: (1605303+9) bitmap address (172a5)
warning: Overallocation Detected on Main device: (1605312+37) bitmap address (172a5)
warning: Overallocation Detected on Main device: (1605350+1) bitmap address (172a5)
warning: Overallocation Detected on Main device: (1605352+17) bitmap address (172a5)
warning: Overallocation Detected on Main device: (1605373+3) bitmap address (172a5)
warning: Overallocation Detected on Main device: (1605376+8) bitmap address (172a5)
warning: Overallocation Detected on Main device: (1605393+7) bitmap address (172a5)
warning: Overallocation Detected on Main device: (1605571+7) bitmap address (172a5)
warning: Overallocation Detected on Main device: (1605581+51) bitmap address (172a5)
warning: Overallocation Detected on Main device: (1605632+64) bitmap address (174b2)
warning: Overallocation Detected on Main device: (1605696+64) bitmap address (174b2)
warning: Overallocation Detected on Main device: (1605760+64) bitmap address (174b2)
warning: Overallocation Detected on Main device: (1605824+64) bitmap address (174b2)
warning: Overallocation Detected on Main device: (1605888+64) bitmap address (174b2)
warning: Overallocation Detected on Main device: (1605952+64) bitmap address (174b2)
warning: Overallocation Detected on Main device: (1606016+64) bitmap address (174b2)
warning: Overallocation Detected on Main device: (1606080+29) bitmap address (174b2)
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Growing APFS Physical Store disk0s2 from 116 999 999 488 to 121 018 208 256 bytes
Modifying partition map
Growing APFS data structures
APFS Container Resize error code is 49168
A problem occurred; undoing all changes
Modifying partition map
Error: -69606: A problem occurred while resizing APFS Container structures
/dev/disk0 (internal):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                         121.3 GB   disk0
   1:                        EFI EFI                     314.6 MB   disk0s1
   2:                 Apple_APFS Container disk1         117.0 GB   disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +117.0 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            24.4 GB    disk1s1
   2:                APFS Volume Preboot                 24.4 MB    disk1s2
   3:                APFS Volume Recovery                519.1 MB   disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4

MBP-de-NINE:~ nine$
 
Quelle déveine ! l'apfs s'est installé chez toi avec une erreur interne qui rend le Conteneur in-modifiable en taille. C'est assez souvent le cas avec High Sierra.
  • il faudrait cloner la distribution de volumes dans le Conteneur d'un DDE USB > démarrer dessus > supprimer / recréer l'apfs interne > cloner à rebours. Je ne sais pas si tu as un DDE USB disponible ?
 
J'ai un DDE USB qui me sert de Time Machine pour mon iMac, donc il n'est pas vide. J'ai également un SSDE mais qui contient également beaucoup de fichiers.
 
Dernière édition par un modérateur:
Ton DDE TM doit avoir la bonne configuration pour supporter un petit repartitionnement (non destructif et réversible après emploi).

- branche ce DDE TM au Mac. Passe alors la commande (copier-coller) :​
Bloc de code:
diskutil list ; df -H
  • qui affiche : la configuration des disques et l'occupation des volumes montés

Poste le retour => je te dirai si on peut se servir de ce DDE.
 
Bloc de code:
Last login: Sun Feb 21 12:33:11 on ttys000
MBP-de-NINE:~ nine$ diskutil list ; df -H
/dev/disk0 (internal):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                         121.3 GB   disk0
   1:                        EFI EFI                     314.6 MB   disk0s1
   2:                 Apple_APFS Container disk1         117.0 GB   disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +117.0 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            24.7 GB    disk1s1
   2:                APFS Volume Preboot                 24.4 MB    disk1s2
   3:                APFS Volume Recovery                519.1 MB   disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4

/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:                  Apple_HFS N I N E                 999.9 GB   disk2s2

Filesystem      Size   Used  Avail Capacity iused               ifree %iused  Mounted on
/dev/disk1s1    117G    25G    91G    22%  440131 9223372036854335676    0%   /
devfs           193k   193k     0B   100%     651                   0  100%   /dev
map -hosts        0B     0B     0B   100%       0                   0  100%   /net
map auto_home     0B     0B     0B   100%       0                   0  100%   /home
/dev/disk1s4    117G   1.1G    91G     2%       1 9223372036854775806    0%   /Volumes/VM
/dev/disk2s2    1000   844G   156G    85% 1713529          4293253750    0%   /Volumes/N I N E
MBP-de-NINE:~ nine$
 
Le volume NINE supporte sans aucun problème un petit repartitionnement (sans toucher au contenu du volume donneur).

- passe la commande :​
Bloc de code:
diskutil resizeVolume disk2s2 940g jhfs+ Clone 0b ; diskutil list disk2
  • la commande rétrécit (non destructivement) NINE à 940 Go > et crée un volume Clone de 60 Go > avant de réafficher la configuration du DDE
  • note : si des fichiers TM se trouvent écrits sur des blocs de queue d'espace du volume > un processus automatique de clonage sur des blocs placés plus haut avant libération des blocs mal placés => va se trouver initié. Pour dégager une bande continue de 60 Go de blocs libres en queue de volume. Tout ça pour te prévenir que le repartitionement peut prendre ... du temps.

Poste le retour à la récupération de : MBP-de-NINE:~ nine$ en signal de fin.
 
Effectivement c'est très long.... je reviens vers toi quand c'est ok
Merci !
 
Dernière édition par un modérateur: