刚安装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.

最新文章

  1. Eclipse如何发布web项目
  2. js简化判断是否为手机访问
  3. 开源工作流 Bonita BPM (JAVA)
  4. Git 使用命令
  5. 数据库 MySql(二)
  6. dojo 六 使用query dojo/query
  7. SQL语句构建器类
  8. web项目从域名申请到发布
  9. js原生设计模式——2面向对象编程之继承—多继承
  10. Untiy文档总结(1)-Profiling
  11. em标签和strong标签的区别
  12. 解读Raft(四 成员变更)
  13. Java基础:Java的四种引用
  14. 回温js算法
  15. 理解上下文Context
  16. mac下 chmod 不了文件,可以右键查看文件简介处修改权限
  17. 18 LVM逻辑卷管理
  18. 003-spring cloud gateway-概述、Route模型、网关初始化配置过程、基本原理
  19. POJ 1125
  20. [app]温度传感器测试程序

热门文章

  1. git克隆代码
  2. VS2010中如何实现自定义MFC控件
  3. Object-C-selector
  4. charles 手机抓包 unknown
  5. 禁止火狐浏览器缓存input标签方法
  6. [转载] My97DatePicker日历实现开始日期小于结束日期验证
  7. python之路----初识面向对象(二)
  8. Django框架介绍之cookie与session
  9. Node.js读取文件内容
  10. 20145314郑凯杰《网络对抗技术》实验9 web安全基础实践