使っている Ubuntu の VM が以下のようなファイルシステムエラーを吐いて通常起動しなくなってしまったので、対処方法をメモ。
/dev/sda1: recovering journal/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. (i.e.,without -a or -p options)fsck exited with status code 4The root filesystem on /dev/sda1 requires a manual fsckBusyBox v1.27.2 (Ubuntu 1:1.27.2-2ubuntu3.3) built-in shell (ash)Enter 'help' for a list of built-in commands.(initramfs)
勝手にシングルユーザーモードになっているようなので、以下のようにfsck
による/dev/sda1
の修復をかけて無事に修復することができました。
fsck /dev/sda1 -ysyncreboot