网 络 赞 助

工 具 文 档

最 新 技 术

热 门 文 章

您现在的位置: 星云网络 >> 文章中心 >> 基础学习 >> win综合 >> 文章正文
文章搜索:

Windows Vista 和 Linux 系统共存的两种方法

作者:pcwwq    文章来源:网络转载    点击数:    更新时间:2008-7-8

环境 Vista SP1,Arch Linux

SDA1 vista c
SDA2 /boot
SDA3 SWAP
SDA6 /
SDA7 /home
SDA8 /data
SDA9 vista d

方法1:

1.导出Linux引导记录(Grub没有安装在MBR)

#dd if=/dev/sda2 of=/home/你的用户名/arch.lnx bs=512 count=1
/dev/sda2视你的arch boot所在分区而定。
生成arch.lnx,用此文件取代grldr.mbr。

2.在Vista的引导菜单中加入Ubuntu引导

在Vista下,用管理员权限运行cmd,然后
bcdedit /create /d "ArchLinux" /application bootsector 得到了一个id字符串
bcdedit /set {id} device partition=C:
bcdedit /set {id} path \arch.lnx
bcdedit /displayorder {id} /addlast

方法2:

ArchLinux早已安装完毕,并且Vista SP1已经用VistaLoader激活,
下载好grub4dos(wiki:http://grub4dos.sourceforge.net/wiki/index.php/Main_Page

将GRLDR.MBR拷贝至Vista系统盘的根目录下,如C:\。同时,也将GRLDR和menu.lst拷到系统盘的根目录下。
需要注意的是,C:\GRLDR文件本来就存在,任意改个名字即可。

重起后将首先进入grub4dos而不是像2000/2003/XP那样首先进入Windows引导界面。

附上一份供大家直接参考的menu.1st

# This is a sample menu.lst file. You should make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install GRLDR boot strap code to MBR with the bootlace.com
# utility under DOS/Win9x or Linux.

color black/cyan yellow/cyan
timeout 3
default /default

title Windows Vista
find --set-root /bootmgr
chainloader /bootmgr

title    Arch Linux
root    (hd0,1)
kernel    /vmlinuz26 root=/dev/sda6 ro noapic vga=773
initrd    /kernel26.img

title    Arch Linux Fallback
root    (hd0,1)
kernel    /vmlinuz26 root=/dev/sda6 ro noapic vga=773
initrd    /kernel26-fallback.img

title find and load NTLDR of Windows NT/2K/XP
fallback 1
find --set-root /ntldr
chainloader /ntldr
savedefault --wait=2

title commandline
savedefault --wait=2
commandline

title reboot
savedefault --wait=2
reboot

title halt
savedefault --wait=2
halt

title Install Arch
kernel (hd0,0)/isolinux/vmlinuz vga=773
initrd (hd0,0)/isolinux/initrd.img

title Install Ubuntu
find --set-root /ubuntu-8.04-desktop-amd64.iso
kernel (hd0,0)/casper/vmlinuz boot=casper
initrd (hd0,0)/casper/initrd.gz

加入网摘:365Key  | 新浪ViVi  | 和讯网摘  | 天极网摘  | POCO网摘 
文章录入:文章录入:2008xynt    责任编辑:2008xynt 
友情链接说明:  我们只接受页面健康的同类型网站之类的方字链接形式.  点此申请链接  联系QQ:40562876
点击申请点击申请点击申请
点击申请点击申请点击申请点击申请点击申请点击申请点击申请点击申请