Impossible d'utiliser bootcamp, problème d'espace disque

Tu démarres bien via ⌘R sur l'OS de secours du disque ?

- tu passes bien la commande : csrutil disable dans le terminal où est affiché -bash-3.2# ?​

[La commande est invalide dans le terminal d'une session d'utilisateur.]
 
Bonjour à tous,
j'ai un problème quand j'utilise Boot Camp pour installer Windows 10:
mon mac me dit que l'espace disque est insuffisant ( besoin de 42 go minimum) alors qu'il me reste 120 go environ.

Bloc de code:
  Nom du modèle :    Mac Pro
  Identifiant du modèle :    MacPro6,1
  Nom du processeur :    6-Core Intel Xeon E5
  Vitesse du processeur :    3,5 GHz
  Nombre de processeurs :    1
  Nombre total de cœurs :    6
  Cache de niveau 2 (par cœur) :    256 Ko
  Cache de niveau 3 :    12 Mo
  Technologie Hyper-Threading :    Activé
  Mémoire :    64 Go
  Version de la ROM de démarrage :    135.0.0.0.0
  Version SMC (système) :    2.20f18

J'ai un peu lu les posts précédents et j'ai décoché la case sauvegarde automatique dans time machine il y a 2 jours mais cela n'a rien changé, il me dit tjrs que le disque ne peut pas être partitionné et qu'il a besoin de 42 Go minimum.

Voici mon diskutil list:

Bloc de code:
Mac-Pro-de-Franck:~ franck$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk2         500.1 GB   disk0s2

/dev/disk2 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +500.1 GB   disk2
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD - Données  367.5 GB   disk2s1
   2:                APFS Volume Preboot                 82.1 MB    disk2s2
   3:                APFS Volume Recovery                528.1 MB   disk2s3
   4:                APFS Volume VM                      2.1 GB     disk2s4
   5:                APFS Volume Macintosh HD            11.1 GB    disk2s5

MERCI D'AVANCE
 
Bonjour fran

