windows7与ubuntu多系统引导
常用的操作系统引导程序和其配置文件列表:
操作系统引导程序配置文件引导程序版本工具dosio.sys,msdos.sys,command.comconfig.sys、autoexec.bat windows xp、windows 2000NTLDRboot.inint5.0 windows vista、windows 7BOOTMGRbcdnt6.0bcdedit、bcdbootlinuxlilomenu.lst linuxgrubmenu.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}
recoverysequence {544313b2-2257-11e3-a2c6-94955791f210}
recoveryenabled Yes
osdevice partition=C:
systemroot \Windows
resumeobject {544313b0-2257-11e3-a2c6-94955791f210}
nx OptIn
实模式启动扇区
---------------------
标识符 {544313b4-2257-11e3-a2c6-94955791f210}
device partition=\Device\HarddiskVolume1
path \linux.bin
description ubuntu
进入系统后,计算机->属性->系统属性->高级->启动和故障恢复 中可以设置默认启动的操作系统。
参考:
http://blog.csdn.net/kl222/article/details/1554406
http://blog.163.com/panyonglong_917/blog/static/17947455201042611273940/
http://forum.ubuntu.org.cn/viewtopic.php?f=139&t=396667
http://www.pobeta.com/bcd-ubuntu.html
http://hi.baidu.com/fyyfly/item/6bff54f6d1850fb530c1997b
bcdedit使用:http://technet.microsoft.com/zh-cn/library/ee921507.aspx