Solve df hang/stuck

user-pic
Vote 0 Votes

若 Linux df 有 hang 住的狀況, 用這 script 可找出造成 hang 住的目錄
for i in `awk '{print $2}' /proc/mounts`
do
    echo $i
    ls $i
done
常見的狀況是有掛載 NFS 之類的遠端目錄, 但遠端沒有回應(網路不通或機器掛掉之類), 若是這種狀況, 可以用 umount -l
另一種情況是 /proc/sys/fs 下面出現異常
有遇過幾次 /proc/sys/fs/binfmt_misc 卡住
可以重啟服務解決
systemctl restart proc-sys-fs-binfmt_misc.mount

About this Entry

This page contains a single entry by Pank published on May 16, 2019 9:24 AM.

Windows 10 shortcut hotkey delay start issue was the previous entry in this blog.

Fixed Windows 10 overscan/underscan issues on an ATI card without Catalyst Control Center is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives