2020年1月19日 星期日

Ubuntu開機卡在init-bottom ... done.

Ubuntu 12.04雖然有正常使用shutdown指令關機,且關機前也有用sync;sync;sync把資料都寫入到硬碟上面 force competion of pending disk writes (flush cache)。但開機到下面後就卡住了:
  • Begin: Running /scripts/init-premount ... done.
  • Begin: Mounting root file system ... 
  • Begin: Running /scripts/local-top ... done.
  • Begin: Running /scripts/local-premount ... done.
  • [10.367590] EXT4-fs (md1): mounted filesystem with ordered data mode. Opts: (null)
  • Begin: Running /scripts/local-bottom ... done.
  • done.
  • Begin: Running /scripts/init-bottom ... done.
用最後一行當關鍵字搜尋,加上Ubuntu 12.04這個關聯性找到這個連結,看到下一行是:
  • fsck from util-linux 2.20.1
  • /dev/sda1: clean, ......

猜測應該是檔案系統出問題在修理,但因為磁區很大,故就卡在那邊沒有訊息。後來在卡住的時候先按Ctrl-c終止這個階段的檢查,終於進到系統以後,觀察 /var/log/boot.log
  • A4V3 contains a file system with errors, check forced.
  • User cancelled filesystem checks
  • A4V3: e2fsck canceled.
  • A4V3: ********** WARNING: Filesystem still has errors **********
  • mountall: fsck /a4/v3 [625] terminated with status 36
  • mountall: Filesystem has errors: /a4/v3
  • Ignoring errors with /a4/v3 at user request
  • ......
使用下面的指令修理有問題的檔案系統:
  • fsck -y /a4/v3

參考資料

_EOF_

沒有留言:

張貼留言