關於 PHP, Linux, Open Source 及個人生活記載的網誌。
RSS icon
  • 設定 Ubuntu 開機的 fsck

    Posted on January 29th, 2007 Sam Tang No comments

    Ubuntu 預設的情況下,每掛載檔案系統 30 便會執行 fsck 檢查檔案系統,簡單來說每開機 (包括 reboot) 便會檢查檔案系統。如果要改變檢查的時間,可以用 tune2fs 來實現,例如:

    $sudo tune2fs -c 60

    以上指令會設定每掛載檔案系統 60 次便執行 fsck。如果想系統下一次開機略過 fsck,可以建立 /fastboot 檔案:

    $sudo touch /fastboot

    但這個 /fastboot 檔案會在開機後自動刪除,所以只可以略過一次 fsch 檢查。


    Leave a reply

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word