Bootcamp – Votre disque n'a pas pu être partitionné

Et bim :
Bloc de code:
~ ❯❯❯ diskutil eraseDisk apfs "Macintosh HD" gpt disk0 ; diskutil list internal
Started erase on disk0
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk0s2 as APFS with name Macintosh HD
Mounting disk
Finished erase on disk0
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *251.0 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         250.8 GB   disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +250.8 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            798.7 KB   disk1s1
 
Par prudence > on fait un test repartitionnement / départionnemnent (avant rétro-clonage).

- passe la commande :
Bloc de code:
diskutil ap resizeContainer disk1 150g fat32 BOOTCAMP 0b ; diskutil list internal

  • la commande rétrécit le Conteneur à 150 Go et crée un volume BOOTCAMP en format FAT-32 de 100 Go > puis ré-affiche la configuration interne

Poste le retour.
 
Ok !
Bloc de code:
~ ❯❯❯ diskutil ap resizeContainer disk1 150g fat32 BOOTCAMP 0b ; diskutil list internal
Started APFS operation
Aligning shrink delta to 100 790 439 936 bytes and targeting a new physical store size of 149 999 996 928 bytes
Determined the minimum size for the targeted physical store of this APFS Container to be 1 509 949 440 bytes
Resizing APFS Container designated by APFS Container Reference disk1
The specific APFS Physical Store being resized is disk0s2
Verifying storage system
Performing fsck_apfs -n -x -S /dev/disk0s2
Checking the container superblock
Checking the space manager
Checking the space manager free queue trees
Checking the object map
Checking volume
Checking the APFS volume superblock
The volume Macintosh HD was formatted by newfs_apfs (1412.101.1) and last modified by apfs_kext (1412.101.1)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
Verifying allocated space
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Shrinking APFS Physical Store disk0s2 from 250 790 436 864 to 149 999 996 928 bytes
Shrinking APFS data structures
Shrinking partition
Modifying partition map
4096 bytes per physical sector
/dev/rdisk0s3: 196805632 sectors in 3075088 FAT32 clusters (32768 bytes/cluster)
bps=512 spc=64 res=32 nft=2 mid=0xf8 spt=32 hds=255 hid=293380096 drv=0x80 bsec=196853760 bspf=24032 rdcl=2 infs=1 bkbs=6
Mounting disk
1 new disk created or changed due to APFS operation
Disk from APFS operation: disk0s3
Finished APFS operation
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *251.0 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         150.0 GB   disk0s2
   3:       Microsoft Basic Data BOOTCAMP                100.8 GB   disk0s3

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +150.0 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            720.9 KB   disk1s1
 
Parfait : pas de blocage dans l'apfs cette fois-ci. Passe la commande :
Bloc de code:
diskutil eraseVolume free null disk0s3 ; diskutil ap resizeContainer disk1 0b ; diskutil list internal

  • la commande supprime la partition BOOTCAMP > récupère son espace au Conteneur apfs > réaffiche la configuration interne

Poste le retouor.
 
J'aime quand un plan se déroule sans accroc !
Bloc de code:
~ ❯❯❯ diskutil eraseVolume free null disk0s3 ; diskutil ap resizeContainer disk1 0b ; diskutil list internal
Started erase on disk0s3 BOOTCAMP
Unmounting disk
Finished erase on disk0
Started APFS operation
Aligning grow delta to 100 790 439 936 bytes and targeting a new physical store size of 250 790 436 864 bytes
Determined the maximum size for the targeted physical store of this APFS Container to be 250 789 408 768 bytes
Resizing APFS Container designated by APFS Container Reference disk1
The specific APFS Physical Store being resized is disk0s2
Verifying storage system
Performing fsck_apfs -n -x -S /dev/disk0s2
Checking the container superblock
Checking the space manager
Checking the space manager free queue trees
Checking the object map
Checking volume
Checking the APFS volume superblock
The volume Macintosh HD was formatted by newfs_apfs (1412.101.1) and last modified by apfs_kext (1412.101.1)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
Verifying allocated space
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Growing APFS Physical Store disk0s2 from 149 999 996 928 to 250 790 436 864 bytes
Modifying partition map
Growing APFS data structures
Finished APFS operation
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *251.0 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         250.8 GB   disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +250.8 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            745.5 KB   disk1s1
 
