美文网首页
2025-06-16 Mac 移动硬盘无法退出

2025-06-16 Mac 移动硬盘无法退出

作者: 033177240fa2 | 来源:发表于2025-06-15 19:33 被阅读0次

查询硬盘id:

➜ ~ df -lh

Filesystem      Size  Used  Avail Capacity  iused    ifree %iused  Mounted on

/dev/disk1s5s1  234Gi  14Gi  32Gi    31%  502388 340323320    0%  /

/dev/disk1s4    234Gi  3.0Gi  32Gi    9%        4 340323320    0%  /System/Volumes/VM

/dev/disk1s2    234Gi  259Mi  32Gi    1%      798 340323320    0%  /System/Volumes/Preboot

/dev/disk1s6    234Gi  672Ki  32Gi    1%      16 340323320    0%  /System/Volumes/Update

/dev/disk1s1    234Gi  182Gi  32Gi    85%  2358895 340323320    1%  /System/Volumes/Data

/dev/disk2s2    3.6Ti  3.6Ti  76Gi    98% 14947488    313047  98%  /Volumes/Elements

// 尝试卸载硬盘,查看正在使用的进程id

➜  ~ diskutil unmount /dev/disk2s2

Volume Elements on disk2s2 failed to unmount: dissented by PID 55040 (/System/Library/Frameworks/QuickLook.framework/Versions/A/XPCServices/ExternalQuickLookSatellite-x86_64.xpc/Contents/MacOS/ExternalQuickLookSatellite-x86_64)

// 杀掉正在使用硬盘的进程id,然后再次尝试卸载

➜ ~ kill 55040

➜ ~ diskutil unmount /dev/disk2s2

Volume Elements on disk2s2 failed to unmount: dissented by PID 55040 (/System/Library/Frameworks/QuickLook.framework/Versions/A/XPCServices/ExternalQuickLookSatellite-x86_64.xpc/Contents/MacOS/ExternalQuickLookSatellite-x86_64)

Dissenter parent PPID 1 (/sbin/launchd)

上面还不行的话,使用-9强杀。

➜ ~ kill -9 55040

➜ ~ diskutil unmount /dev/disk2s2

Volume Elements on disk2s2 unmounted

相关文章

网友评论

      本文标题:2025-06-16 Mac 移动硬盘无法退出

      本文链接:https://www.haomeiwen.com/subject/irkfgjtx.html