10.15 Catalina Redimensionner la partition

Le DDE branché > passe la commande :
Bloc de code:
diskutil list

  • et poste le tableau des disques. Une seule commande suffira pour l'opération.
 
Bloc de code:
wifi-student3-649:~ daphnedeville$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *121.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         121.1 GB   disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +121.1 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Disque de démarrage ... 75.9 GB    disk1s1
   2:                APFS Volume Preboot                 83.0 MB    disk1s2
   3:                APFS Volume Recovery                526.6 MB   disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4
   5:                APFS Volume Disque de démarrage     11.0 GB    disk1s5

/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_HFS BackUp                  1.9 TB     disk2s2
   3:                 Apple_APFS Container disk3         99.9 GB    disk2s3

/dev/disk3 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +99.9 GB    disk3
                                 Physical Store disk2s3
   1:                APFS Volume Clone - Données         76.2 GB    disk3s1
   2:                APFS Volume Clone                   10.8 GB    disk3s2
   3:                APFS Volume Preboot                 80.1 MB    disk3s3
   4:                APFS Volume Recovery                534.4 MB   disk3s4
   5:                APFS Volume VM                      1.1 GB     disk3s5
 
Passe la commande (copier-coller - copie-la bien jusqu'au disk2 final) :
Bloc de code:
diskutil ap deleteContainer disk3 ; diskutil eraseVolume free null disk2s3 ; diskutil resizeVolume disk2s2 0b ; diskutil list disk2

  • cette commande : supprime le Conteneur de Clone (ce qui reformate un volume Untitled standard sur la partition correspondante) > supprime la partition reformatée > récupère son espace à la partition BackUp > affiche la configuration du DDE seul

Poste le retour intégral de la commande (au cas où il y aurait eu un blocage à un point de l'enchaînement).
 
Il y a eu un problème en effet

Bloc de code:
wifi-student3-649:~ daphnedeville$ iskutil ap deleteContainer disk3 ; diskutil eraseVolume free null disk2s3 ; diskutil resizeVolume disk2s2 0b ; diskutil list disk2
-bash: iskutil: command not found
The target disk is in use by APFS as a Physical Store; use diskutil apfs deleteContainer
Resizing to full size (fit to fill)
Started partitioning on disk2s2 BackUp
Error: -69743: The new size must be different than the existing size
/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_HFS BackUp                  1.9 TB     disk2s2
   3:                 Apple_APFS Container disk3         99.9 GB    disk2s3
 
Tu as fait une faute de copie en oubliant le d initial de diskutil (tu as copié : iskutil) => ce qui fait que la 1ère commande de cet enchaînement a été avortée. D'où l'échec de la suite.

- recommence ton copier-coller et poste le résultat.​
 
Voilà c'est fait
Bloc de code:
wifi-student3-649:~ daphnedeville$ diskutil ap deleteContainer disk3 ; diskutil eraseVolume free null disk2s3 ; diskutil resizeVolume disk2s2 0b ; diskutil list disk2
Started APFS operation on disk3
Deleting APFS Container with all of its APFS Volumes
Unmounting Volumes
Unmounting Volume "Clone - Données" on disk3s1
Unmounting Volume "Clone" on disk3s2
Unmounting Volume "Preboot" on disk3s3
Unmounting Volume "Recovery" on disk3s4
Unmounting Volume "VM" on disk3s5
Deleting Volumes
Deleting Container
Wiping former APFS disks
Switching content types
Reformatting former APFS disks
Initialized /dev/rdisk2s3 as a 93 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: disk2s3
Finished APFS operation on disk3
Started erase on disk2s3 Untitled
Unmounting disk
Finished erase on disk2
Resizing to full size (fit to fill)
Started partitioning on disk2s2 BackUp
Verifying the disk
Verifying file system
Volume was successfully unmounted
Performing fsck_hfs -fn -x /dev/rdisk2s2
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking multi-linked directories
Checking volume bitmap
Checking volume information
The volume BackUp appears to be OK
File system check exit code is 0
Restoring the original state found as mounted
Resizing
Modifying partition map
Growing file system
Finished partitioning on disk2s2 BackUp
/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_HFS BackUp                  2.0 TB     disk2s2
/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_HFS BackUp                  2.0 TB     disk2s2

J'ai également relancé la commande diskutil list
Bloc de code:
wifi-student3-649:~ daphnedeville$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *121.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         121.1 GB   disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +121.1 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Disque de démarrage ... 76.4 GB    disk1s1
   2:                APFS Volume Preboot                 83.0 MB    disk1s2
   3:                APFS Volume Recovery                526.6 MB   disk1s3
   4:                APFS Volume VM                      3.2 GB     disk1s4
   5:                APFS Volume Disque de démarrage     11.0 GB    disk1s5

/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_HFS BackUp                  2.0 TB     disk2s2
 
Opération effectuée : le volume BackUp a récupéré sa taille initiale de 2 To.