Ce disque de démarrage ne peut pas être partitionné car l’espace y est insuffisant.

Bloc de code:
Last login: Thu Nov 22 21:33:21 on ttys000
MBPdeBeHermitte:~ mohamed-amine$ tmutil listlocalsnapshots /
com.apple.TimeMachine.2018-11-22-105228
com.apple.TimeMachine.2018-11-22-142617
MBPdeBeHermitte:~ mohamed-ami
 
Bloc de code:
Last login: Thu Nov 22 21:37:36 on ttys000
MBPdeBeHermitte:~ mohamed-amine$ diskutil verifyVolume /
Started file system verification on disk1s1 Macintosh HD
Verifying file system
Volume could not be unmounted
Using live mode
Performing fsck_apfs -n -l -x /dev/rdisk1s1
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 newfs_apfs (748.77.8) and last modified by apfs_kext (945.220.38)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking snapshot 1 of 2
Checking snapshot 2 of 2
Checking the extent ref tree
Checking the fsroot tree
Verifying allocated space
Performing deferred repairs
The volume /dev/rdisk1s1 appears to be OK
File system check exit code is 0
Restoring the original state found as mounted
Finished file system verification on disk1s1 Macintosh HD
MBPdeBeHermitte:~ mohamed-amine$
 
Tu as 2 snapshots > comme signalé ici -->
Bloc de code:
Checking snapshot 1 of 2
Checking snapshot 2 of 2

  • je savais bien qu'il y avait un facteur caché > expliquant l'impossibilité de repartitionner

Passe la commande :
Bloc de code:
sudo tmutil thinlocalsnapshots / 99000000000 4 ; say 'ENFIN TERMINÉ LA PURGE'

  • à validation > une demande de password s'affiche (commande sudo) --> tape ton mot-de-passe de session admin en aveugle - aucun caractère ne se montrant à la frappe - et revalide
  • la commande supprime les snapshots. Attends d'entendre une voix déclarer : "Enfin ! terminé la purge" en signal de complétion.

Préviens quand c'est fait. Et si tu avais eu un message d'erreur.
 
Alors repasse la commande-test -->
Bloc de code:
diskutil ap resizeContainer disk1 100g fat32 BOOTCAMP 0b ; diskutil list

  • et poste l'affichage retourné --> qu'on voie si le repartitionnement a été validé.
 
Bloc de code:
Last login: Thu Nov 22 21:59:25 on ttys000
MBPdeBeHermitte:~ mohamed-amine$ diskutil ap resizeContainer disk1 100g fat32 BOOTCAMP 0b ; diskutil list
Started APFS operation
Aligning shrink delta to 150 790 438 912 bytes and targeting a new physical store size of 99 999 997 952 bytes
Determined the minimum size for the targeted physical store of this APFS Container to be 41 343 148 032 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 newfs_apfs (748.77.8) and last modified by apfs_kext (945.220.38)
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.220.38)
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.220.38)
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.220.38)
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: (46453321+1) bitmap address (f0dd)
Performing deferred repairs
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 99 999 997 952 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                        *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            37.6 GB    disk1s1
   2:                APFS Volume Preboot                 74.3 MB    disk1s2
   3:                APFS Volume Recovery                1.0 GB     disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4

MBPdeBeHermitte:~ mohamed-amine$
 
Oui > mais tu en as un à la fin -->
Bloc de code:
Error: -69606: A problem occurred while resizing APFS Container structures

  • qui signifie (d'après mon expérience) que l'apfs s'est installé sur le disque avec une "erreur interne de structure" qui verrouille le Conteneur apfs en taille. C'est ce qui s'appelle : pas de veine.

La seule issue est de cloner Macintosh HD dans le volume d'un DDE USB (si tu veux une sauvegarde) > démarrer sur le clone > supprimer l'apfs > le recréer > cloner à rebours. En espérant que le nouvel apfs soit sans erreur.
 
Sauvegarde des 42 Go de Macintosh HD ou pas sauvegarde ? -->

- pour une sauvegarde > il te faut un DDE USB avec dans les 70 Go d'espace libre.​
 
Alors attache-le au Mac > puis passe les 2 commandes (l'une après l'autre) :
Bloc de code:
diskutil list
df -H

  • qui affichent les disques et l'occupation des volumes

Poste les 2 tableaux.
 
Bloc de code:
Last login: Thu Nov 22 22:36:45 on ttys000
MBPdeBeHermitte:~ mohamed-amine$ 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            29.0 GB    disk1s1
   2:                APFS Volume Preboot                 74.3 MB    disk1s2
   3:                APFS Volume Recovery                1.0 GB     disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4

/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *2.0 TB     disk2
   1:                 DOS_FAT_32 WININSTALL              2.0 TB     disk2s1

/dev/disk3 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            CCCOMA_X64FRE_FR-FR... +4.7 GB     disk3

/dev/disk4 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            Boot Camp              +2.8 GB     disk4

MBPdeBeHermitte:~ mohamed-amine$ df -H
Filesystem      Size   Used  Avail Capacity  iused               ifree %iused  Mounted on
/dev/disk1s1    251G    29G   220G    12%   681018 9223372036854094789    0%   /
devfs           194k   194k     0B   100%      654                   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/disk3      4.7G   4.7G     0B   100% 18446744073707247455             2305220 1741902178820325632%   /Volumes/CCCOMA_X64FRE_FR-FR_DV9
/dev/disk1s4    251G   1.1G   220G     1%        1 9223372036854775806    0%   /Volumes/VM
/dev/disk2s1    2.0T   8.6M   2.0T     1%        0                   0  100%   /Volumes/WININSTALL
MBPdeBeHermitte:~ mohamed-amine$
 
Ce qui est bien > c'est que le volume WININSTALL est vide. Donc on peut réinitialiser le disque. Passe la commande :
Bloc de code:
diskutil eraseDisk jhfs+ Clone gpt disk2 ; diskutil ap convert disk2s2 ; diskutil list

  • la commande : a) inscrit une table GPT et un format jhfs+ avec un volume Clone > b) convertit le volume à l'apfs > c) affiche le tableau des disques

