环境 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

 posted on 2008-07-04 22:54  月の祭司  阅读(678)  评论(0编辑  收藏  举报