ubuntu stays on the (initramfs) page when booting

I accidentally found that Ubuntu was stuck on the (initramfs) page when booting, because there was a problem with the file system. After I tried the steps below, the problem was solved.

Step 1: Enter after (initramfs)

fsck /dev/sda5 -y

Wait for  the FIEL SYSTEM WAS MODIFIED  to appear and start the second step

Step 2: Enter after (initramfs)

exit

After a while, Ubuntu can be started normally.

Guess you like

Origin blog.csdn.net/FLM19990626/article/details/129631748