服务器技术

 首页 > 服务器技术 > WinServer > windows引导linux - Windows操作系统 - 自学php

windows引导linux - Windows操作系统 - 自学php

分享到:
【字体:大 中 小】
导读:
          windows引导linux用Windows引导Linux(Windows7+Ubuntu)启动到linux (Ubuntu)sudo dd if=/dev/sda of=/media/linux.lnx bs=512 count=1 www.2cto.com 将它cp到你的win根目录,例如是C:/,为了保险,最好......

windows引导linux
 
用Windows引导Linux(Windows7+Ubuntu)
 
启动到linux (Ubuntu)
sudo dd if=/dev/sda of=/media/linux.lnx bs=512 count=1 
  www.2cto.com  
将它cp到你的win根目录,例如是C:/,为了保险,最好将其属性改为“+s +h +r”,也就是“系统,只读
 
,隐藏”
 
>attrib +s +r +h c:linux.lnx。而且我建议你对这个文件做多个备份!
然后重启到win
 
进入后确认你的系统根目有linux.lnx这个文件
   www.2cto.com  
如果是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
 
分享到:
无法找到脚本引擎Jscript解决 - Windows...
无法找到脚本引擎Jscript解决   CScript 错误: 无法找到脚本“...InstallWizardForVS2010.js”的脚本引擎“JScript”。 C代码    www.2cto.com   ------解决方案--------------------------------------------------------   可能是你的脚本库被反注册了,试试:    cmd     cd /d c:\windows\system32  ...
Windows Server 2008访问网络慢问题 - Wi...
Windows Server 2008访问网络慢问题        最近参与的一个项目现场采用微软的Windows Server 2008 R2操作系统,软件部署后需要访问安装在另外一台机器上的Oracle数据库。在项目运行过程中发现访问数据库特别慢,一开始以为是项目软件自身问题。   www.2cto.com   但用客户端访问返回数据也很慢,排除了项目软件...
  •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
  • 在这里……