Espace libre non répertorié

Tonton Tatouage

Membre enregistré
18 Mars 2021
5
0
44
Bonjour,

Petit soucis après formatage de partition, impossible de recoller l'espace libre de 200Go sur la partition principale. Celle-ci n'apparait plus dans l'utilitaire de disque mais est bien listée sur le disk1 (voir copie disk list).
Quelqu'un aurait une astuce svp ?
Merci.

Bloc de code:
iMac-685B3595C53E:~ tontontatouage$ diskutil list

/dev/disk1 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                  *1.0 TB       disk1
   1:                                EFI ⁨EFI⁩                     209.7 MB   disk1s1
   2:       Apple_APFS ⁨Container disk2⁩         800.0 GB   disk1s2
   3:                        EFI ⁨NO NAME⁩                 104.9 MB   disk1s3
                    (free space)                              199.8 GB   -
   4:                        EFI ⁨NO NAME⁩                 104.9 MB   disk1s4

Note de la modération : aucun rapport dans iOS, on déménage dans la bonne section.
 
Dernière édition par un modérateur:
Bonjour Tonton

Passe la commande (copier-coller) :
Bloc de code:
diskutil eraseVolume free null disk1s3 ; diskutil eraseVolume free null disk1s4 ; diskutil ap resizeContainer disk1 0b ; diskutil list internal
  • la commande supprime les 2 partitions de type EFI > volumes : NO NAME situées sous la partition apfs et dont la 1ère joue un rôle de tampon bloquant la récupération d'espace (partitions issues d'une installation de Windows) > récupère l'ensemble de l'espace libre de queue de disque à la partition apfs et à son Conteneur > ré-affiche la configuration interne

