主頁 > 知識庫 > windows引導(dǎo)linux(Windows7+Ubuntu)

windows引導(dǎo)linux(Windows7+Ubuntu)

熱門標(biāo)簽:呼叫中心案例 硅谷的囚徒呼叫中心 萬科 電銷機(jī)器人 科大訊飛語音識別系統(tǒng) 電話機(jī)器人搭建 鐵路電話系統(tǒng) 電銷機(jī)器人源碼
用Windows引導(dǎo)Linux(Windows7+Ubuntu)
啟動到linux (Ubuntu)
sudo dd if=/dev/sda of=/media/linux.lnx bs=512 count=1
將它c(diǎn)p到你的win根目錄,例如是C:/,為了保險,最好將其屬性改為"+s +h +r",也就是"系統(tǒng),只讀
,隱藏"
>attrib +s +r +h c:\linux.lnx.而且我建議你對這個文件做多個備份!
然后重啟到win
進(jìn)入后確認(rèn)你的系統(tǒng)根目有l(wèi)inux.lnx這個文件
如果是win 2000/XP直接修改boot.ini
boot.ini請在win 下修改,因為編碼不同! 大俠除外。
它可能隱藏和只讀
然后在后面加入
如果有
代碼:
time=0
請將0更改!如time=5
代碼:
C:/linux.lnx="linux"
保存!
然后你就可以重啟win看效果了。
如果Vista/Windows 7,因為采用啟用了新的引導(dǎo)方式,即是一個bcdedit的執(zhí)行引導(dǎo)程序操作。
復(fù)制好引導(dǎo)文件后,還需要進(jìn)一步作如下修改
***************************************************
方案A:
bcdedit /create {ntldr} /d "Ubuntu Linux"
bcdedit /set {ntldr} device partition=C:
bcdedit /set {ntldr} path /ntldr
bcdedit /displayorder {ntldr} /addlast
方案B:(注意要根據(jù)第一個命令返回結(jié)果做相應(yīng)修改):
bcdedit /copy {ntldr} /d "Ubuntu Linux";系統(tǒng)會提示說"已將該項成功復(fù)制到 {8de1dad8-d399
-11db-b639-000aeb2dc0ba}",其中的{8de1dad8-d399-11db-b639-000aeb2dc0ba}就是"Ubuntu Linux"
的啟動標(biāo)識符。不同的操作系統(tǒng)可能會不一樣。
再輸入:bcdedit /set {你的Linux標(biāo)識符} device partition=C:,系統(tǒng)會提示"操作成功完成".
輸入:bcdedit /set {你的Linux標(biāo)識符} path /ntldr,
最后輸入:bcdedit /displayorder {你的Linux標(biāo)識符} /addlast.
保存退出,重啟之后你就會看到Windows 7 和 Ubuntu Linux的雙啟動菜單了。
方案C:
輸入bcdedit /? 查看相關(guān)的幫助信息
1.使用bcdedit配置新引導(dǎo)項
>bcdedit /create /d "Linux" /application osloader
#建立新項,也就是建立新引導(dǎo)項,成功后會返回一guid值
格式如下:{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
>bcdedit /set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} drive partition=C:
#設(shè)置新引導(dǎo)項文件所在分區(qū)
>bcdedit /set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} path \linux.lnx #設(shè)置啟動項文件在分區(qū)中
的相對路徑,注意文件之前的"\&;是必須的,表明是所在分區(qū)的根目錄下。若假設(shè)該文件在c:\windows\
下,則應(yīng)改為\windows\linux.另外path后面有一個空格
>bcdedit /displayorder {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} /addlast
#設(shè)置引導(dǎo)項順序,addlast為將其添加到引導(dǎo)項列表的最后,也可改為addfirst,表示添加到最前。至此
添加新引導(dǎo)項的操作已成功,但是現(xiàn)在還不能引導(dǎo),為什么呢??
>bcdedit /default {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
#此命令可選,如果要將此項設(shè)為默認(rèn)引導(dǎo)項的話,就執(zhí)行它
下面就可直接執(zhí)行bcdedit查看一下配置情況了
***************************************************
如果Windows引導(dǎo)正常了,就可以清理掉MBR記錄了。
步驟
win9x的引導(dǎo)盤啟動(或者用其他磁盤管理工具也行)
代碼
fdisk /mbr
這樣grub引導(dǎo)就沒有了,只剩下Windows的引導(dǎo)方式了。
用Windows引導(dǎo)Linux(Windows7+Ubuntu)
啟動到linux (Ubuntu)
sudo dd if=/dev/sda of=/media/linux.lnx bs=512 count=1
將它c(diǎn)p到你的win根目錄,例如是C:/,為了保險,最好將其屬性改為"+s +h +r",也就是"系統(tǒng),只讀
,隱藏"
>attrib +s +r +h c:\linux.lnx.而且我建議你對這個文件做多個備份!
然后重啟到win
進(jìn)入后確認(rèn)你的系統(tǒng)根目有l(wèi)inux.lnx這個文件
如果是win 2000/XP直接修改boot.ini
boot.ini請在win 下修改,因為編碼不同! 大俠除外。
它可能隱藏和只讀
然后在后面加入
如果有
代碼
time=0
請將0更改!如time=5
代碼
C:/linux.lnx="linux"
保存!
然后你就可以重啟win看效果了。
如果Vista/Windows 7,因為采用啟用了新的引導(dǎo)方式,即是一個bcdedit的執(zhí)行引導(dǎo)程序操作。
復(fù)制好引導(dǎo)文件后,還需要進(jìn)一步作如下修改
***************************************************
方案A:
bcdedit /create {ntldr} /d "Ubuntu Linux"
bcdedit /set {ntldr} device partition=C:
bcdedit /set {ntldr} path /ntldr
bcdedit /displayorder {ntldr} /addlast
方案B:(注意要根據(jù)第一個命令返回結(jié)果做相應(yīng)修改):
bcdedit /copy {ntldr} /d "Ubuntu Linux";系統(tǒng)會提示說"已將該項成功復(fù)制到 {8de1dad8-d399
-11db-b639-000aeb2dc0ba}",其中的{8de1dad8-d399-11db-b639-000aeb2dc0ba}就是"Ubuntu Linux"
的啟動標(biāo)識符。不同的操作系統(tǒng)可能會不一樣。
再輸入:bcdedit /set {你的Linux標(biāo)識符} device partition=C:,系統(tǒng)會提示"操作成功完成".
輸入:bcdedit /set {你的Linux標(biāo)識符} path /ntldr,
最后輸入:bcdedit /displayorder {你的Linux標(biāo)識符} /addlast.
保存退出,重啟之后你就會看到Windows 7 和 Ubuntu Linux的雙啟動菜單了。
方案C:
輸入bcdedit /? 查看相關(guān)的幫助信息
1.使用bcdedit配置新引導(dǎo)項
>bcdedit /create /d "Linux" /application osloader
#建立新項,也就是建立新引導(dǎo)項,成功后會返回一guid值
格式如下:{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
>bcdedit /set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} drive partition=C:
#設(shè)置新引導(dǎo)項文件所在分區(qū)
>bcdedit /set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} path \linux.lnx #設(shè)置啟動項文件在分區(qū)中
的相對路徑,注意文件之前的"\&;是必須的,表明是所在分區(qū)的根目錄下。若假設(shè)該文件在c:\windows\
下,則應(yīng)改為\windows\linux.另外path后面有一個空格
>bcdedit /displayorder {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} /addlast
#設(shè)置引導(dǎo)項順序,addlast為將其添加到引導(dǎo)項列表的最后,也可改為addfirst,表示添加到最前。至此
添加新引導(dǎo)項的操作已成功,但是現(xiàn)在還不能引導(dǎo),為什么呢??
>bcdedit /default {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
#此命令可選,如果要將此項設(shè)為默認(rèn)引導(dǎo)項的話,就執(zhí)行它
下面就可直接執(zhí)行bcdedit查看一下配置情況了
***************************************************
如果Windows引導(dǎo)正常了,就可以清理掉MBR記錄了。
步驟
win9x的引導(dǎo)盤啟動(或者用其他磁盤管理工具也行)
代碼
fdisk /mbr

標(biāo)簽:南通 天門 株洲 呼和浩特 新余 六安 黔東 黃石

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《windows引導(dǎo)linux(Windows7+Ubuntu)》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266