用 df -h 查看磁盤情況,無奈卡住無法顯示
解決方法:
1、首先就是使用strace去追蹤到底在哪里卡住了
strace df -h
2、如果沒有strace命令則進行安裝即可
yum install strace
3、顯示出卡住的地方
stat("/proc/sys/fs/binfmt_misc",
4、重啟卡住的服務
systemctl restart proc-sys-fs-binfmt_misc.automount
5、重啟完即可正常使用 df -h
出處:https://www.cnblogs.com/weifeng1463/p/14213894.html