Poste le retour intégral de la commande en copier-coller > en veillant à faire le coller dans un Bloc de code (c'est plus lisible !) par le procédé suivant -->

- en bas de cette page des forums MacGé => utilise le menu (le 16è depuis la gauche = vers le milieu de la barre) dans la barre de menus au-dessus du champ de saisie d'un message > sous-menu : </> (= Bloc de code) => tu fais ton coller dans la fenêtre de code et Continuer.​

Note : tu as confondu iOS et macOS.
 
Bonjour,

Merci pour le retour, voici la réponse après la commande:

Bloc de code:
Last login: Thu Mar 18 10:19:46 on ttys000

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
iMac-685B3595C53E:~ tontontatouage$ diskutil eraseVolume free null disk1s3 ; diskutil eraseVolume free null disk1s4 ; diskutil ap resizeContainer disk1 0b ; diskutil list internal
Started erase on disk1s3 (NO NAME)
Unmounting disk
Finished erase on disk1
Started erase on disk1s4 (NO NAME)
Unmounting disk
Finished erase on disk1
disk1 is neither an APFS Container Reference nor an APFS Physical Store
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *121.3 GB   disk0
   1:                        EFI ⁨NO NAME⁩                 104.9 MB   disk0s1
   2:         Microsoft Reserved ⁨⁩                        16.8 MB    disk0s2
   3:       Microsoft Basic Data ⁨WIN⁩                     121.2 GB   disk0s3

/dev/disk1 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk1
   1:                        EFI ⁨EFI⁩                     209.7 MB   disk1s1
   2:                 Apple_APFS ⁨Container disk2⁩         800.0 GB   disk1s2
                    (free space)                         200.0 GB   -

/dev/disk2 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +800.0 GB   disk2
                                 Physical Store disk1s2
   1:                APFS Volume ⁨MacOS - Données⁩         28.5 GB    disk2s1
   2:                APFS Volume ⁨Preboot⁩                 292.2 MB   disk2s2
   3:                APFS Volume ⁨Recovery⁩                613.8 MB   disk2s3
   4:                APFS Volume ⁨VM⁩                      2.1 GB     disk2s4
   5:                APFS Volume ⁨MacOS⁩                   15.1 GB    disk2s5
   6:              APFS Snapshot ⁨com.apple.os.update-...⁩ 15.1 GB    disk2s5s1

iMac-685B3595C53E:~ tontontatouage$

Ps: J'ai pas fait gaffe pour le IOs, j'essaierai d'être moins distrait la prochaine fois ;-)
 
Les partitions tampons ont été supprimées > mais l'espace libre pas récupéré > car l'index d'appareil du Conteneur apfs est disk2.

- passe la commande de finition :​
Bloc de code:
diskutil ap resizeContainer disk2 0b ; diskutil list internal
  • qui récupère l'espace libre > puis ré-affiche la configuration interne

Poste le retour.

Note : tu as 2 disques internes : SSD de 121 Go et HDD de 1 To. Est-ce volontairement que tu ne les as pas associés en mode Fusion Drive ? - car l'OS apfs Big Sur sur un disque rotatif (HDD) soit fonctionner très lentement.
 
Voici le retour :

Bloc de code:
Started APFS operation
Aligning grow delta to 199 994 576 896 bytes and targeting a new physical store size of 999 995 129 856 bytes
Determined the maximum size for the targeted physical store of this APFS Container to be 999 994 101 760 bytes
Resizing APFS Container designated by APFS Container Reference disk2
The specific APFS Physical Store being resized is disk1s2
Verifying storage system
Using live mode
Performing fsck_apfs -n -x -l /dev/disk1s2
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 MacOS - Données was formatted by hfs_convert (1412.141.1) and last modified by apfs_kext (1677.81.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 Preboot was formatted by hfs_convert (1412.141.1) and last modified by apfs_kext (1677.81.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 diskmanagementd (1412.141.1) and last modified by apfs_kext (1677.81.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 diskmanagementd (1412.141.1) and last modified by apfs_kext (1677.81.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 MacOS was formatted by storagekitd (1677.81.1) and last modified by apfs_kext (1677.81.1)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking snapshot 1 of 1 (com.apple.os.update-35C699ADD439C653A3B09EBD8A30FBD366881244EB7C82207A2E135362FCCB7F)
Checking the extent ref tree
Checking the fsroot tree
Checking the file extent tree
Checking volume
Checking the APFS volume superblock
The volume Update was formatted by com.apple.Mobile (1677.81.1) and last modified by apfs_kext (1677.81.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
The volume /dev/disk1s2 appears to be OK
Storage system check exit code is 0
Growing APFS Physical Store disk1s2 from 800 000 552 960 to 999 995 129 856 bytes
Modifying partition map
Growing APFS data structures
Finished APFS operation
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *121.3 GB   disk0
   1:                        EFI ⁨NO NAME⁩                 104.9 MB   disk0s1
   2:         Microsoft Reserved ⁨⁩                        16.8 MB    disk0s2
   3:       Microsoft Basic Data ⁨WIN⁩                     121.2 GB   disk0s3

/dev/disk1 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk1
   1:                        EFI ⁨EFI⁩                     209.7 MB   disk1s1
   2:                 Apple_APFS ⁨Container disk2⁩         1000.0 GB  disk1s2

/dev/disk2 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +1000.0 GB  disk2
                                 Physical Store disk1s2
   1:                APFS Volume ⁨MacOS - Données⁩         28.5 GB    disk2s1
   2:                APFS Volume ⁨Preboot⁩                 292.2 MB   disk2s2
   3:                APFS Volume ⁨Recovery⁩                613.8 MB   disk2s3
   4:                APFS Volume ⁨VM⁩                      2.1 GB     disk2s4
   5:                APFS Volume ⁨MacOS⁩                   15.1 GB    disk2s5
   6:              APFS Snapshot ⁨com.apple.os.update-...⁩ 15.1 GB    disk2s5s1

iMac-685B3595C53E:~ tontontatouage$


En fait, j'ai viré l'ancien disque 7200trs qui était en fusion drive avec celui de 121Go pour le remplacer par un ssd de 1To.
Même sous Catalina avec le FusionDrive, c'était une horreur. Mais BigSur tourne aussi bien que Catalina avec le ssd.
Sinon, tout est rentré dans l’ordre pour ce disque.
Merci :)