In the macOS High Sierra, the "Black Holes"
You live for yourself, you do not scratch your turnips, you do not blow your breath. And then suddenly you need to move from a dilapidated iPhone 6 to a brand new iPhone X. And since all your life in the past seven years is stored in fotochkah and vidosiki old smartphone, you do not really want to lose this good. And now you backup your household through iTunes on the Mac, you try to move to a new "balalaika" and suddenly it turns out that there is no place to backup a new phone on the hard drive of your computer. You begin to frantically clean
Augean stables disk space, but the result is "no-no." Moreover, deleting the "left files" and cleaning the recycle bin does not lead to anything. This thriller was played recently with the vice-president of Parallels Nikolay Dobrovolsky. Under the cat, a detective story about discovering a "black hole" in the macOS High Sierra, searching for truth and a happy ending that might be envied by the main characters of the movie "Titanic." Time Capsule in macOS High Sierra and APFS, it begins to "chudit." In addition to the fact that Time Machine starts backing up data and leaves it on an external drive, it also makes some local backups on the hard disk (Local Snapshots), which store the history of changes recently. So that you could theoretically in the future pour in the jungles of Time Machine, even if you do not have this external disk with backups. Those. it not only stores information on an external drive, but somewhere in it reserves a place and tries to show you what you had there in the recent past. Therefore, you get a situation where a "black hole" forms on your computer's hard drive. Thus, somewhere in the depths of your computer, additional disk space is reserved. And its volume and location in a sound mind and sober memory can not be determined. Remove and clean this farm in a simple way you, too, is unlikely to succeed.
Perhaps my situation will seem to you atypical. I have a Time Machine backed up to an external drive. I also have macOS High Sierra and APFS. But, as they say, you can not erase words from a song.
So the method of "scientific plug-in" revealed that there are certain commands that allow you to control these most almost mystical Local Snapshots in macOS High Sierra. By the way, despite the fact that everywhere they write that if you have ten percent of free space, APFS removes them on its own, in fact, as long as you do not clean them with handles, nothing will happen. They are theoretically once removed, but no predictions and systemativeness have been found in this charitable process.
There is a reasonable question, but what would your dear friend find Local Snapshots not immediately deleted? And do not fence a garden? It's simple. They can not be reached, because, they live in a certain reserved area, where no one has direct access. "Black hole", not otherwise. Through Finder you can not get there. This is some kind of hidden area, which even DaisyDisk shows how the system area. She does not know how to get there, but she knows that she exists.
"Sleight of hands and no fraud" (c).
I propose to go to the session of magic with subsequent exposure. As they say it is better to see once than hear a hundred times.
So, you have a computer with a hard drive for 128GB. Under the hood of macOS High Sierra c APFS.
In order to recreate the situation of lack of disk space, we take Disk Image and create three large files of 30 GB each.
As we see, our files took more than 103GB. A full box. Next we launch Time Machine.
At this stage, we understand that for the subsequent backup we need to free up disk space. We delete unnecessary files. In this case, delete one of the three disk images at 30GB.
Feel free to remove unnecessary, because we also need free space. Then, without regrets, we clean the basket.
And here you have theoretically released 30GB of free space. Let's fill it with a new image of a disk of the appropriate volume.
And, oh, a miracle! There is no place.
And in "Dokumentah" and "Trash" there are no mentions of the "ghost file".
We launch DaisyDisk and see that on our hard drive was formed "Hidden Space" ("Black Hole"). The size of this beauty is similar in volume to the files that we deleted earlier. Again, understand that there and somehow this is removed without dancing with tambourines problematic.
And here comes to you to the aid comes the Russian savvy, a few mantras to the computer mother and here is such a nice script:
tmutil listlocalsnapshotdates /| while read line;
tmutil deletelocalsnapshots $ line
It shows the list of Local Snapshots and deletes them, which can also be done directly by hand in Terminal:
For the purity of the experiment, create a new disk image at 30GB. We understand that everything is pounding!
ZY Write, if you had similar problems or even more strange squiggles. It will be interesting to discuss them in the comments.
It may be interesting
Not every one of those horrendous areas and furthermore great obliging.