Impossible de Partionner Boot Camp

Erwannlcb

Membre confirmé
29 Janvier 2019
24
0
49
Bonsoir,

Voulant installer Windows 10 en dual boot sur mon macbook air de 2017 j'ai téléchargé le fichier iso sur le site de Windows, puis me suis rendu dans bootcamp pour pouvoir partitionner mon disque cependant malgré un espace libre de 86,64 GO le message d'erreur est le suivant :
"Une erreur s’est produite lors du partitionnement du disque. Veuillez exécuter Utilitaire de disque pour consulter et corriger l’erreur."

De plus je ne comprends pas pourquoi il y a marqué le conteneur APFS disk1 sera partionné ainsi au lieu de macintosh HD, je ne sais pas ci cela a avoir avec mon problème.
Merci d'avance de votre aide



Note de la modération: pas trop de rapport avec les portables Mac, je déplace dans le forum adéquat.
 

Fichiers joints

  • fullsizeoutput_9.jpeg
    fullsizeoutput_9.jpeg
    155,7 KB · Affichages: 216
Dernière édition par un modérateur:
Bonsoir Erwann

Voici comment tu vas pouvoir fournir les informations de base -->

- va à : Applications > Utilitaires > lance le «Terminal». Dans la fenêtre ouverte > saisis la commande (informative) :
Bloc de code:
diskutil list
et ↩︎ (presse la touche "Entrée" du clavier pour exécuter la commande)

  • tu vas voir s'afficher le tableau des disques attachés au Mac (en interne / externe) > avec leurs paramètres de tables de partition > partitions > Conteneur CoreStorage si présent > Conteneur apfs si présent

Poste ce tableau ici en copier-coller (pas de capture) > mais attention ! > avant de faire ton coller -->
  • dans la page de ce fil de MacGé > presse le bouton
    524315_original.png
    ici :
    521520_original.png

    menu  : </> Code > par ⌘V colle dans la fenêtre Code > presse le bouton Insérer (ce procédé permet un affichage fenêtré qui économise l'espace de page en respectant la mise en forme des tableaux du «Terminal» --> d'où une plus grande lisibilité)

=> ces informations montreront la configuration du disque.
 
  • J’aime
Réactions: matiouze007
Bonsoir Macomaniac Voici le résultat de la commande
Bloc de code:
Last login: Tue Jan 29 20:58:11 on console
MacBook-de-Erwann:~ erwanndroin$ 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         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            31.8 GB    disk1s1
   2:                APFS Volume Preboot                 129.4 MB   disk1s2
   3:                APFS Volume Recovery                2.0 GB     disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4

/dev/disk2 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            ESD-ISO                +4.2 GB     disk2
 
Dernière édition:
Tu as un Conteneur apfs de 121 Go de capacité. Avec une occupation d'environ 35 Go. Ce qui donne théoriquement 86 Go d'espace libre.

Passe la commande (copier-coller) :
Bloc de code:
tmutil listlocalsnapshots /

  • la commande liste les instantanés (snapshots) du volume qui existeraient (et pourraient retenir des l'espace de blocs occupé un peu partout dans le Conteneur --> ce qui bloque alors la possibilité d'un repartitionnement). Sinon > elle retourne directement l'invite de commande MacBook-de-Erwann:~ erwanndroin$

=> poste le retour.
 
Voici le retour,

Bloc de code:
Last login: Tue Jan 29 21:23:19 on ttys000
MacBook-de-Erwann:~ erwanndroin$ tmutil listlocalsnapshots /
MacBook-de-Erwann:~ erwanndroin$
 
Aucun snapshot.

Passe la commande expérimentale (copier-coller) :
Bloc de code:
diskutil ap resizeContainer disk1 51g fat32 BOOTCAMP 0b ; diskutil list

  • la commande rétrécit le Conteneur apfs à 51 Go > et crée une partition de 70 Go avec un volume BOOTCAMP en format FAT-32 > puis réaffiche le tableau des disques

Poste l'ensemble de l'affichage retourné.
 
