Linux 啟動報錯 unexpected inconsistency;RUN fsck MANUALLY

來源:互聯網
上載者:User

標籤:linux   fsck   啟動報錯   


意外停電一次,CentOS啟動時報如下錯誤:

unexpected inconsistency;RUN fsck MANUALLYAn error occurred during the filesystem checkPropping you to shell the system will rebootwhen you leave the shellGive root password for mantennance



解決方案如下:
1、按提示,輸入root使用者的密碼,進入命令列介面



2、尋找根目錄以及boot所在分區並記錄:
# mount |grep "on /"


3、修複檔案系統
# fsck -y /dev/sda2

這裡的/dev/sda2就是步驟2中讀取到的

-y 選項指定檢測每個檔案是自動輸入yes


4、修複boot分區
(其實可以直接reboot,如果重啟後仍然報錯則執行此步驟)
# fsck -y /dev/sda1


5、修改auditd記錄檔的許可權
(這一步和步驟4一樣,如果重啟報錯才需執行此步驟)
# chown root.root /var/log/audit/audit.log
# chmod 600 /var/log/audit/audit.log



6、重啟
# reboot

註:fsck掃描檔案系統時一定要在單一使用者模式、修複模式或把裝置umount後進行


Linux 啟動報錯 unexpected inconsistency;RUN fsck MANUALLY

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.