macOS 清理时间机器快照

安装 Asahi Linux 发现磁盘可用空间为 0,查阅文档发现是时间机器的问题。 We’re going to resize this partition: APFS [Macintosh HD] (245.11 GB, 6 volumes) Total size: 245.11 GB Free space: 132.23 GB Available space: 0 B Overhead: 94.23 GB Minimum total size: 245.11 GB (100.00%) 开启时间机器

安装 Asahi Linux 发现磁盘可用空间为 0,查阅文档发现是时间机器的问题。

1
2
3
4
5
6
7
We're going to resize this partition:
APFS [Macintosh HD] (245.11 GB, 6 volumes)
Total size: 245.11 GB
Free space: 132.23 GB
Available space: 0 B
Overhead: 94.23 GB
Minimum total size: 245.11 GB (100.00%)

开启时间机器后系统会自动进行本地快照,这将会占满所所有可用空间,需要手动清理一下:

1
2
3
4
$ tmutil listlocalsnapshots /
$ sudo tmutil deletelocalsnapshots # For example,
$ sudo tmutil deletelocalsnapshots 2021-06-26-123740
# Once you see the statement "Delete local snapshot" followed by the date and time stamp, the local snapshot has been deleted.

Reference


macOS 清理时间机器快照
https://www.frytea.com/post/20230314164824.html
作者
Tianlun Song
发布于
2023年3月14日
更新于
2024年6月10日
许可协议