Ubuntu fails to boot into initramfs

Host Dell, operating system Ubuntu.

The Ubuntu system fails to boot, enters initramfs, there is no prompt message, and the exit command is invalid. After restarting with the power button, enter initranfs again. The prompt is as shown in the figure: As shown in the above figure, follow the prompts and execute. It is found that the system boot image configuration is a file
insert image description here
in cat /proc/cmdlinethe /bootdirectory , use ls /to search /boot, and found that there is no bootdirectory, this is a big problem, I once thought I bootdeleted the directory, but I did not do this deletion operation. After a while, I found that the directory exists
in grub , but why did it disappear in initranfs? bootAfter being puzzled, I decided to reinstall the system. First of all, I was distressed for three seconds for my beautified Ubuntu system and various configured development environments.

How to enter gurb?
After I use the power button to restart the system, I will stay in the interface of selecting the system (this interface did not take pictures, forgive me), there are several options here, including the ubuntu system startup option and BIOS settings (the option name is not this, but it is true It is a BIOS setting option), but do not select these options, press Escthe key , return to the previous menu, it is grub, execute ls /to view the directory.

Ask a colleague to help download the latest version of Ubuntu ISO (Ubuntu 20.04.2.0 LTS), then use Rufus to make a USB boot disk, and prepare to reinstall the system (three seconds of distress again).
When installing the system, the following prompt appears:
insert image description here
What is this, I have never encountered it before installing the system (Ubuntu19 was installed before, and then upgraded to Ubuntu20), open the URL in the prompt , take a brief look, and get a general understanding It turns out that rst is actually raid, and Turn off RSTthere are two methods, one is to completely shut down, and the other is to switch to AHCI. The second method is used here.
Seeing this, I suddenly thought that maybe it was this configuration that caused the system to fail to start, so I tried to adjust the BIOS first, and then restarted the system. Then the system starts successfully. . .
Before the BIOS change: (this configuration makes the Ubuntu system unable to start)
insert image description here
After the BIOS change (this configuration, the Ubuntu system can start normally) After
insert image description here
adjusting the BIOS, after applying it, exit, and the system can start normally if there is no accident.

There is no way out after mountains and rivers are full of doubts, and there is another village where the willows are dark and the flowers are bright. Fortunately, there is no need to reinstall the system.

In addition, my system was upgraded from 19 to 20. During this period, I have experienced many important upgrades. It may be that the latest upgrade caused this problem. As for why it was fine before, I don’t know.

In the Ubuntu system that I resumed to start normally, I silently wrote down this record of stepping on the pit. I hope it can provide some ideas for friends who read this article.

Guess you like

Origin blog.csdn.net/xwd127429/article/details/113970065