grub 启动错误 "file not found"

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了grub 启动错误 "file not found"相关的知识,希望对你有一定的参考价值。

刚安装ubuntu 14.4 竟然出现这么尴尬的事,ubuntu 行不行?

幸好还是能从u盘启动后,转到硬盘。

然后在网上找到了解决方法。

http://askubuntu.com/questions/88384/how-can-i-repair-grub-how-to-get-ubuntu-back-after-installing-windows


Boot from the live CD or live USB, in "Try Ubuntu" mode.
Determine the partition number of your main partition. GParted (which should already be installed, by default, on the live session) can help you here. I‘m going to assume in this answer that it‘s /dev/sda2, but make sure you use the correct partition number for your system!

Mount your partition:

sudo mount /dev/sda2 /mnt #Replace sda2 with your partition number

 

Bind mount some other necessary stuff:

for i in /sys /proc /run /dev; do sudo mount --bind "$i" "/mnt$i"; done

 

chroot into your Ubuntu install:

sudo chroot /mnt

 

At this point, you‘re in your install, not the live session, and running as root. Update grub:

update-grub

 

If you get errors, go to step 7. (Otherwise, it is optional.)

Depending on your situation, you might have to reinstall grub:

grub-install /dev/sda
update-grub # Im not sure if this is necessary, but it doesnt hurt.

 

If everything worked without errors, then you‘re all set:

exit
sudo reboot

 

At this point, you should be able to boot normally.

 

以上是关于grub 启动错误 "file not found"的主要内容,如果未能解决你的问题,请参考以下文章

The file /mnt/boot/grub/stage1 not read correctly 问题

双系统启动ubuntu提示grub rescue

"log_bin.index not found" 启动报错解决

"docker-proxy": executable file not found in $path

pg启动异常could not open lock file "/tmp/.s.PGSQL.5432.lock":

解决shell命令"** is not in the sudoers file..."错误