日期:2014-05-17  浏览次数:20783 次

windows7与ubuntu多系统引导

常用的操作系统引导程序和其配置文件列表: 

操作系统 引导程序 配置文件 引导程序版本 工具
dos io.sys,msdos.sys,command.com config.sys、autoexec.bat    
windows xp、windows 2000 NTLDR boot.ini nt5.0  
windows vista、windows 7 BOOTMGR bcd nt6.0 bcdedit、bcdboot
linux lilo menu.lst    
linux grub menu.lst    

 

windowsxp与linux多系统: http://blog.csdn.net/kl222/article/details/1554406

windows 7 引导 linux:

1、先装linux,再装windows7的情况。

装完linux后,  备份MBR,linux下使用如下命令:

# dd if=/dev/hda of=/root/linux.bin bs=512 count=1


#sudo dd if=/dev/sda10 of=/media/ubuntu/系统保留/linux.bin bs=512 count=1

 

再安装windows7。

把前面备的的linux.bin文件复制到C:盘根目录。或者从U盘中启动ubuntu13.1 。把linux.bin文件复制到windows7的系统目录下。

 

2、先装windows7,再装linux的情况。

装linux时,注意不要把MBR写到主活动分区中。因为主活动分区中已经存储了windows7的MBR

 

在命令行下执行下面语句:

C:\>bcdedit /create /d "ubuntu" /application bootsector

项{544313b4-2257-11e3-a2c6-94955791f210} 成功创建。

C:\>bcdedit /set {544313b4-2257-11e3-a2c6-94955791f210} device partition=\device\harddiskvolume1

C:\>bcdedit /set {544313b4-2257-11e3-a2c6-94955791f210} path \linux.bin

C:\>bcdedit /displayorder {544313b4-2257-11e3-a2c6-94955791f210} /addlast

 

 

查看刚加入的条目: 

C:\>bcdedit

Windows 启动管理器
--------------------
标识符                  {bootmgr}
device                  partition=\Device\HarddiskVolume1
description             Windows Boot Manager
locale                  zh-CN
inherit                 {globalsettings}
default                 {current}
resumeobject            {544313b0-2257-11e3-a2c6-94955791f210}
displayorder            {current}
                        {544313b4-2257-11e3-a2c6-94955791f210}
toolsdisplayorder       {memdiag}
timeout                 30

Windows 启动加载器
-------------------
标识符                  {current}
device                  partition=C:
path                    \Windows\system32\winload.exe
description             Windows 7
locale                  zh-CN
inherit                 {bootloadersettings}
recoverys