2020年4月10日 星期五

Ubuntu開機出現錯誤訊息的解決方法

近日有次Ubuntu開機失敗,出現以下錯誤訊息

fsck from util-linux 2.26.2
/dev/sda1 contains a file system with errors, check forced.
/dev/sda1: Inodes that were part of a corrupted orphan linked list found.

/dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
       
fsck exited with status code 4
The root filesystem on /dev/sda1 requires a manual fsck

Busybox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built in shell (ash)
Enter 'help' for a list of built-in commands.



從訊息來看是/dev/sda1有問題,其實解決方法很簡單


輸入fsck指令即可
fsck /dev/sda1
 
過程中會多次詢問是否要修復,直接回答y(yes)就行了
修復完後可能需要自行重開機