环境:win7 + ubuntu12.04

原因:ubuntu引导不识别win7系统,胡乱执行grub修复,导致双系统均无法启动。

出现异常信息:no boot signature in partition

解决:

1.   通过USB系统镜像启动ubuntu。制作镜像。

2.   设置你的bios为USB启动,进入ubuntu。

3.   在线安装lilo。

ubuntu@ubuntu:~$ sudo apt-get install lilo
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  mbr
Suggested packages:
  lilo-doc
The following NEW packages will be installed:
  lilo mbr
0 upgraded, 2 newly installed, 0 to remove and 408 not upgraded.
Need to get 413kB of archives.
After this operation, 1,315kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://mirror.bjtu.edu.cn/ubuntu/ lucid/main mbr 1.1.10-2 [23.0kB]
Get:2 http://mirror.bjtu.edu.cn/ubuntu/ lucid/main lilo 1:22.8-8ubuntu1 [390kB]
Fetched 413kB in 3s (124kB/s)
Preconfiguring packages ...
Selecting previously deselected package mbr.
(Reading database ... 129801 files and directories currently installed.)
Unpacking mbr (from .../archives/mbr_1.1.10-2_i386.deb) ...
Selecting previously deselected package lilo.
Unpacking lilo (from .../lilo_1%3a22.8-8ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Setting up mbr (1.1.10-2) ...
Setting up lilo (1:22.8-8ubuntu1) ...

WARNING: kernel & initrd not found in the root directory (/vmlinuz & /initrd.img)
WARNING: Do NOT reboot or LILO may fail to boot if your kernel+initrd is large.
WARNING: Please read /usr/share/doc/lilo/README.Debian
ubuntu@ubuntu:~$

安装过程中,会得到如下lilo的配置提示,按OK就行了:

Package configuration

┌───────────────────────────┤ Configuring lilo ├────────────────────────────┐
 │                                                                           │ 
 │ LILO configuration                                                        │ 
 │                                                                           │ 
 │ It seems to be your first LILO installation. It is absolutely necessary   │ 
 │ to run liloconfig(8) when you complete this process and execute           │ 
 │ /sbin/lilo after this.                                                    │ 
 │                                                                           │ 
 │ LILO won't work if you don't do this.                                     │ 
 │                                                                           │ 
 │                                  <Ok>                                     │ 
 │                                                                           │ 
 └───────────────────────────────────────────────────────────────────────────┘

ubuntu@ubuntu:~$ sudo lilo -M /dev/sda mbr
Backup copy of /dev/sda in /boot/boot.0800
The Master Boot Record of  /dev/sda  has been updated.

ubuntu@ubuntu:~$ sudo -s -H

root@ubuntu:~# cd /boot/

root@ubuntu:/boot/# sudo mount /dev/sda7 /mnt

##/dev/sda7ubuntu系统所在分区

root@ubuntu:/boot/# sudo grub-install --boot-directory=/mnt /dev/sda

root@ubuntu:/boot/# reboot

 

重启之后发现ubuntu进入grub>引导了。

4.  设置grub。

grub>set root=(hd0,7)

grub>set prefix=(hd0,7)/boot/grub

## 此目录主体tab键提示查找

grub>insmod (hd0,8)/boot/grub/normal.mod

grub>normal

## 执行完毕直接从硬盘进入ubuntu系统

 

## 进入ubuntu后执行update-grub ,所有工作完成

## 重启ubuntu系统后,发现还是要一直设置grub引导。

## 执行boot-repair,这下好了

root@ubuntu:/boot/# update-grub

root@ubuntu:/boot/#sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update

root@ubuntu:/boot/#sudo apt-get install -y boot-repair && boot-repair

## 此处boot-repair有可能安装不成功,重新修改镜像源就可

##Ubuntu Software Center 中修改即可

等待一会,就会出现Boot Repair的软件界面了,点击上面的“recommended repair”按钮,等待一会儿,就会跳出修复成功。

至此ubuntu可以正常引导了。

5.   修复win7引导

通过系统光盘使用winpe进入系统,使用u盘里下载好的BCDautofix软件,执行以下。

回到ubuntu在执行一下

root@ubuntu:/boot/# update-grub

至此win7 + ubuntu都能够正常的使用,正常的引导了。

参考链接:

##修复boot引导

http://www.cnblogs.com/khler/archive/2011/01/31/1948485.html

## grub引导设置

http://www.laifuying.com/archives/436

##u盘引导制作

http://os.51cto.com/art/200911/163420_all.htm

no boot signature in partition相关推荐

  1. 「MBR」- 主引导记录(Master Boot Record) @20210315

    什么是"主引导记录"? 主引导记录(MBR),(1)是壹段信息,(2)保存在磁盘的第壹个扇区中,(3)大小为512字节. 作用:(1)保存引导代码,用于启动操作系统:(2)保存磁盘 ...

  2. [转载] Rooting with a Locked Boot Loader

    博客出处:http://technotif.com/rooting-locked-boot-loader/ When the boot loader is locked, and the manufa ...

  3. ESP32-C3 flash encryption secure boot

    本篇文档用来记录同时使能 ESP32-C3 flash 加密以及 secure boot 的流程. 测试环境如下: 硬件: ESP32-C3(revision 3) idf 版本:v4.4-dev-3 ...

  4. Extended Boot Record (EBR)

    Ref 扩展分区和逻辑分区的概念: https://en.wikipedia.org/wiki/Extended_boot_record Overview MBR中有4个partition recor ...

  5. ESP32 ECO3 手动启用 Secure Boot V2 与 flash 加密流程

    本篇文档用来说明 ESP32 ECO3 芯片同时使能 Secure Boot V2 和 flash 加密的操作流程,其中,flash 加密使用发布模式(Release Mode),使用主机生成的密钥对 ...

  6. spring boot 2.x 系列 —— spring boot 整合 kafka

    文章目录 一.kafka的相关概念: 1.主题和分区 2.分区复制 3. 生产者 4. 消费者 5.broker和集群 二.项目说明 1.1 项目结构说明 1.2 主要依赖 二. 整合 kafka 2 ...

  7. Magisk root 原理分析之二 :Android Verified Boot (AVB)

    1. Android Verified Boot (AVB) 或称 Verified Boot 2.0 简介 官方解释:验证用户设备上运行的软件完整性.它通常从设备固件的只读部分开始,该部分加载代码并 ...

  8. Android:展锐分区partition

    展锐平台分区大小设定主要是以下两个文件,比如system,vendor,cache等,如设定system:4G vendor:1G product:1G cache:3G device/sprd/ro ...

  9. Linux 运维自动化之Cobbler实战案例

    大纲 一.前言 二.Cobbler 工作原理详解 三.Cobbler 常用命令汇总 四.Cobbler 各种目录说明 五.自定义Kickstart文件详解 六.Cobbler 实战案例安装CentOS ...

最新文章

  1. Reporting Service 告警w WARN: Thread pool pressure. Using current thread for a work item
  2. gpa-user-guide-for-ubuntu-host
  3. JAVA并发编程: CAS和AQS
  4. 关于Git使用的一些心得
  5. pig连接oracle数据库,Pig安装讲解
  6. python函数实例化_Python中的__new__()方法与实例化
  7. 2017.10.22 诸神眷顾的幻想乡 失败总结
  8. 支持javascript的ppt软件_强大CSS3的3D幻灯片工具reveal.js(推荐)
  9. SQOOP——MySQL 和 HDFS 的桥梁
  10. Cocos2d-x 3.0 开发(四)使用CocoStudio创建UI并载入到程序中
  11. 笔记本使用Nsight注意事项
  12. 配置管理工具应该具有的一般特性
  13. 数学建模:方差分析模型
  14. julia的安装以及三个报错解决(包安装、dot函数无定义、定义变量无法在循环中使用)
  15. 系统学习Spring之Spring in action(三)
  16. tensorflow gpu环境安装
  17. tumblr安装包Android,Tumblr安卓安装包
  18. Android如何实现超级棒的沉浸式体验
  19. 485集线器在总线型数据采集系统的应用
  20. 微信公众平台开发(110) 微信连Wi-Fi

热门文章

  1. SecureCRT 5.1注册码
  2. 管理干净的CItrix vDisk镜像
  3. nodejs 使用 pako 压缩数据
  4. ArcGIS API for JavaScript 报错Uncaught ReferenceError:define is not defined
  5. JavaScript 数组 函数 对象
  6. android uil,Android进阶-UIL分析
  7. 2021年八省联考解析几何题目(双曲线上单点焦点弦长纯几何解法)
  8. windows系统开机自动进行NTP时间同步和系统时间修正
  9. 【应用安全】微软的安全开发生命周期(SDL)
  10. 全面了解后3G时代的技术走向:4大关键技术(转)