Poste l'affichage retourné.
 
Bloc de code:
Last login: Thu Nov 22 22:50:29 on ttys000
MBPdeBeHermitte:~ mohamed-amine$ diskutil eraseDisk jhfs+ Clone gpt disk2 ; diskutil ap convert disk2s2 ; diskutil list
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 2 TB case-insensitive HFS Plus volume with a 155648k journal
Mounting disk
Finished erase on disk2
Converting the volume on disk2s2 to an APFS Volume on an APFS Container
Started APFS operation on disk2s2 Clone
Converting HFS Volume to an APFS Container which will export one APFS Volume
The target is the Journaled HFS+ volume "Clone" backed by the GPT partition disk2s2
The target is a data disk; it is not a macOS system disk
Found APFS EFI driver /usr/standalone/i386/apfs.efi to install into the APFS Container
The target is not encrypted
Unmounting disk2s2
Starting conversion from HFS to APFS
Performing apfs_hfs_convert -x --verbose=0x400 --efi /usr/standalone/i386/apfs.efi /dev/disk2s2
Reporting pre-conversion statistics
Reporting post-conversion statistics
Successfully finished conversion from HFS to APFS
Successful conversion in commit mode so will switch type to APFS
Setting type of disk2s2 to APFS
Changing the physical disk partition type in shared mode
Partition modification attempt count was 1
Opening and closing disk2s2 to terminate old content driver
Expecting the new APFS Container at Physical Store disk2s2
Confirmed existence of new unencrypted APFS Volume disk5s1
Mounting APFS Volume disk5s1
APFS Volume mount attempt result was 0
Exiting conversion operations with error code 0
Disk from APFS operation: disk5s1
Finished APFS operation on disk2s2 Clone
/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            29.0 GB    disk1s1
   2:                APFS Volume Preboot                 74.3 MB    disk1s2
   3:                APFS Volume Recovery                1.0 GB     disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4

/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_APFS Container disk5         2.0 TB     disk2s2

/dev/disk3 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            CCCOMA_X64FRE_FR-FR... +4.7 GB     disk3

/dev/disk4 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            Boot Camp              +2.8 GB     disk4

/dev/disk5 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +2.0 TB     disk5
                                 Physical Store disk2s2
   1:                APFS Volume Clone                   1.0 MB     disk5s1

MBPdeBeHermitte:~ mohamed-amine$
 
Parfait. Tu as un volume Clone en format apfs.

Alors va à cette page internet : ☞Carbon Copy Cloner☜ (clique le lien rouge). Télécharge le logiciel et déplace-le dans les Applications. C'est un logiciel de clonage éprouvé. Tu as droit à une démo gratuite de 1 mois (sans restrictions logicielles) dont tu vas profiter.

À présent lance CCC > et dans son panneau définis une tâche telle que :

  • SOURCE = Macintosh HD
  • DESTINATION = Clone
  • SafetyNet = Désactivé
  • Presse le bouton "Cloner"

Le logiciel va cloner Macintosh HD dans Clone > puis créer les volumes auxiliaires requis dans le Conteneur de destination.

Quand c'est fini > repasse une commande :
Bloc de code:
diskutil list

  • et poste le tableau des disques

Note : pour ma part > je jette l'éponge pour cette fois (je ne suis pas trop du soir). Je reprendrai demain dans ton fil. Je pense que l'essentiel sera acquis.
 
Bloc de code:
Last login: Thu Nov 22 22:50:34 on ttys000
MBPdeBeHermitte:~ mohamed-amine$ 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            29.6 GB    disk1s1
   2:                APFS Volume Preboot                 74.3 MB    disk1s2
   3:                APFS Volume Recovery                1.0 GB     disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4

/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_APFS Container disk5         2.0 TB     disk2s2

/dev/disk3 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            CCCOMA_X64FRE_FR-FR... +4.7 GB     disk3

/dev/disk4 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            Boot Camp              +2.8 GB     disk4

/dev/disk5 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +2.0 TB     disk5
                                 Physical Store disk2s2
   1:                APFS Volume Clone                   26.3 GB    disk5s1
   2:                APFS Volume Preboot                 42.8 MB    disk5s2
   3:                APFS Volume Recovery                518.2 MB   disk5s3

MBPdeBeHermitte:~ mohamed-amine$