Add entry for Fedora12 to Vista/Win7's boot menu

2433阅读 0评论2009-11-19 s_x_g
分类:LINUX

How to add an entry for Fedora12 to Vista/Win7's boot menu
Chinese title: 在Vista/Win7的启动菜单中为Fedora12添加启动入口
 
Keyword: BCD, Fedora 12, Linux, Vista, Windows 7, boot menu, dd, bcdedit
 
STEP ONE: Dump F12's boot record to f12.bin
Under Fedora12
1) Install grub to the partition where "/boot" directory resides
# grub-install /dev/sda2
2) Dump boot record
# dd if=/dev/sda2 of=/path/to/C:/f12.bin bs=512 count=1
 
STEP TWO: add entry to BCD Store
Under Vista/Win7
C:\>bcdedit /create /d "Fedora release 12 (Constantine)" /application BOOTSECTOR
C:\>bcdedit /set {xxxx--xxxxx.....xxx} device partition=C:
C:\>bcdedit /set {xxxx--xxxxx.....xxx} path \f12.bin
C:\>bcdedit /displayorder {xxxx--xxxxx.....xxx} /addlast
 
You are done! good luck~
上一篇:如何判断Windows驱动函数运行在哪个进程上下文中
下一篇:Patch for moblin-anjuta-plugin-0.1.0