Il doit y avoir des snapshots (instantanés archivant des états passés du volume) qui verrouillent des blocs mal placés (en queue d'espace de Conteneur) => d'où l'impossibilité de dégager une bande continue de blocs libres en bas de partition pour permettre la création d'une nouvelle.

- passe la commande (copier-coller) :​
Bloc de code:
diskutil ap listSnaps disk1s1

  • qui liste d'éventuels snapshots associés au volume-Données

As-tu obtenu un retour ?
 
Ah ! pardon. Le Conteneur apfs est indexé disk2 et pas disk1.

- donc passe la commande :​
Bloc de code:
diskutil ap listSnaps disk2s1

  • et poste le retour.
 
Pas de snapshots. Passe la commande :
Bloc de code:
diskutil verifyVolume disk2

  • la commande vérifie l'apfs du Conteneur > puis de ses 4 volumes

Poste le retour. S'il y a un snapshot corrompu (actif mais in-listable) ou une erreur de sur-allocation de blocs => cela devrait apparaître.
 
OK, je viens de le faire et voici ce qui sort du terminal:

Bloc de code:
Started file system verification on disk2
Verifying storage system
Using live mode
Performing fsck_apfs -n -x -l /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 - Données was formatted by hfs_convert (748.1.47) 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
warning: xf : INO_EXT_TYPE_DSTREAM : found unexpected dstream associated with non-regular file
warning: xf : INO_EXT_TYPE_DSTREAM : found unexpected dstream associated with non-regular file
warning: xf : INO_EXT_TYPE_DSTREAM : found unexpected dstream associated with non-regular file
warning: found orphan dstream id object (id 6989241, refcnt 1)
warning: found orphan dstream id object (id 50352262, refcnt 1)
warning: found orphan dstream id object (id 50352263, refcnt 1)
Checking volume
Checking the APFS volume superblock
The volume Preboot was formatted by newfs_apfs (748.1.47) 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
Checking volume
Checking the APFS volume superblock
The volume Recovery was formatted by newfs_apfs (748.1.47) 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
Checking volume
Checking the APFS volume superblock
The volume VM was formatted by newfs_apfs (748.1.47) 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
Checking volume
Checking the APFS volume superblock
The volume Macintosh HD was formatted by diskmanagementd (1412.41.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
Performing deferred repairs
warning: found orphan dstream id object (id 6989241)
Skipped 3 repairs of this type in total
warning: found unexpected dstream associated with non-regular inode (object-id 6989241)
Skipped 3 repairs of this type in total
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Finished file system verification on disk2
 
Il y a des avertissements plutôt que des erreurs qualifiées.

- redémarre une fois > puis de retour dans ta session > passe une commande :​
Bloc de code:
diskutil list internal

  • qui affiche la configuration interne seule

Poste le retour.
 
OK
Bloc de code:
Mac-Pro-de-Franck:~ franck$ diskutil list internal
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk2         500.1 GB   disk0s2

/dev/disk2 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +500.1 GB   disk2
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD - Données  368.2 GB   disk2s1
   2:                APFS Volume Preboot                 82.1 MB    disk2s2
   3:                APFS Volume Recovery                528.1 MB   disk2s3
   4:                APFS Volume VM                      2.1 GB     disk2s4
   5:                APFS Volume Macintosh HD            11.1 GB    disk2s5
 
On fait un test de repartitionnement pour voir si nos manipulations "errantes" ont pu débloquer l'opération.

- passe la commande (copier-coller) :​
Bloc de code:
diskutil ap resizeContainer disk2 420g fat32 BOOTCCAMP 0b

  • la commande rétrécit le Conteneur apfs à 420 Go > et crée un volume BOOTCAMP de 80 Go en format FAT-32

Poste le retour complet (en cas de blocage => une raison sera invoquée).
 
Je viens de le faire, du coup je me retrouve avec un disque Boot Camp de 80 Go sur mon bureau ;-)
Voici le détail de la commande :
Bloc de code:
Mac-Pro-de-Franck:~ franck$ diskutil ap resizeContainer disk2 420g fat32 BOOTCCAMP 0b
Started APFS operation
Aligning shrink delta to 80 068 038 656 bytes and targeting a new physical store size of 419 999 997 952 bytes
Determined the minimum size for the targeted physical store of this APFS Container to be 395 841 634 304 bytes
Resizing APFS Container designated by APFS Container Reference disk2
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 - Données was formatted by hfs_convert (748.1.47) 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
warning: xf : INO_EXT_TYPE_DSTREAM : found unexpected dstream associated with non-regular file
warning: xf : INO_EXT_TYPE_DSTREAM : found unexpected dstream associated with non-regular file
warning: xf : INO_EXT_TYPE_DSTREAM : found unexpected dstream associated with non-regular file
warning: found orphan dstream id object (id 6989241, refcnt 1)
warning: found orphan dstream id object (id 50352262, refcnt 1)
warning: found orphan dstream id object (id 50352263, refcnt 1)
Checking volume
Checking the APFS volume superblock
The volume Preboot was formatted by newfs_apfs (748.1.47) 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
Checking volume
Checking the APFS volume superblock
The volume Recovery was formatted by newfs_apfs (748.1.47) 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
Checking volume
Checking the APFS volume superblock
The volume VM was formatted by newfs_apfs (748.1.47) 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
Checking volume
Checking the APFS volume superblock
The volume Macintosh HD was formatted by diskmanagementd (1412.41.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
Performing deferred repairs
warning: found orphan dstream id object (id 6989241)
Skipped 3 repairs of this type in total
warning: found unexpected dstream associated with non-regular inode (object-id 6989241)
Skipped 3 repairs of this type in total
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Shrinking APFS Physical Store disk0s2 from 500 068 036 608 to 419 999 997 952 bytes
Shrinking APFS data structures
Shrinking partition
Modifying partition map
4096 bytes per physical sector
/dev/rdisk0s3: 156342976 sectors in 2442859 FAT32 clusters (32768 bytes/cluster)
bps=512 spc=64 res=32 nft=2 mid=0xf8 spt=32 hds=255 hid=820723712 drv=0x80 bsec=156381184 bspf=19088 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
 
Donc ça marche. Pour revenir à la case départ > passe la commande (copier-coller) :
Bloc de code:
diskutil eraseVolume free null disk0s3 ; diskutil ap resizeContainer disk2 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 retour.
 
Bonjour Macomaniac,
Je n'avais pas vu ton message d'hier soir, du coup ce matin j'ai relancé bootcamp et j'ai eu un message me demandant de supprimer la parution Windows - ce que j'ai fait et qui a marché - j'ai ensuite relancé bootcamp pour enfin installer Windows et j'ai encore eu le même message d'espace disque insuffisant ( 42 Go minimum nécessaire)...
2 remarques:
  1. Je n'ai pas passé ta dernière ligne de commande, est-ce qu'il faut que je la repasse ?
  2. Entre-temps, ce matin j'ai réactivé la sauvegarde automatique de Time machine, boulette ?!
Voici le dernier diskutil list internal:
Bloc de code:
Mac-Pro-de-Franck:~ franck$ diskutil list internal
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk2         500.1 GB   disk0s2

/dev/disk2 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +500.1 GB   disk2
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD - Données  367.4 GB   disk2s1
   2:                APFS Volume Preboot                 82.1 MB    disk2s2
   3:                APFS Volume Recovery                528.2 MB   disk2s3
   4:                APFS Volume VM                      2.1 GB     disk2s4
   5:                APFS Volume Macintosh HD            11.1 GB    disk2s5
 
Le Conteneur a récupéré tout l'espace-disque disponible : pas de problème de ce côté-là.

----------

Pour savoir si tu as récupéré des snapshots > passe la commande :
Bloc de code:
tmutil listlocalsnapshotdates

  • qui liste tout snapshot pour tout volume monté

Poste le retour.

----------

Tu demandes de créer une partition BOOTCAMP de quelle taille ?
 
Pour les snapshots, rien d'indiqué:
Bloc de code:
Snapshot dates for all disks:

Je pensais à une partition Bootcamp de 80 Go ( j'ai besoin de 35/40 Go pour application et divers + Windows 10). Combien pèse Windows 10 installé ?
 
Repasse la commande-test (copier-coller) :
Bloc de code:
diskutil ap resizeContainer disk2 420g fat32 BOOTCAMP 0b ; diskutil list internal

  • la commande crée une partition BOOTCAMP de 80 Go > puis affiche la configuration interne

Poste le retour complet.

Note : pour Windows --> aucune idée. Il faudrait que Locke te réponde sur ce point.
 
OK, c'était plus rapide cette fois-ci
Bloc de code:
Mac-Pro-de-Franck:~ franck$ diskutil ap resizeContainer disk2 420g fat32 BOOTCAMP 0b ; diskutil list internal
Started APFS operation
Aligning shrink delta to 80 068 038 656 bytes and targeting a new physical store size of 419 999 997 952 bytes
Determined the minimum size for the targeted physical store of this APFS Container to be 395 204 100 096 bytes
Resizing APFS Container designated by APFS Container Reference disk2
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 - Données was formatted by hfs_convert (748.1.47) 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
warning: xf : INO_EXT_TYPE_DSTREAM : found unexpected dstream associated with non-regular file
warning: xf : INO_EXT_TYPE_DSTREAM : found unexpected dstream associated with non-regular file
warning: xf : INO_EXT_TYPE_DSTREAM : found unexpected dstream associated with non-regular file
warning: found orphan dstream id object (id 6989241, refcnt 1)
warning: found orphan dstream id object (id 50352262, refcnt 1)
warning: found orphan dstream id object (id 50352263, refcnt 1)
Checking volume
Checking the APFS volume superblock
The volume Preboot was formatted by newfs_apfs (748.1.47) 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
Checking volume
Checking the APFS volume superblock
The volume Recovery was formatted by newfs_apfs (748.1.47) 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
Checking volume
Checking the APFS volume superblock
The volume VM was formatted by newfs_apfs (748.1.47) 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
Checking volume
Checking the APFS volume superblock
The volume Macintosh HD was formatted by diskmanagementd (1412.41.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
Performing deferred repairs
warning: found orphan dstream id object (id 6989241)
Skipped 3 repairs of this type in total
warning: found unexpected dstream associated with non-regular inode (object-id 6989241)
Skipped 3 repairs of this type in total
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Shrinking APFS Physical Store disk0s2 from 500 068 036 608 to 419 999 997 952 bytes
Shrinking APFS data structures
Shrinking partition
Modifying partition map
4096 bytes per physical sector
/dev/rdisk0s3: 156342976 sectors in 2442859 FAT32 clusters (32768 bytes/cluster)
bps=512 spc=64 res=32 nft=2 mid=0xf8 spt=32 hds=255 hid=820723712 drv=0x80 bsec=156381184 bspf=19088 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                        *500.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk2         420.0 GB   disk0s2
   3:       Microsoft Basic Data BOOTCAMP                80.1 GB    disk0s3

/dev/disk2 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +420.0 GB   disk2
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD - Données  367.5 GB   disk2s1
   2:                APFS Volume Preboot                 82.1 MB    disk2s2
   3:                APFS Volume Recovery                528.2 MB   disk2s3
   4:                APFS Volume VM                      2.1 GB     disk2s4
   5:                APFS Volume Macintosh HD            11.1 GB    disk2s5