disque dur séparé. comment revenir à 1to en une seule partition

Voici la nouvelle partition -->
Bloc de code:
   3:                  Apple_HFS                         749.0 GB   disk0s3

  • elle n'a pas de volume > et elle a un faux rang. On corrige ces défauts.

- passe la commande (copier-coller à rebours) :​
Bloc de code:
newfs_hfs -J -v "Macintosh HD" /dev/disk0s3 ; diskutil mount disk0s3 ; diskutil list disk0

  • la commande injecte un système de fichiers jhfs+ formateur d'un volume Macintosh HD sur l'en-tête de la partition > remonte ce volume > réaffiche la configuration du disque interne

Poste le retour.
 
Bloc de code:
-bash-3.2# newfs_hfs -J -v "Macintosh HD" /dev/disk0s3
Initialized /dev/rdisk0s3 as a 698 GB case-insensitive HFS Plus volume with a 57344k journal
-bash-3.2#

Bloc de code:
-bash-3.2# diskutil mount disk0s3
Volume Macintosh HD on disk0s3 mounted
-bash-3.2#

Bloc de code:
-bash-3.2# diskutil list disk0
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk2         251.0 GB   disk0s2
   3:                  Apple_HFS Macintosh HD            749.0 GB   disk0s3
-bash-3.2#
 
Note : quand je te passe une commande concaténée par des points-virgules ; => tu la passes intégralement en un coup. Les ; équivalent à l'instruction : après telle commande => exécuter la suivante. Ainsi > la concaténation pemet d'enchaîner une série de sous-commandes.

----------

Bon : opération réussie. Passe encore la commande :
Bloc de code:
diskutil repairDisk disk0 ; diskutil list disk0

  • tu la passes en un seul bloc. À validation > une demande de confirmation s'affiche : tape y (yes) et revalide
  • la commande lance une réparation totale du disque (dont celle de la GPT) > puis réaffiche la configuration du disque

Poste le retour complet.
 
Bloc de code:
-bash-3.2# diskutil repairDisk disk0 ; diskutil list disk0
Repairing the partition map might erase disk0s1, proceed? (y/N) y
Started partition map repair on disk0
Checking prerequisites
Checking the partition list
Adjusting partition map to fit whole disk as required
Checking for an EFI system partition
Checking the EFI system partition's size
Checking the EFI system partition's file system
Checking the EFI system partition's folder content
Checking all HFS data partition loader spaces
Preparing to create trailing loader space by shrinking the volume "Macintosh HD" on disk0s3
Creating loader space, part 1 of 3: Verifying the file system
Creating loader space, part 2 of 3: Shrinking the file system from 748 997 816 320 to 748 863 598 592 bytes so that this partition can be smaller
Creating loader space, part 3 of 3: Shrinking the partition in the partition map to open up loader space
Checking booter partitions
Reviewing boot support loaders
Checking Core Storage Physical Volume partitions
The partition map has been repaired
Finished partition map repair on disk0
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            748.9 GB   disk0s3
   3:                 Apple_APFS Container disk2         251.0 GB   disk0s2
-bash-3.2#
 
Comme tu vois -->
Bloc de code:
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Macintosh HD            748.9 GB   disk0s3
   3:                 Apple_APFS Container disk2         251.0 GB   disk0s2

  • l'ordre des partitions correspond à présent à leurs localisation sur les blocs

- passe enfin la commande :​
Bloc de code:
diskutil ap convert disk0s3 ; diskutil list internal

  • la commande convertit Macintosh HD à l'apfs > puis affiche la configuration interne complète

Poste le retour.
 
Bloc de code:
-bash-3.2# diskutil ap convert disk0s3 ; diskutil list internal
Converting the volume on disk0s3 to an APFS Volume on an APFS Container
Started APFS operation on disk0s3 Macintosh HD
Converting HFS Volume to an APFS Container which will export one APFS Volume
The target is the Journaled HFS+ volume "Macintosh HD" backed by the GPT partition disk0s3
The target is 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 disk0s3
Starting conversion from HFS to APFS
Performing apfs_hfs_convert -x --verbose=0x400 --efi /usr/standalone/i386/apfs.efi /dev/disk0s3
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 disk0s3 to APFS
Changing the physical disk partition type in shared mode
Partition modification attempt count was 1
Opening and closing disk0s3 to terminate old content driver
Expecting the new APFS Container at Physical Store disk0s3
Confirmed existence of new unencrypted APFS Volume disk22s1
Mounting APFS Volume disk22s1
APFS Volume mount attempt result was 0
Exiting conversion operations with error code 0
Disk from APFS operation: disk22s1
Finished APFS operation on disk0s3 Macintosh HD
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk22        748.9 GB   disk0s3
   3:                 Apple_APFS Container disk2         251.0 GB   disk0s2

/dev/disk2 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +251.0 GB   disk2
                                 Physical Store disk0s2
   1:                APFS Volume BOOTCAMP                144.6 GB   disk2s1
   2:                APFS Volume Preboot                 24.4 MB    disk2s2
   3:                APFS Volume Recovery                507.4 MB   disk2s3
   4:                APFS Volume VM                      4.3 GB     disk2s4

