国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Linux > 正文

windows如何引導linux

2020-05-27 13:42:43
字體:
來源:轉載
供稿:網友

   用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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 讷河市| 贵港市| 太康县| 西和县| 孝义市| 同仁县| 白河县| 航空| 政和县| 米林县| 临城县| 浦城县| 墨脱县| 东乡族自治县| 司法| 井研县| 吉安县| 东光县| 阜阳市| 宁陕县| 健康| 盱眙县| 连州市| 通江县| 临漳县| 木兰县| 汝州市| 渝中区| 北川| 栖霞市| 响水县| 武安市| 青铜峡市| 长丰县| 时尚| 绥滨县| 龙泉市| 绥滨县| 林口县| 平阴县| 辰溪县|