Veux-tu une mesure plus détaillée de la taille des dossiers-Système de 1er rang dans le volume de démarrage ?
Oui je veux bien. quelle est la commande ?
Veux-tu une mesure plus détaillée de la taille des dossiers-Système de 1er rang dans le volume de démarrage ?
sudo find -x / -d 1 -regex '.*[^\.\].*' -exec sudo du -shx {} +
sudo find -x / -d 1 -regex '.*[^\.\].*' -exec sudo du -shx {} +
MacBook-Pro-2-Sebastien:~ sebastien$ sudo find -x / -d 1 -regex '.*[^\.\].*' -exec sudo du -shx {} +
Password:
find: /private/var/db/ConfigurationProfiles/Store: Operation not permitted
find: /private/var/folders/pv/cpr4r0mj3fz_xf72ygh9xs3r0000gn/0/SafariFamily: Operation not permitted
find: /private/var/folders/pv/cpr4r0mj3fz_xf72ygh9xs3r0000gn/0/com.apple.LaunchServices.dv: Operation not permitted
find: /private/var/folders/pv/cpr4r0mj3fz_xf72ygh9xs3r0000gn/0/com.apple.nsurlsessiond: Operation not permitted
find: /private/var/folders/pv/cpr4r0mj3fz_xf72ygh9xs3r0000gn/0/com.apple.routined: Operation not permitted
find: /private/var/folders/zz/zyxvpxvq6csfxvn_n00000y800007k/0/com.apple.nsurlsessiond: Operation not permitted
find: /private/var/folders/zz/zyxvpxvq6csfxvn_n00000z000007r/0/com.apple.nsurlsessiond: Operation not permitted
find: /private/var/folders/zz/zyxvpxvq6csfxvn_n00000z000007r/0/com.apple.routined: Operation not permitted
find: /Users/sebastien/Library/VoiceTrigger/SAT: Operation not permitted
1,0K /home
518M /usr
1,7G /.Spotlight-V100
1,0K /net
8,0K /.DS_Store
0B /.PKInstallSandboxManager
0B /.PKInstallSandboxManager-SystemSoftware
2,6M /bin
4,0K /installer.failurerequests
0B /Network
1,2M /sbin
0B /.file
0B /etc
0B /var
7,5G /Library
13G /System
4,0K /.OSInstallerMessages
118M /.fseventsd
du: /private/var/db/ConfigurationProfiles/Store: Operation not permitted
du: /private/var/folders/pv/cpr4r0mj3fz_xf72ygh9xs3r0000gn/0/SafariFamily: Operation not permitted
du: /private/var/folders/pv/cpr4r0mj3fz_xf72ygh9xs3r0000gn/0/com.apple.LaunchServices.dv: Operation not permitted
du: /private/var/folders/pv/cpr4r0mj3fz_xf72ygh9xs3r0000gn/0/com.apple.nsurlsessiond: Operation not permitted
du: /private/var/folders/pv/cpr4r0mj3fz_xf72ygh9xs3r0000gn/0/com.apple.routined: Operation not permitted
du: /private/var/folders/zz/zyxvpxvq6csfxvn_n00000y800007k/0/com.apple.nsurlsessiond: Operation not permitted
du: /private/var/folders/zz/zyxvpxvq6csfxvn_n00000z000007r/0/com.apple.nsurlsessiond: Operation not permitted
du: /private/var/folders/zz/zyxvpxvq6csfxvn_n00000z000007r/0/com.apple.routined: Operation not permitted
4,7G /private
430M /.DocumentRevisions-V100
0B /.vol
du: /Users/sebastien/Library/VoiceTrigger/SAT: Operation not permitted
167G /Users
11G /Applications
4,5K /dev
0B /Volumes
0B /tmp
0B /.dbfseventsd
0B /cores
Tant que tu ne laisse pas des snapshots recréer un espace d'occupation fantôme --> il n'y a aucun problème.
Je ne sais pas si le problème "espace d'occupation fantôme" existe encore avec 10.14 ?
- j'ai l'impression que ça fait partie de la nature des snapshots. Pour qu'il y ait possibilité de restaurer le volume-Système dans son état à l'instant T > il faut que les blocs sur lesquels sont écrits les fichiers correspondant au snapshot n'aient pas été rendus libres pour de nouvelles écritures et sur-écrits > mais aient été retenus dans leur état originel. Donc, même si les fichiers écrits sur ces blocs ont été supprimés (càd. déindexés du catalogue) --> ils restent indexés par le snapshot sur ces blocs et donc ne peuvent être effacés.
Bonsoir Wizepat
Les snapshots sont stockés en-dehors du volume > dans le système de fichiers apfs qui le génère. Ils sont utilisés par Time Machine pour récupérer > en plus de l'état présent du volume > des images de plusieurs états passés intercalaires entre le moment de la dernière sauvegarde et la présente. Après sauvegarde > ils sont purgés. Mais d'autres sont recréés périodiquement.
Si tu veux supprimer ce comportement > pour qu'une sauvegarde TM n'archive chaque fois que le seul état présent du volume au moment de la sauvegarde --> alors il faut aller à : Menu > Préférences Système > Time Machine => décocher la case : "Sauvegarder automatiquement". Des snapshots ne seront plus créés.
Méthode plus simple et plus rapide : la combinaison Commande Fn Majuscule ; (ou Commande Fn Majuscule . pour ceux qui n'utilisent pas un clavier français).Etape 1 : rendre tous les fichiers visibles (même les cachés).
- Ouvrir le terminal : Aller dans le dossier "applications" puis "utilitaires" puis ouvrez le "Terminal".
Une fois cela effectué, entrezdefaults write com.apple.finder AppleShowAllFiles TRUE
puiskillall Finder
Les dossiers visibles apparaissent.
diskutil list internal
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk1 250.7 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.7 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD - Données 206.3 GB disk1s1
2: APFS Volume Preboot 83.1 MB disk1s2
3: APFS Volume Recovery 528.8 MB disk1s3
4: APFS Volume VM 3.2 GB disk1s4
5: APFS Volume Macintosh HD 11.2 GB disk1s7
diskutil verifyVolume disk1
Started file system verification on disk1
Verifying storage system
Using live mode
Performing fsck_apfs -n -x -l /dev/disk0s2
Checking the container superblock
warning: container has been mounted by APFS version 1677.50.1, which is newer than 1412.141.1
warning: disabling overallocation repairs by default; use -o to override
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 - Données was formatted by diskmanagementd (1412.11.7) and last modified by apfs_kext (1412.141.1)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking snapshot 1 of 3 (com.apple.TimeMachine.2021-01-25-153439.local)
Checking snapshot 2 of 3 (com.apple.TimeMachine.2021-01-25-163435.local)
Checking snapshot 3 of 3 (com.apple.TimeMachine.2021-01-25-174235.local)
Checking the extent ref tree
Checking the fsroot tree
Checking volume
Checking the APFS volume superblock
The volume Preboot was formatted by newfs_apfs (748.30.60) and last modified by apfs_kext (1412.141.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 newfs_apfs (748.30.60) and last modified by apfs_kext (1412.141.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 newfs_apfs (748.31.8) and last modified by apfs_kext (1412.141.1)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
error: Cross Check : Mismatch between extentref entry reference count (1) and calculated fsroot entry reference count (0) for extent (0xc4923 + 3)
error: Cross Check : Mismatch between extentref entry reference count (1) and calculated fsroot entry reference count (0) for extent (0xc930a + 11)
error: Cross Check : Mismatch between extentref entry reference count (1) and calculated fsroot entry reference count (0) for extent (0xcaa00 + 16)
error: Cross Check : Mismatch between extentref entry reference count (1) and calculated fsroot entry reference count (0) for extent (0xccf12 + 25)
error: Cross Check : Mismatch between extentref entry reference count (1) and calculated fsroot entry reference count (0) for extent (0x48205f + 15)
Checking volume
Checking the APFS volume superblock
The volume Macintosh HD was formatted by diskmanagementd (1412.11.7) and last modified by apfs_kext (1412.141.1)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking snapshot 1 of 3 (com.apple.TimeMachine.2021-01-25-153439.local)
Checking snapshot 2 of 3 (com.apple.TimeMachine.2021-01-25-163435.local)
Checking snapshot 3 of 3 (com.apple.TimeMachine.2021-01-25-174235.local)
Checking the extent ref tree
Checking the fsroot tree
Verifying allocated space
warning: overallocation detected on Main device: (0x9a61b+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a672+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a6fc+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a6fe+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a71c+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a725+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a734+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a73f+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a749+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a74c+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a751+2) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a760+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a763+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a76c+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a774+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a7c6+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a865+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a874+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a8a8+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a8b2+2) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a8ba+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a8c8+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a8d5+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a8de+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a8e3+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a8eb+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a8ed+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a8f1+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a8f4+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a8f7+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a8fd+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a900+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a905+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a90a+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a90e+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a911+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a915+2) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a920+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a9e1+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a9ea+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a9ec+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a9f1+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a9f4+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9a9ff+2) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9aa05+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9aa0a+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9aa0d+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9aa0f+2) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9aa12+1) bitmap address (0xecbc)
warning: overallocation detected on Main device: (0x9aa15+1) bitmap address (0xecbc)
Too many warnings of this type generated; suppressing subsequent ones
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Finished file system verification on disk1
MacBook-Pro-de-Laura:~ laurapasquier$
sudo tmutil thinlocalsnapshots /System/Volumes/Data 99000000000 4 ; say 'ENFIN TERMINÉ LA PURGE'
Too many warnings of this type generated; suppressing subsequent ones
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Finished file system verification on disk1
MacBook-Pro-de-Laura:~ laurapasquier$ sudo tmutil thinlocalsnapshots /System/Volumes/Data 99000000000 4 ; say 'ENFIN TERMINÉ LA PURGE'
Password:
Thinned local snapshots:
df -H /System/Volumes/Data