Linux Enable Autofsck

user-pic
Vote 0 Votes

echo AUTOFSCK_TIMEOUT=5 > /etc/sysconfig/autofsck
echo AUTOFSCK_DEF_CHECK=yes >> /etc/sysconfig/autofsck

當 Linux Partition 有問題時會停在 Single Mode, 有新增這些參數當有問題會自動 fsck
另一個參數是 forcefsck, 只要 /forcefsck 檔存在, 便會強制單次執行 fsck
(也就是說 touch /forcefsck 下次重開機便會 fsck)
autofsck 及 forcefsck 均是在 /etc/rc.d/rc.sysinit 中判斷執行

About this Entry

This page contains a single entry by Pank published on May 25, 2015 2:54 PM.

Wireshark/Tshark Capture Filters and Display Filters was the previous entry in this blog.

Remove Get Windows 10 icon on Windows 7 System Tray 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