惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 聂微东
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
Recent Announcements
Recent Announcements
大猫的无限游戏
大猫的无限游戏
MongoDB | Blog
MongoDB | Blog
A
About on SuperTechFans
M
MIT News - Artificial intelligence
V
Visual Studio Blog
云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
Jina AI
Jina AI
P
Proofpoint News Feed
博客园_首页
酷 壳 – CoolShell
酷 壳 – CoolShell
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
Last Week in AI
Last Week in AI
aimingoo的专栏
aimingoo的专栏
罗磊的独立博客
N
Netflix TechBlog - Medium
人人都是产品经理
人人都是产品经理

博客园 - 月の祭司

eMule需要备份的文件 OpenDNS,独特的免费DNS 用MeGUI压制720x480 MP4视频,详细教程[面向有一定基础者] [转载]avs讲解及其在rmvb压制中的合理运用 - 月の祭司 - 博客园 AVS脚本参数 - 月の祭司 - 博客园 VS2008 download ed2k links 删除 Windows Event Viewer 中不需要的Event ArchLinux Gnome Terminal 优盘中文问号的解决方法 [转载]Image Your Hard Drive using dd - 月の祭司 [转载]dd command of Linux vi中去掉“^M” GNU EMACS字体设置,基本上可以随心所欲 LInux下Mplayer字幕乱码,日文字体部分乱码解决方案 Arch Linux下 让MPlayer用上CoreAVC1.7.0.0解码器 Ubuntu 声卡独占解决方法 [转载]搞定amd64 8.04下面mldonkey自动退出问题(段错误) Ubuntu8.04系统优化 Ubuntu 8.04 Flash中文方块儿解决办法 Install Opera&Config Font on Ubuntu 64bit
Vista和Linux共存的2种方法
月の祭司 · 2008-07-04 · via 博客园 - 月の祭司

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