iMac Partition principale invisible

Et actuellement : tu es dans la session de secours ou dans ta session d'utilisateur ?
 
Alors passe la commande :
Bloc de code:
diskutil verifyVolume disk2

  • qui vérifie l'apfs

Poste le retour.
 
J'ai fais, mais le terminal s'est bloqué, puis le mac a redémarré, bloqué aux 9/10 èmes de la barre d'avancement, puis reparti normalement ??? là tout est normal... et du coup l'affichage du terminal est revenu...apparemment il travaillait et n'était pas bloqué...

Bloc de code:
Last login: Wed Apr 29 11:14:14 on console
iMac-de-iMac:~ michelklein$ diskutil verifyVolume disk2
Started file system verification on disk2
Verifying storage system
Using live mode
Performing fsck_apfs -n -x -l /dev/disk1s2
Checking the container superblock
Checking the fusion superblock
Checking the EFI jumpstart record
Checking the space manager
Checking the space manager free queue trees
Checking the object map
Checking the Fusion data structures
Checking volume
Checking the APFS volume superblock
The volume Macintosh HD was formatted by diskmanagementd (945.230.6) and last modified by apfs_kext (945.275.8)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking snapshot 1 of 24
Checking snapshot 2 of 24
Checking snapshot 3 of 24
Checking snapshot 4 of 24
Checking snapshot 5 of 24
Checking snapshot 6 of 24
Checking snapshot 7 of 24
Checking snapshot 8 of 24
Checking snapshot 9 of 24
Checking snapshot 10 of 24
Checking snapshot 11 of 24
Checking snapshot 12 of 24
Checking snapshot 13 of 24
Checking snapshot 14 of 24
Checking snapshot 15 of 24
Checking snapshot 16 of 24
Checking snapshot 17 of 24
Checking snapshot 18 of 24
Checking snapshot 19 of 24
Checking snapshot 20 of 24
Checking snapshot 21 of 24
Checking snapshot 22 of 24
Checking snapshot 23 of 24
Checking snapshot 24 of 24
Checking the extent ref tree
Checking the fsroot tree
Checking volume
Checking the APFS volume superblock
The volume PreBoot was formatted by diskmanagementd (945.230.6) 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.230.6) 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/disk1s2 appears to be OK
Storage system check exit code is 0
Finished file system verification on disk2
iMac-de-iMac:~ michelklein$
 
Il n'y a plus d'erreur ni de corruption nulle part dans l'apfs. Donc le principal est acquis.

- mais tu as 24 snapshots (!) = instantanés apfs qui archivent des états passés du volume et retiennent comme occupés tous les blocs correspontants. On s'occupe de ce point à présent.​

Va à : Menu  > Préférence Système > Time Machine => décoche la case de l'option : "Sauvegarder automatiquement" (cette coche est la génératrice des snapshots). En somme : tu fermes le robinet à snapshots. Préviens si c'est fait.
 
À présent passe la commande (copier-coller) :
Bloc de code:
sudo tmutil thinlocalsnapshots / 99000000000000 4 ; say 'ENFIN TERMINÉ LA PURGE'

  • à validation > une demande de password s'affiche (commande sudo) => tape ton mot-de-passe de session admin en aveugle - aucun caractère ne se montrant à la frappe - et revalide
  • la commande purge en lot les snapshots exisants. Attends d'entendre une voix déclamer : "Enfin ! terminé la purge..." en signal de fin.

Poste le retour.
 
