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 # I‘m not sure if this is necessary, but it doesn‘t hurt.

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

exit
sudo reboot

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

时间: 2024-12-18 04:55:44

grub 启动错误 "file not found"的相关文章

centOS下msyql启动错误-Multiple MySQL running but PID file could not be found

今天在centOS下装mysql时出现了一个错误: 解决方案就是如图所示kill 4734 kill 4839 最后再执行[[email protected] src]# service mysql start就可以了 centOS下msyql启动错误-Multiple MySQL running but PID file could not be found

【转】win7与ubuntu双系统,删除ubuntu后,启动错误error:no such partition grub rescue的修复--不错

原文网址:http://blog.sina.com.cn/s/blog_541900d50101eu9r.html win7于ubuntu双系统,进入windows后直接格式化硬盘分区将ubuntu删除,重新启动后出现如下提示.error:no such partitiongrub rescue 这表示引导程序出错 解决办法: 用U盘做一个“老毛桃winpe”的启动盘,具体做法见“老毛桃”官方网站. 进入winpe,开始菜单的工具里有一个“引导修复”的软件,窗口背景色为绿色,选择好系统所在的盘符

Grub启动配置文件

和许多其他linux发行版一样,Fedora使用Grub作为32位和64位X86系统的启动加载器(bootloader).grub的配置文件主要是/boot/grub/grub.conf,而/boot/grub/menu.list是这个文件的软连接(soft link).该配置文件样式如下 # grub.conf generated by anaconda## Note that you do not have to rerun grub after making changes to this

centos启动错误:Inodes that were part of a corrupted orphan linked list found.

centos启动时,提示错误: 1 /dev/mapper/VolGroup-lv_root contains a file system with errors,check forced. 2 /dev/mapper/VolGroup-lv_root: 3 Inodes that were part of a corrupted orphan linked list found. 4 /dev/mapper/VolGroup-lv_root:unexpected inconsistency:r

eclipse启动错误

转载自:徐徐微风 eclipse启动错误 1.错误日志 !SESSION 2013-12-09 12:24:33.826 -----------------------------------------------eclipse.buildId=M20130204-1200java.version=1.7.0_25java.vendor=Oracle CorporationBootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CNF

记一次cognos的启动错误

今日在技术群看到有个人因为cognos启动错误求助: 具体错误信息如下: ====================================================================================================== Launching a JVM using 'Maximum memory in MB']Successfully launched a test JVM with the memory setting of '768'

CentOS GRUB引导错误无法进入系统解决办法

本来想整个LFS试试,结果在最后关头设置LFS系统启动的时候挂了.其余的安装笔记没写多少,先来写写系统怎么挂的. 在LFS之前就在想,万一把我宿主机挂了咋办,没想到真挂了. 但我进行到LFS系统grub安装时,那LFS说明上说的也不明白,我做的也稀里糊涂.似乎把宿主机系统GRUB损坏了,重写了.结果LFS系统也没装好,重启后LFS进不去,宿主机系统就更别说了,根本没有宿主机进系统的选项.... 于是开始找办法,我想即便是LFS挂了,恢复出宿主机也好啊,结果手贱点错了,直接双击了.vmdk文件,立

GRUB启动管理器

Linux学习笔记之 5 Linux GRUB启动管理器 1.GRUB简介 1.1grub与启动引导器 启动引导器是计算机启动过程中运行的第一个真正的软件,通常计算机启动时在通过BIOS自检后读取并运行硬盘的主引导扇中的启动引导器程序,启动引导器再负责加载启动硬盘分区中的操作系统. 1.2 grub的功能 提供了真正的命令行交互界面,能够使用户以最大灵活性使用各种参数引导操作系统和收集系统信息. 支持LBA模式 GRUB能够访问ext2分区 2 安装GRUB 安装GRUB有两个层次的含义: 安装

CentOS网络启动错误

我所使用 的是centos虚拟机,在那个环境下有dhcp服务,本来用的好好的,可是突然出现了如下错误: 错误:determining IP information for eth0 ... failed; no link present . Check cable? 开始还以为是网线掉了,结果好的. 后来去网上百度,google了一下,结果出现的都是 Getting a DHCP Address in a Red Hat Linux 9.0 Virtual Machine When a Red