系统之家 - Windows操作系统&装机软件下载网站!

当前位置: 首页  >  教程资讯  >  电脑教程 windows如何引导linux

windows如何引导linux

时间:2023-06-02 16:16:41 来源: 人气:

   用Windows引导Linux(Windows7+Ubuntu),  启动到linux (Ubuntu),  sudo dd if=/dev/sda of=/media/linux.lnx bs=512 count=1,  将它cp到你的win根目录,例如是C:/,为了保险,最好将其属性改为"+s +h +r",也就是"系统,只读,  ,隐藏",  >attrib +s +r +h c:linux.lnx.而且我建议你对这个文件做多个备份!,  然后重启到win,  进入后确认你的系统根目有linux.lnx这个文件,  如果是win 2000/XP直接修改boot.ini,  boot.ini请在win 下修改,因为编码不同! 大侠除外。,  它可能隐藏和只读,  然后在后面加入,  如果有,  代码:,  time=0,  请将0更改!如time=5,  代码:,  C:/linux.lnx="linux",  保存!,  然后你就可以重启win看效果了。,  如果Vista/Windows 7,因为采用启用了新的引导方式,即是一个bcdedit的执行引导程序操作。,  复制好引导文件后,还需要进一步作如下修改,  ***************************************************,  方案A:,  bcdedit /create {ntldr} /d "Ubuntu Linux",  bcdedit /set {ntldr} device partition=C:,  bcdedit /set {ntldr} path /ntldr,  bcdedit /displayorder {ntldr} /addlast,  方案B:(注意要根据第一个命令返回结果做相应修改):,  bcdedit /copy {ntldr} /d "Ubuntu Linux";系统会提示说"已将该项成功复制到 {8de1dad8-d399,  -11db-b639-000aeb2dc0ba}",其中的{8de1dad8-d399-11db-b639-000aeb2dc0ba}就是"Ubuntu Linux",  的启动标识符。不同的操作系统可能会不一样。,  再输入:bcdedit /set {你的Linux标识符} device partition=C:,系统会提示"操作成功完成".,  输入:bcdedit /set {你的Linux标识符} path /ntldr,,  最后输入:bcdedit /displayorder {你的Linux标识符} /addlast.,  保存退出,重启之后你就会看到Windows 7 和 Ubuntu Linux的双启动菜单了。,  方案C:,  输入bcdedit /? 查看相关的帮助信息,  1.使用bcdedit配置新引导项,  >bcdedit /create /d "Linux" /application osloader,  #建立新项,也就是建立新引导项,成功后会返回一guid值,  格式如下:{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx},  >bcdedit /set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} drive partition=C:,  #设置新引导项文件所在分区,  >bcdedit /set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} path linux.lnx #设置启动项文件在分区中,  的相对路径,注意文件之前的""是必须的,表明是所在分区的根目录下。若假设该文件在c:windows,  下,则应改为windowslinux.另外path后面有一个空格,  >bcdedit /displayorder {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} /addlast,  #设置引导项顺序,addlast为将其添加到引导项列表的最后,也可改为addfirst,表示添加到最前。至此,  添加新引导项的操作已成功,但是现在还不能引导,为什么呢??,  >bcdedit /default {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx},  #此命令可选,如果要将此项设为默认引导项的话,就执行它,  下面就可直接执行bcdedit查看一下配置情况了,  ***************************************************,  如果Windows引导正常了,就可以清理掉MBR记录了。,  步骤:,  win9x的引导盘启动(或者用其他磁盘管理工具也行),  代码:,  fdisk /mbr,  这样grub引导就没有了,只剩下Windows的引导方式了。,  用Windows引导Linux(Windows7+Ubuntu),  启动到linux (Ubuntu),  sudo dd if=/dev/sda of=/media/linux.lnx bs=512 count=1,  将它cp到你的win根目录,例如是C:/,为了保险,最好将其属性改为"+s +h +r",也就是"系统,只读,  ,隐藏",  >attrib +s +r +h c:linux.lnx.而且我建议你对这个文件做多个备份!,  然后重启到win,  进入后确认你的系统根目有linux.lnx这个文件,  如果是win 2000/XP直接修改boot.ini,  boot.ini请在win 下修改,因为编码不同! 大侠除外。,  它可能隐藏和只读,  然后在后面加入,  如果有,  代码:,  time=0,  请将0更改!如time=5,  代码:,  C:/linux.lnx="linux",  保存!,  然后你就可以重启win看效果了。,  如果Vista/Windows 7,因为采用启用了新的引导方式,即是一个bcdedit的执行引导程序操作。,  复制好引导文件后,还需要进一步作如下修改,  ***************************************************,  方案A:,  bcdedit /create {ntldr} /d "Ubuntu Linux",  bcdedit /set {ntldr} device partition=C:,  bcdedit /set {ntldr} path /ntldr,  bcdedit /displayorder {ntldr} /addlast,  方案B:(注意要根据第一个命令返回结果做相应修改):,  bcdedit /copy {ntldr} /d "Ubuntu Linux";系统会提示说"已将该项成功复制到 {8de1dad8-d399,  -11db-b639-000aeb2dc0ba}",其中的{8de1dad8-d399-11db-b639-000aeb2dc0ba}就是"Ubuntu Linux",  的启动标识符。不同的操作系统可能会不一样。,  再输入:bcdedit /set {你的Linux标识符} device partition=C:,系统会提示"操作成功完成".,  输入:bcdedit /set {你的Linux标识符} path /ntldr,,  最后输入:bcdedit /displayorder {你的Linux标识符} /addlast.,  保存退出,重启之后你就会看到Windows 7 和 Ubuntu Linux的双启动菜单了。,  方案C:,  输入bcdedit /? 查看相关的帮助信息,  1.使用bcdedit配置新引导项,  >bcdedit /create /d "Linux" /application osloader,  #建立新项,也就是建立新引导项,成功后会返回一guid值,  格式如下:{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx},  >bcdedit /set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} drive partition=C:,  #设置新引导项文件所在分区,  >bcdedit /set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} path linux.lnx #设置启动项文件在分区中,  的相对路径,注意文件之前的""是必须的,表明是所在分区的根目录下。若假设该文件在c:windows,  下,则应改为windowslinux.另外path后面有一个空格,  >bcdedit /displayorder {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} /addlast,  #设置引导项顺序,addlast为将其添加到引导项列表的最后,也可改为addfirst,表示添加到最前。至此,  添加新引导项的操作已成功,但是现在还不能引导,为什么呢??,  >bcdedit /default {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx},  #此命令可选,如果要将此项设为默认引导项的话,就执行它,  下面就可直接执行bcdedit查看一下配置情况了,  ***************************************************,  如果Windows引导正常了,就可以清理掉MBR记录了。,  步骤:,  win9x的引导盘启动(或者用其他磁盘管理工具也行),  代码:,  fdisk /mbr,

作者

教程资讯

电脑教程排行

系统教程

系统主题