10.13 High Sierra Récupérer espace libre disque dur

MaxEgg

Membre enregistré
2 Octobre 2018
4
0
27
Bonjour à tous,

J'ai récemment supprimer la partition dédiée à Bootcamp sur mon mac. Cependant, cette partition de 100 Go est devenue "espace libre" et lorsque je tente de la supprimer, un message d'erreur apparait.

Avez-vous une solution pour que je puisse récupérer cet espace libre dans mon disque "MACINTOSH".

Voici quelques capture d'écran que je juge utiles.

Capture d’écran 2018-10-02 à 00.43.09.png Capture d’écran 2018-10-02 à 00.42.39.png Capture d’écran 2018-10-02 à 00.42.17.png

Merci beaucoup.

MaxEgg
 
Dernière édition par un modérateur:
Salut MaxEgg

Passe les commandes (copier-coller ; l'une après l'autre) -->
Bloc de code:
diskutil eraseVolume free null disk0s3
diskutil ap resizeContainer disk1 0b

  • la 1ère supprime la partition n°4 (partition de secours de Windows) > qui bloque la récupération de l'espace libre (dû à la suppression d'une partition BOOTCAMP) existant en queue de disque
  • la 2è récupère l'ensemble de l'espace libre au Conteneur apfs > et à sa partition de base disk0s2. Cette commande peut avorter pour diverses raisons.

=> poste l'affichage retourné par la 2è commande. Sans prendre de capture > mais en copier-coller dans une fenêtre de code. Voici le procédé pour le coller dans la fenêtre de code -->
  • dans la page de ce fil de MacGé > presse le bouton
    InsererCodeMcGe.jpg
    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é)
 
Bonjour et merci pour ton aide.

Voici ce qui est affiché une fois la seconde commande passée :

Bloc de code:
MBP-de-Maxime-2:~ max$ diskutil ap resizeContainer disk1 0b
Started APFS operation
Aligning grow delta to 101 064 966 144 bytes and targeting a new physical store size of 500 068 036 608 bytes
Determined the maximum size for the targeted physical store of this APFS Container to be 500 067 006 464 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 hfs_convert (748.21.6) and last modified by apfs_kext (945.200.129)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
error: btn: invalid btn_btree.bt_key_count (expected 4976620, actual 4976675)
fsroot tree is invalid
The volume /dev/disk0s2 could not be verified completely
Storage system check exit code is 0
Growing APFS Physical Store disk0s2 from 399 003 070 464 to 500 068 036 608 bytes
Modifying partition map
Growing APFS data structures
Finished APFS operation

Merci beaucoup!

MaxEgg
 
Tout a l'air de s'être passé au mieux. Passe une commande :
Bloc de code:
diskutil list

  • et poste le tableau.
 
D'après l'utilitaire de disque oui, ça à l'air bon. Merci beaucoup pour ton aide!
Bloc de code:
MBP-de-Maxime-2:~ max$ 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 disk1         500.1 GB   disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +500.1 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            370.2 GB   disk1s1
   2:                APFS Volume Preboot                 45.8 MB    disk1s2
   3:                APFS Volume Recovery                512.4 MB   disk1s3
   4:                APFS Volume VM                      2.1 GB     disk1s4
 
Voici le partitionnement primaire du SSD -->
Bloc de code:
/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 disk1         500.1 GB   disk0s2

  • la partition apfs avec 500 Go a récupéré tout l'espace-disque possible

Problème résolu !
 
Bonjour à tous,

J'ai le même souci, j'ai mal supprimé une partition Windows et depuis j'ai 74Go d'espace libre non récupérable sur l'original.
Voici mon diskutil list... La partition n'apparait même plus maintenant. Je n'arrive donc pas à récupérer le reste.

Merci d'avance!
 

Fichiers joints

  • Screen Shot 2019-05-09 at 18.49.25.png
    Screen Shot 2019-05-09 at 18.49.25.png
    131 KB · Affichages: 327
  • Screen Shot 2019-05-09 at 18.51.49.png
    Screen Shot 2019-05-09 at 18.51.49.png
    198 KB · Affichages: 312
Bonsoir Crystalo

Passe la commande (copier-coller) -->
Bloc de code:
diskutil ap resizeContainer disk1 0b ; diskutil list

  • la commande récupère l'espace libre au Conteneur apfs > puis réaffiche le tableau des disques.

Poste l'ensemble de l'affichage retourné en copier-coller (pas de capture) > mais fais ton coller dans une fenêtre de code par le procédé suivant -->
  • dans cette page de MacGé > presse le bouton
    1555929346-524315-original.png
    ici :
    1555929346-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é)
 
  • J’aime
Réactions: Crystalo
Merci beaucoup, vous êtes géniaux!

