Mac——无法退出移动硬盘解决办法
xingchongs-MacBook-Pro-3:~ root# history
1 diskutil unmount /dev/disk2s5
2 kill -9 179
3 diskutil unmount /dev/disk2s5
4 df -lh
5 diskutil unmount /dev/disk2s4
6 diskutil unmount /dev/disk2s2
7 history
Last login: Tue Sep 8 07:18:33 on ttys000
xingchongs-MacBook-Pro-3:~ xingchong$ df -lh
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1 233Gi 206Gi 26Gi 89% 3277046 4291690233 0% /
/dev/disk2s2 596Gi 375Gi 221Gi 63% 0 0 100% /Volumes/D
/dev/disk2s4 432Gi 22Gi 410Gi 6% 0 0 100% /Volumes/F
/dev/disk2s5 238Gi 54Gi 184Gi 23% 205961 4294761318 0% /Volumes/G
xingchongs-MacBook-Pro-3:~ xingchong$
xingchongs-MacBook-Pro-3:~ xingchong$
xingchongs-MacBook-Pro-3:~ xingchong$
xingchongs-MacBook-Pro-3:~ xingchong$
xingchongs-MacBook-Pro-3:~ xingchong$
xingchongs-MacBook-Pro-3:~ xingchong$
xingchongs-MacBook-Pro-3:~ xingchong$ dudo -i
-bash: dudo: command not found
xingchongs-MacBook-Pro-3:~ xingchong$ sudo -i
Password:
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root# diskutil unmount /dev/disk2s5
Volume G on disk2s5 failed to unmount: dissented by PID=179 (/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Support/mds_stores)
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root# kill -9 179
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root# diskutil unmount /dev/disk2s5
Volume G on disk2s5 unmounted
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root# diskutil unmount /dev/disk2s5
xingchongs-MacBook-Pro-3:~ root# df -lh
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1 233Gi 206Gi 26Gi 89% 3277015 4291690264 0% /
/dev/disk2s2 596Gi 375Gi 221Gi 63% 0 0 100% /Volumes/D
/dev/disk2s4 432Gi 22Gi 410Gi 6% 0 0 100% /Volumes/F
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root# diskutil unmount /dev/disk2s4
Volume F on disk2s4 unmounted
xingchongs-MacBook-Pro-3:~ root# diskutil unmount /dev/disk2s2
Volume D on disk2s2 unmounted
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root#
xingchongs-MacBook-Pro-3:~ root# history
1 diskutil unmount /dev/disk2s5
2 kill -9 179
3 diskutil unmount /dev/disk2s5
4 df -lh
5 diskutil unmount /dev/disk2s4
6 diskutil unmount /dev/disk2s2
7 history
xingchongs-MacBook-Pro-3:~ root#