Voici le retour
Bloc de code:
Last login: Tue Jan 29 21:24:06 on ttys000
MacBook-de-Erwann:~ erwanndroin$ diskutil ap resizeContainer disk1 51g fat32 BOOTCAMP 0b ; diskutil list
Started APFS operation
Aligning shrink delta to 70 123 073 536 bytes and targeting a new physical store size of 50 999 996 416 bytes
Determined the minimum size for the targeted physical store of this APFS Container to be 36 603 432 960 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 -S /dev/disk0s2
Checking the container superblock
Checking the EFI jumpstart record
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 diskmanagemen (945.200.91.31.4) and last modified by apfs_kext (945.230.6)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
Checking volume
Checking the APFS volume superblock
The volume Preboot was formatted by newfs_apfs (748.41.3) and last modified by apfs_kext (945.230.6)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
Checking volume
Checking the APFS volume superblock
The volume Recovery was formatted by newfs_apfs (748.41.3) and last modified by apfs_kext (945.230.6)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
Checking volume
Checking the APFS volume superblock
The volume VM was formatted by newfs_apfs (748.41.3) and last modified by apfs_kext (945.230.6)
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
warning: Overallocation Detected on Main device: (17434308+1) bitmap address (5936d)
warning: Overallocation Detected on Main device: (17648523+1) bitmap address (59383)
warning: Overallocation Detected on Main device: (24553016+1) bitmap address (59331)
Performing deferred repairs
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 50 999 996 416 bytes
Shrinking APFS data structures
APFS Container Resize error code is 49187
Error: -69606: A problem occurred while resizing APFS Container structures
/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            31.9 GB    disk1s1
   2:                APFS Volume Preboot                 129.4 MB   disk1s2
   3:                APFS Volume Recovery                2.0 GB     disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4

/dev/disk2 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            ESD-ISO                +4.2 GB     disk2

MacBook-de-Erwann:~ erwanndroin$
 
On a la réponse à ton problème dans ce message d'erreur :
Bloc de code:
Error: -69606: A problem occurred while resizing APFS Container structures

  • l'apfs s'est installé avec une erreur interne qui verrouille en taille le Conteneur apfs. C'est là le facteur bloquant et pas un manque d'espace libre ou la présence de snapshots rétenteurs d'espace occupé. Cette erreur est indécelable à une vérification normale > et ne s'avère qu'à l'épreuve d'un repartitionnement.
----------

Je te propose de redémarrer > en tenant pressées les 2 touches ⌘S (cmd S) à partir de l'écran noir. Tu vas obtenir au redémarrage un autre écran noir sur lequel défilent des lignes de log blanches = session du Single User. Tu es dans un terminal plein écran de root. Clavier QWERTY par défaut. Volume monté en lecture seule. Aucun service de l'OS initialisé.

Les lignes devraient s'arrêter sur l'invite de commande :
Bloc de code:
root#

  • si ce n'était pas le cas > presse une fois la touche "Entrée" du clavier pour forcer son affichage.

Saisis la commande qui doit s'afficher ainsi :
Bloc de code:
fsck -fy

  • et que tu tapes ainsi :
Bloc de code:
fsck )fy

  • exécute la commande avec la touche "Entrée" => obtiens-tu comme retour un :
Bloc de code:
Filesystem was modified

  • (le système de fichiers a été modifié) ou pas ?

Poste une photo montrant le retour à l'écran. Tu as un bouton : "Transférer un fichier" à droite du bouton orange : "Poster votre réponse" en bas de cette page.
 
Alors passe la commande :
Bloc de code:
reboot
  • (identique dans les 2 claviers) qui fait redémarrer le Mac

Quand tu seras de nouveau dans ta session d'utilisateur habituelle > repasse la commande test -->
Bloc de code:
diskutil ap resizeContainer disk1 51g fat32 BOOTCAMP 0b ; diskutil list

  • et poste le retour complet.
 