Bloc de code:
Last login: Thu May  9 19:22:47 on ttys000
Hamzas-MacBook-Pro:~ HamzaAlamiHassani$ diskutil ap resizeContainer disk1 0b
Started APFS operation
Aligning grow delta to 74 067 279 872 bytes and targeting a new physical store size of 500 068 036 608 bytes
Determined the maximum size for the targeted physical store of this APFS Container to be 500 067 006 464 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
warning: apfs_num_other_fsobjects (57) is not valid (59)
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 426 000 756 736 to 500 068 036 608 bytes
Modifying partition map
Growing APFS data structures
Finished APFS operation
Hamzas-MacBook-Pro:~ HamzaAlamiHassani$ 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 disk1         500.1 GB   disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +500.1 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            392.2 GB   disk1s1
   2:                APFS Volume Preboot                 21.9 MB    disk1s2
   3:                APFS Volume Recovery                519.6 MB   disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4

Hamzas-MacBook-Pro:~ HamzaAlamiHassani$
 
Bonjour à tous,

J'ai voulu séparé l'espace de mon disque dur pour pouvoir avoir Windows mais sans succès, et j'aimerais récupéré cet espace sur mon disque " MACINTOSH "

Voici le diskutil list :

Bloc de code:
Last login: Sun May 12 18:45:21 on ttys000
MacBook-Pro-de-sonicamusika:~ SonicaMusika$ 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 disk2         182.0 GB   disk0s2
   3:                 Apple_APFS Container disk1         60.8 GB    disk0s4

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +60.8 GB    disk1
                                 Physical Store disk0s4
   1:                APFS Volume Preboot                 43.6 MB    disk1s2
   2:                APFS Volume Recovery                20.5 KB    disk1s3
   3:                APFS Volume Bootcamp                20.5 KB    disk1s1

/dev/disk2 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +182.0 GB   disk2
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            106.2 GB   disk2s1
   2:                APFS Volume Preboot                 43.6 MB    disk2s2
   3:                APFS Volume Recovery                517.0 MB   disk2s3
   4:                APFS Volume VM                      1.1 GB     disk2s4

MacBook-Pro-de-sonicamusika:~ SonicaMusika$
 
Bonsoir sonicamusika

Passe la commande (copier-coller - copie-la bien jusqu'au list final) :
Bloc de code:
diskutil ap deleteContainer disk1 ; diskutil eraseVolume free null disk0s4 ; diskutil ap resizeContainer disk2 0b ; diskutil list

  • cette commande concaténée : a) supprime le Conteneur du bas (ce qui reformate un volume Untitled classique) > b) supprime la partition du volume Untitled > c) récupère cet espace au Conteneur du haut > d) réaffiche le tableau des disques

Poste l'ensemble de l'affichage retourné > histoire de voir s'il n'y a pas un blocage dans l'enchaînement.
 
Bloc de code:
Last login: Sun May 12 18:45:45 on ttys000
MacBook-Pro-de-sonicamusika:~ SonicaMusika$ diskutil ap deleteContainer disk1 ; diskutil eraseVolume free null disk0s4 ; diskutil ap resizeContainer disk2 0b ; diskutil list
Started APFS operation on disk1
Deleting APFS Container with all of its APFS Volumes
Unmounting Volumes
Unmounting Volume "Preboot" on disk1s2
Unmounting Volume "Recovery" on disk1s3
Unmounting Volume "Bootcamp" on disk1s1
Deleting Volumes
Deleting Container
Wiping former APFS disks
Switching content types
Reformatting former APFS disks
Initialized /dev/rdisk0s4 as a 56 GB case-insensitive HFS Plus volume with a 8192k journal
Mounting disk
1 new disk created or changed due to APFS operation
Disk from APFS operation: disk0s4
Finished APFS operation on disk1
Started erase on disk0s4 Untitled
Unmounting disk
Finished erase on disk0
Started APFS operation
Aligning grow delta to 68 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 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 was formatted by hfs_convert (748.21.6) and last modified by apfs_kext (945.241.4)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
error: btn: invalid btn_btree.bt_key_count (expected 3797690, actual 3797746)
fsroot tree is invalid
The volume /dev/disk0s2 could not be verified completely
Storage system check exit code is 0
Growing APFS Physical Store disk0s2 from 181 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 disk2         250.8 GB   disk0s2

/dev/disk2 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +250.8 GB   disk2
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            106.2 GB   disk2s1
   2:                APFS Volume Preboot                 43.6 MB    disk2s2
   3:                APFS Volume Recovery                517.0 MB   disk2s3
   4:                APFS Volume VM                      1.1 GB     disk2s4

MacBook-Pro-de-sonicamusika:~ SonicaMusika$
 
Voici le partitionnement de ton disque -->
Bloc de code:
/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 disk2         250.8 GB   disk0s2

  • la partition apfs a récupéré tout l'espace qui était situé en-dessous

Problème résolu !
 
Bonjour jai un probléme jai essayer de supprimer ma partition ou j'avais widows je pense que jai reussi mais le probleme c'est que je suis pas sure que j'ai recupére l'espace de cette partion car l'espace disponible est de 85go et l'espace utilisé est de 39go il reste 125go introuvable aider moi a voir plus clair slvp je vous remercie
 

Fichiers joints

  • IMG_7686.JPG
    IMG_7686.JPG
    1,4 Mo · Affichages: 458
Bonjour HARIBOO

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 (ce qui est inscrit dans l'espace bleu-grisé) :
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 cette page de MacGé > presse le bouton
    1555929346-524315-original.png
    ici :
    1555929346-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.