Aucun problème d'apfs. C'était l'enjeu de l'opération.

- donc passe une commande :​
Bloc de code:
caffeinate -dimsu &

  • qui va empêcher le Mac de dormir et planque la fenêtre du terminal que tu laisses ouverte dans un coin
----------

Puis lance Carbon Copy Cloner (qui s'est cloné dans les Applications du clone) > et définis une tâche où :

- source = Clone > destination = Macintosh HD > SafetyNet = Désactivé

=> et presse le bouton : "Cloner". CCC va effectuer à l'envers le clonage qu'il avait fait à l'endroit > en imageant la distribution du Conteneur externe => dans le Conteneur interne.


Préviens quand c'est fini.
 
Il valait mieux activer le processus caffeinate alors ! La durée du clonage a dû dépendre du faible débit en écriture dans la session de Clone.

- passe la commande :​
Bloc de code:
diskutil list

  • et poste le tableau des disques => qu'on voie la configuration interne en comparaison de l'externe.
 
C'est clair.
Bloc de code:
~ ❯❯❯ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *251.0 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         250.8 GB   disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +250.8 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD - Données  104.6 GB   disk1s1
   2:                APFS Volume Macintosh HD            11.0 GB    disk1s2
   3:                APFS Volume Preboot                 82.7 MB    disk1s3
   4:                APFS Volume Recovery                544.0 MB   disk1s4
   5:                APFS Volume VM                      1.1 GB     disk1s5

/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *2.0 TB     disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:                  Apple_HFS Time machine            1.2 TB     disk2s2
   3:                 Apple_APFS Container disk3         260.4 GB   disk2s3
   4:                  Apple_HFS Bootable backup         265.3 GB   disk2s4
   5:                 Apple_Boot Recovery HD             650.0 MB   disk2s5
   6:                  Apple_HFS Install macOS Catalina  273.3 GB   disk2s6

/dev/disk3 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +260.4 GB   disk3
                                 Physical Store disk2s3
   1:                APFS Volume Clone - Données         111.8 GB   disk3s1
   2:                APFS Volume Clone                   11.0 GB    disk3s2
   3:                APFS Volume Preboot                 82.7 MB    disk3s3
   4:                APFS Volume Recovery                534.5 MB   disk3s4
   5:                APFS Volume VM                      8.6 GB     disk3s5
 
Redémarre avec "alt" > choisis Macintosh HD > démarre dessus -->

- est-ce que tu retrouves ta session conforme à celle du clone ?​
 
Je l'espère. Je vais relancer l'assistant Bootcamp pour voir s'il arrive à créer une partition Windows, mais si on se base sur l'essai que tu m'as fait faire avant le rétro-clonage ça devrait marcher ! :up:
 
Ça fonctionne ! J'ai pu recréer ma partition windows sans accroc.

Merci infiniment pour ton aide, j'ai presque hâte d'avoir à nouveau un problème d'apfs pour bénéficier à nouveau de ton expertise et de ta pédagogie (bon d'accord je ne saboterai rien intentionnellement) !

Tous les héros ne portent pas de cape.
 
Petit bonus si ça arrive à d'autres gens : quelque part dans le process il semble que "Macintosh HD" ait été ajouté à la blacklist de Spotlight (peut-être par CCC qui l'a considéré comme un disque de sauvegarde quand j'ai "rétrocloné" Clone vers Macintosh HD ?). J'ai du l'enlever pour pouvoir à nouveau trouver mes applications via Spotlight.
 

Fichiers joints

  • Capture d’écran 2020-04-02 à 15.07.10.png
    Capture d’écran 2020-04-02 à 15.07.10.png
    468,2 KB · Affichages: 165