10.13 High Sierra Le disque doit comporter au moins 40 Go d’espace libre

Louis98354

Membre enregistré
3 Novembre 2018
4
0
32
Bonjour à tou(te)s,

J'ai installé Windows sur mon Macbook Pro il y a quelques mois. Je l'ai bien sûr jamais utilisé :penguin: et je souhaiterais maintenant récupérer l'espace perdu sur mon disque (sur High Sierra 10.13.6).

Au moment de lancer Assistant Boot Camp, j'ai le message suivant :

Ce disque de démarrage ne peut pas être partitionné car l’espace y est insuffisant.
Le disque doit comporter au moins 40 Go d’espace libre.

J'ai repéré dans les précédents posts que la commande diskutil list était souvent demandée...

MacBook-Pro-de-xxx:~ xxx$ diskutil list

/dev/disk0 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *240.1 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_APFS Container disk1 139.0 GB disk0s2


/dev/disk1 (synthesized):

#: TYPE NAME SIZE IDENTIFIER

0: APFS Container Scheme - +139.0 GB disk1

Physical Store disk0s2

1: APFS Volume Mac SSD 114.8 GB disk1s1

2: APFS Volume Preboot 22.8 MB disk1s2

3: APFS Volume Recovery 519.0 MB disk1s3

4: APFS Volume VM 2.1 GB disk1s4

MacBook-Pro-de-xxx:~ xxx$

Une idée pour me sortir de ce chausse-trape ? Un grand merci d'avance :merci:
 
Bonjour,
Sous réserves, je ne vois qu’un seul volume, le conteneur APFS de 139 Go. Les 100 autres gigas qui devaient être le volume Windows est aux abonnés absents.
Par contre, il te reste uniquement 10 Go de disponible dans le conteneur, seul volume identifié. Il est donc normal à mon avis que tu aies ce message.
Reste à savoir où sont tes 100 Go?
Pour cela il faut espérer qu’un spécialiste du terminal vienne flâner sur ton post.
Une commande qui se termine par 0b te sauvera sans doute.
 
Bonjour Louis

Je te passe la commande annoncée par oyapoque :coucou: (qui aurait très bien su la donner lui-même) -->
Bloc de code:
diskutil ap resizeContainer disk1 0b

  • saisis-la en copier-coller direct
  • la commande récupère tout l'espace libre disponible en-dessous au Conteneur apfs et à sa partition de base disk0s2
  • elle peut avorter pour plusieurs raisons possibles

Poste donc l'affichage retourné par la commande pour vérification de son issue.
 
Hello oyapoque et macomaniac, merci pour vos réponses ! J'ai lancé la commande dans la console, le résultat est ci-dessous :

Bloc de code:
Last login: Sat Nov  3 16:43:08 on ttys000
MacBook-Pro-de-xxx:~ xxx$ diskutil ap resizeContainer disk1 0b
Started APFS operation
Aligning grow delta to 100 847 390 720 bytes and targeting a new physical store size of 239 847 653 376 bytes
Determined the maximum size for the targeted physical store of this APFS Container to be 239 846 625 280 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 139 000 262 656 to 239 847 653 376 bytes
Modifying partition map
Growing APFS data structures
Finished APFS operation
MacBook-Pro-de-xxx:~ xxx$
 
Opération réussie. Repasse une commande :
Bloc de code:
diskutil list

  • et reposte le tableau des disques --> afin qu'on contemple le nouveau paysage...
 
  • J’aime
Réactions: Louis98354
Hello, voici le résultat :

Bloc de code:
MacBook-Pro-de-xxx:~ xxx$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *240.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         239.8 GB   disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +239.8 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Mac SSD                 114.9 GB   disk1s1
   2:                APFS Volume Preboot                 22.8 MB    disk1s2
   3:                APFS Volume Recovery                519.0 MB   disk1s3
   4:                APFS Volume VM                      2.1 GB     disk1s4

MacBook-Pro-de-xxx:~ xxx$
 
Comme tu peux le voir ici -->
Bloc de code:
   2:                 Apple_APFS Container disk1         239.8 GB   disk0s2

  • la partition principale du disque a récupéré tout l'espace libre disponible. Et le Conteneur qu'elle exporte fait la même taille.

Tu disposes de 122 Go d'espace libre.
 
  • J’aime
Réactions: Louis98354
Hello macomaniac, effectivement l'espace est libéré, plus besoin de passer par l'assistant Boot Camp.

1000 mercis :up:, excellente soirée à toi !