Bloc de code:
Last login: Wed Apr 29 15:01:10 on console
iMac-de-iMac:~ michelklein$ sudo tmutil thinlocalsnapshots / 99000000000000 4 ; say 'ENFIN TERMINÉ LA PURGE'
Password:
Thinned local snapshots:
com.apple.TimeMachine.2020-04-29-151401
com.apple.TimeMachine.2020-04-29-141404
com.apple.TimeMachine.2020-04-29-131407
com.apple.TimeMachine.2020-04-29-111940
com.apple.TimeMachine.2020-04-29-095307
com.apple.TimeMachine.2020-04-29-085311
com.apple.TimeMachine.2020-04-29-075311
com.apple.TimeMachine.2020-04-29-065308
com.apple.TimeMachine.2020-04-29-055315
com.apple.TimeMachine.2020-04-29-045245
com.apple.TimeMachine.2020-04-29-035325
com.apple.TimeMachine.2020-04-29-025310
com.apple.TimeMachine.2020-04-29-015321
com.apple.TimeMachine.2020-04-29-005310
com.apple.TimeMachine.2020-04-28-235314
com.apple.TimeMachine.2020-04-28-225233
com.apple.TimeMachine.2020-04-28-215310
com.apple.TimeMachine.2020-04-28-205255
com.apple.TimeMachine.2020-04-28-195255
com.apple.TimeMachine.2020-04-28-185240
com.apple.TimeMachine.2020-04-28-175335
com.apple.TimeMachine.2020-04-28-165342
com.apple.TimeMachine.2020-04-28-155247
iMac-de-iMac:~ michelklein$
 
Il y a peut-être le compte ou bien il reste un snapshot.

- passe la commande :​
Bloc de code:
tmutil listlocalsnapshots /

  • qui liste les snapshots associés au volume de démarrage

Poste le retour.
 
Apparemment il n'y a plus rien ?!?
Bloc de code:
Last login: Wed Apr 29 16:13:52 on ttys000
iMac-de-iMac:~ michelklein$ tmutil listlocalsnapshots /
iMac-de-iMac:~ michelklein$
 
Bon : problème réglé !

- à présent on étrenne ton apfs bien apuré. Passe la commande :​
Bloc de code:
diskutil ap resizeContainer disk2 0b ; diskutil list

  • la commande récupère l'espace libre de queue de HDD au Conteneur du Fusion Drive > puis affiche le tableau des disques

Poste le retour complet de la commande.
 
Bloc de code:
Last login: Wed Apr 29 16:14:30 on ttys000
iMac-de-iMac:~ michelklein$ diskutil ap resizeContainer disk2 0b ; diskutil list
Started APFS operation
Aligning grow delta to 152 682 827 776 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 -S /dev/disk0s2
Checking the container superblock
Checking the fusion superblock
Checking the EFI jumpstart record
Checking the space manager
Checking the space manager free queue trees
Checking the object map
Checking the Fusion data structures
Checking volume
Checking the APFS volume superblock
The volume Macintosh HD was formatted by diskmanagementd (945.230.6) 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.230.6) 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.230.6) 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 disk1s2 from 847 312 302 080 to 999 995 129 856 bytes
Modifying partition map
Growing APFS data structures
Finished APFS operation
/dev/disk0 (internal):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                         24.0 GB    disk0
   1:                        EFI EFI                     314.6 MB   disk0s1
   2:                 Apple_APFS Container disk2         23.7 GB    disk0s2

/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 -                      +1.0 TB     disk2
                                 Physical Stores disk0s2, disk1s2
   1:                APFS Volume Macintosh HD            604.8 GB   disk2s1
   2:                APFS Volume PreBoot                 42.1 MB    disk2s2
   3:                APFS Volume Recovery                510.5 MB   disk2s3
   4:                APFS Volume VM                      4.3 GB     disk2s4

iMac-de-iMac:~ michelklein$
 
En effet : problème réglé. Tout est en ordre en présent.

- comme tu as pu voir > il a fallu pas mal manœuvrer pour obtenir ce résultat.​
 
@ miroklein

Content pour toi !

- et tu n'auras qu'à rendre service gratuitement à quelqu'un d'autre quand tu seras en mesure de le faire. C'est la transitivité du don, qui brise le cercle de la réciprocité bilatérale. Le « do ut des » classique (je donne pour que tu me donnes en retour), se trouve converti en : je donne pour que tu donnes à un autre (le cercle ne se reboucle qu'en mode infini).