initramfs——ubuntu 18.4 cannot log in to the system after booting

Once I turned it on, I found that the files were all in read-only mode and could not be operated on.

So I made a reference to this blog: The easiest solution for the ubuntu hard disk to become read-only ,

However, it may be because the system disk is too large, and it has not been repaired for several hours, so the restart is suspended, and the disk is damaged. The boot prompts initramfs and cannot log in to the system. The solution is as follows, record it:

Find the file name corresponding to UNEXPECTED INCONSISTENCY, because that is the wrong file name. I didn’t take a screenshot at the time, so I just found someone else’s. The penultimate line prompts that the file /dev/sda1 corresponding to UNEXPECTED INCONSISTENCY needs fsck

Excuting an order:

fsck /dev/sda1 -y

When FILE SYSTEM WAS MODIFIED appears, it means that it has been successful, and then enter reboot to restart.

problem solved!

Guess you like

Origin blog.csdn.net/ZHUO__zhuo/article/details/125561435