home products tech support contact us

 Linux 技術支援    ⇒   基礎篇    進階篇    補腦篇    指令索引    中⇒ENG
版權所有, 引用請註明出處
 

tune2fs 調整 ext 檔案系統

要 root 身分才可執行 tune2fs ,tune2fs 命令是用於調整和修改 ext2、ext3 / ext4 檔案系統的參數和屬性的工具,和設定多久檢查一次檔案系統等。

基本語法:tune2fs [OPTIONS] DEVICE .

常見的 tune2fs 命令選項和功能:


例:
# tune2fs -i 10 /dev/sda1 ←10天後檢查〝/dev/sda1〞
tune2fs -c 7 /dev/sdb ←掛載 7 次後自動檢查〝/dev/sdb〞上的 filesystem

更多操作範例和選項可參考連結