Article directory
Problem Description
By chance, the author reopened his Linux computer, and the following problem occurred during startup:
a black screen appeared on startup, and the
the grub version 2.06
...
grub>命令行窗口
How do I turn it on now, and how do I fix it?
Solution->How to boot?
First of all, this problem is caused by a problem with booting the system disk at startup, so we perform the following operations (taking the startup disk as (hd0, msdos1) as an example)
grub>search -f /efi/ubuntu/grubx64.efi
grub>set root=(hd0,msdos1)
grub>set prefix=(hd0,msdos1)/efi/ubuntu
grub>normal
After the above operation, you can start normally, but note:
if multiple results appear after searching, such as
grub>search -f /efi/ubuntu/grubx64.efi
(hd0,msdos1),(hd0,msdos3),(hd0,msdos5)
And when you don't know which one you want to start, you can also try
grub>ls (hd0,msdos1)
Check the directory. If you still can't determine, it is recommended to traverse and try all the result disks.
2. Solution->How to boot?
According to some blog content, the author downloaded the boot-repair tool for automatic repair.
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install boot-repair
Open another terminal and enter
boot-repair
Open it and click the recommended repair button. Then follow the prompts to fix it. You need to copy some commands and run them in the terminal. After finishing, restart the computer.
But contrary to expectations, the problem still occurred after restarting. I will continue to explore how to solve it.
3. Reference articles
[1] Black screen when booting and the GNU GRUB version grub is displayed>Command line solution https://blog.csdn.net/weixin_44413445/article/details/115435027
[2] Linux+Grub startup boot repair error: Gnu Grub Version 2.04 Minimal BASH-like editing is supported... https://blog.csdn.net/tanmx219/article/details/123488993
[3] Start ubuntu and stop at the grub page, and the Minimal BASH-like line editingis supported solution appears https://blog.csdn.net/qq_39779233/article/details/114544226