RobinCheng
V2EX  ›  macOS

Mac 删除文件容量不恢复

  •  
  •   RobinCheng · Dec 19, 2018 · 3612 views
    This topic created in 2877 days ago, the information mentioned may be changed or developed.
    删了一百多 G 的东西,最新的系统,重启了也没用,试了网上的一些办法无效。。崩溃

    18 replies  •  2018-12-19 20:57:00 +08:00
    Kilerd
    Kilerd
    Dec 19, 2018 via iPhone
    1
    是不是 move to trash 而不是真的删除
    shutongxinq
    shutongxinq
    Dec 19, 2018
    2
    要等一段时间才会删除。本地 time machine 的 snapshot 会用到这些文件。
    RobinCheng
    RobinCheng
    OP
    Dec 19, 2018 via iPhone
    3
    @Kilerd 清空了已经
    RobinCheng
    RobinCheng
    OP
    Dec 19, 2018 via iPhone
    4
    @shutongxinq 以前好像不会这样
    TonyLiu2ca
    TonyLiu2ca
    Dec 19, 2018
    5
    应该还是 APFS 的功能
    hashi
    hashi
    Dec 19, 2018
    6
    借问一下楼主这是什么软件啊
    jedrek
    jedrek
    Dec 19, 2018
    7
    要不插入一个 U 盘或移动硬盘试试. 有几次我这样做, 它会立马刷新容量
    hellojay
    hellojay
    Dec 19, 2018
    8
    @Kimyx daisydisk
    littlewing
    littlewing
    Dec 19, 2018
    9
    APFS 会在你不够用的时候清理的,你试着看可以再拷 100G 的东西进去
    RobinCheng
    RobinCheng
    OP
    Dec 19, 2018
    10
    @jedrek
    @littlewing 这些办法试了,可惜不行😂
    xjbeta
    xjbeta
    Dec 19, 2018❤️1
    11
    你是不是装过某个恢复误删文件的 app
    那个 app 会在某个地方建一个文件夹 保存所有你删除的文件
    Elethom
    Elethom
    Dec 19, 2018 via iPhone❤️1
    12
    重启按住 Command S,输入:
    /sbin/fsck -fy
    结束之后输入:
    exit
    进系统再用 DaisyDisk 扫描一遍,就会看到「 still hidden 」项体积一点一点减少直到消失。记得以 Administrator 扫描。
    Heavytiger
    Heavytiger
    Dec 19, 2018
    13
    重启一下就 ok 了
    ptyfork
    ptyfork
    Dec 19, 2018❤️1
    14
    把下面内容写到 ~/.profile
    ```
    function tmc() {
    before=$(df -hl / |awk '{print $3}' |tail -n1)
    count=0
    for snapshot in $(tmutil listlocalsnapshots /|awk -F. '{print $4}');do
    let 'count++'
    echo "delete snapshot $snapshot"
    tmutil deletelocalsnapshots $snapshot;
    done
    after=$(df -hl / |awk '{print $3}' |tail -n1)
    if [[ $count -ne 0 ]]; then
    echo "Total $count snapshot(s) deleted, Size change: $before ===> $after"
    else
    echo "No snapshot deleted"
    fi
    }
    ```

    然后打开终端 执行 tmc
    shutongxinq
    shutongxinq
    Dec 19, 2018
    15
    @RobinCheng #4 因为用了新的 COW 的 APFS 啊...你可以手动把本地的 timemachine 镜像删了,然后等他自动 gc。
    yokiam
    yokiam
    Dec 19, 2018 via iPhone❤️1
    16
    time machine 的 localsnapshots
    u2gign
    u2gign
    Dec 19, 2018❤️1
    17
    我也遇到了 看下磁盘工具 可用 后面有个可清除
    AlphaRobert
    AlphaRobert
    Dec 19, 2018 via iPhone
    18
    以後 rm -rf
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4738 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 09:15 · PVG 17:15 · LAX 01:15 · JFK 04:15
    ♥ Do have faith in what you're doing.