/dev/disk22 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +748.9 GB   disk22
                                 Physical Store disk0s3
   1:                APFS Volume Macintosh HD            20.5 KB    disk22s1

-bash-3.2#
 
Tout est en place à présent. Tu en as fini avec la session de secours.

- redémarre et réouvre ta session dans le volume BOOTCAMP. Préviens quand tu y es.​
 
J'avais anticipé => donc j'enchaîne :

- 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 = BOOTCAMP
  • DESTINATION = Macintosh HD
  • SafetyNet = Désactivé
  • Presse le bouton "Cloner"

Le logiciel va cloner BOOTCAMP dans Macintosh HD > puis créer les volumes auxiliaires requis dans le Conteneur d'accueil.

- quand il t'annonce que tout est fini > redémarre > la touche "alt" pressée pour obtenir l'écran de choix du volume de démarrage. Choisisi Macintosh HD > démarre dessus.​

=> tu n'auras qu'à dire si tu retrouves une session conforme à celle que tu viens de quitter (pour moi ce sera demain).
 
Salut Macomaniac,
Un grand merci pour cette aide précieuse. Mon disque Mac OS est identique à Boot Camp. J'ai donc récupéré l'espace disponible.

Maintenant , dois je supprimer bootcamp ? Me conseilles tu un antivirus ? Le mac est un peu lent. J'avais installé pas mal de logiciels qui ne me servent plus et que je n'arrive pas à supprimer.

Merci
 
Content pour toi !

- dans ta session de Macintosh HD > passe une commande :​
Bloc de code:
diskutil list

  • et poste le tableau des disques.
 
Bloc de code:
diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         748.9 GB   disk0s2
   3:                 Apple_APFS Container disk2         251.0 GB   disk0s3

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +748.9 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            143.8 GB   disk1s1
   2:                APFS Volume PreBoot                 24.4 MB    disk1s2
   3:                APFS Volume Recovery                514.5 MB   disk1s3
   4:                APFS Volume VM                      4.3 GB     disk1s4

/dev/disk2 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +251.0 GB   disk2
                                 Physical Store disk0s3
   1:                APFS Volume Preboot                 28.7 KB    disk2s2
   2:                APFS Volume Recovery                20.5 KB    disk2s3
   3:                APFS Volume VM                      5.4 GB     disk2s4
   4:                APFS Volume BOOTCAMP                950.3 KB   disk2s1
 
Passe la commande (copier-coller - copie-la bien jusqu'au list final) :
Bloc de code:
diskutil ap deleteContainer disk2 ; diskutil eraseVolume free null disk0s3 ; diskutil ap resizeContainer disk1 0b ; diskutil list

  • cette commande concaténée : supprime l'apfs du bas (ce qui reformate un volume Untitled standard sur la partition) > supprime la partition du bas reformatée > récupère l'espace libéré au Conteneur du haut (et à sa partition primaire) > réaffiche le tableau des disques

Poste le retour intégral de la commande. En cas de blocage à un point donné => on verra où et pourquoi.
 
Bloc de code:
diskutil ap deleteContainer disk2 ; diskutil eraseVolume free null disk0s3 ; diskutil ap resizeContainer disk1 0b ; diskutil list
Started APFS operation on disk2
Deleting APFS Container with all of its APFS Volumes
Unmounting Volumes
Unmounting Volume "Preboot" on disk2s2
Unmounting Volume "Recovery" on disk2s3
Unmounting Volume "VM" on disk2s4
Unmounting Volume "BOOTCAMP" on disk2s1
Deleting Volumes
Deleting Container
Wiping former APFS disks
Switching content types
Reformatting former APFS disks
Initialized /dev/rdisk0s3 as a 234 GB case-insensitive HFS Plus volume with a 24576k journal
Mounting disk
1 new disk created or changed due to APFS operation
Disk from APFS operation: disk0s3
Finished APFS operation on disk2
Started erase on disk0s3 Untitled
Unmounting disk
Finished erase on disk0
Started APFS operation
Aligning grow delta to 251 131 531 264 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 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 (945.275.8) and last modified by apfs_kext (945.275.8)
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 diskmanagementd (945.275.8) and last modified by apfs_kext (945.275.8)
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 (945.275.8) and last modified by apfs_kext (945.275.8)
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 apfs.util (945.275.8) and last modified by apfs_kext (945.275.8)
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/disk0s2 appears to be OK
Storage system check exit code is 0
Growing APFS Physical Store disk0s2 from 748 863 598 592 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                        *1.0 TB     disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         1000.0 GB  disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +1000.0 GB  disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            143.8 GB   disk1s1
   2:                APFS Volume PreBoot                 24.4 MB    disk1s2
   3:                APFS Volume Recovery                514.5 MB   disk1s3
   4:                APFS Volume VM                      4.3 GB     disk1s4
 
Opération réussie --> problème résolu. Tu as un Conteneur apfs unique de 1 To.