Voila
Bloc de code:
Last login: Tue Jan 29 22:01:13 on ttys000
MacBook-de-Erwann:~ erwanndroin$ diskutil ap resizeContainer disk1 51g fat32 BOOTCAMP 0b ; diskutil list
Started APFS operation
Aligning shrink delta to 70 123 073 536 bytes and targeting a new physical store size of 50 999 996 416 bytes
Determined the minimum size for the targeted physical store of this APFS Container to be 36 630 740 992 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 -S /dev/disk0s2
Checking the container superblock
Checking the EFI jumpstart record
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 diskmanagemen (945.200.91.31.4) and last modified by apfs_kext (945.230.6)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
Checking volume
Checking the APFS volume superblock
The volume Preboot was formatted by newfs_apfs (748.41.3) and last modified by apfs_kext (945.230.6)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
Checking volume
Checking the APFS volume superblock
The volume Recovery was formatted by newfs_apfs (748.41.3) and last modified by apfs_kext (945.230.6)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
Checking volume
Checking the APFS volume superblock
The volume VM was formatted by newfs_apfs (748.41.3) and last modified by apfs_kext (945.230.6)
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
warning: Overallocation Detected on Main device: (17434308+1) bitmap address (5936d)
warning: Overallocation Detected on Main device: (17648523+1) bitmap address (59383)
warning: Overallocation Detected on Main device: (24553016+1) bitmap address (59331)
Performing deferred repairs
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 50 999 996 416 bytes
Shrinking APFS data structures
APFS Container Resize error code is 49187
Error: -69606: A problem occurred while resizing APFS Container structures
/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            32.0 GB    disk1s1
   2:                APFS Volume Preboot                 129.4 MB   disk1s2
   3:                APFS Volume Recovery                2.0 GB     disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4

MacBook-de-Erwann:~ erwanndroin$
 
L'erreur interne n'a pas été réparée.

La seule solution consiste à cloner le volume actuel Macintosh HD => dans celui d'un DDE USB > démarrer sur le clone > supprimer l'apfs interne > le recréer de neuf > cloner à rebours le clone dans le nouveau Macintosh HD.

- as-tu un DDE USB avec de l'espace vacant et espérons-le des paramètres de disque de type "Mac" plutôt que Windows ?​
 
Alors attache un DDE vierge au Mac (pas besoin d'une grande capacité) > passe la comande :
Bloc de code:
diskutil list

  • et poste le tableau des disques --> qui va montrer le disque du DDE.
 
Voila
Bloc de code:
Last login: Tue Jan 29 22:06:35 on ttys000
MacBook-de-Erwann:~ erwanndroin$ 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         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            32.0 GB    disk1s1
   2:                APFS Volume Preboot                 129.4 MB   disk1s2
   3:                APFS Volume Recovery                2.0 GB     disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4

/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *320.1 GB   disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:                  Apple_HFS Hitashi                 319.2 GB   disk2s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk2s3

MacBook-de-Erwann:~ erwanndroin$
 
Passe la commande :
Bloc de code:
df -H /Volumes/Hitashi

  • qui affiche l'occupation du volume Hitashi

Poste le tableau retourné.

Comme les paramètres du disque sont excellents pour un repartitionnement non destructeur > on n'a pas besoin de tout casser (le volume Hitashi flanqué d'une partition de secours Recovery HD devant contenir un OS démarrable) --> il suffira de repartitionner Hitashi pour créer un autre volume destiné au clone.
 
Ok moi du moment que ça fonctionne :)
Bloc de code:
Last login: Tue Jan 29 22:23:11 on ttys000
MacBook-de-Erwann:~ erwanndroin$ df -H /Volumes/Hitashi
Filesystem     Size   Used  Avail Capacity iused      ifree %iused  Mounted on
/dev/disk2s2   319G   426M   319G     1%      78 4294967201    0%   /Volumes/Hitashi
MacBook-de-Erwann:~ erwanndroin$
 
Il n'y a que 426 Mo dans Hitashi qui est donc vide. Volume reformaté manifestement.

Passe la commande (copier-coller) :
Bloc de code:
diskutil eraseDisk jhfs+ Clone gpt disk2 ; diskutil list disk2

  • la commande réinitialise le disque > remonte un volume Clone > affiche le partitionnement du DDE

Poste le retour.
 
Voila

Bloc de code:
Last login: Tue Jan 29 22:25:43 on ttys000
MacBook-de-Erwann:~ erwanndroin$ diskutil eraseDisk jhfs+ Clone gpt disk2 ; diskutil list disk2
Started erase on disk2
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk2s2 as Mac OS Extended (Journaled) with name Clone
Initialized /dev/rdisk2s2 as a 298 GB case-insensitive HFS Plus volume with a 24576k journal
Mounting disk
Finished erase on disk2
/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *320.1 GB   disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:                  Apple_HFS Clone                   319.7 GB   disk2s2
MacBook-de-Erwann:~ erwanndroin$
 
Bien. Passe encore la commande :
Bloc de code:
diskutil ap convert disk2s2 ; diskutil list disk2

  • qui convertit la partition de Clone à l'apfs > puis réaffiche le tableau du DDE

Poste le retour.