|
发表于 2005-7-25 09:46:50
|
显示全部楼层
给你看下我的XP+LINUX的分区。
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 7 HPFS/NTFS
/dev/hda2 1276 4864 28828642+ f W95 Ext'd (LBA)
/dev/hda5 1276 2550 10241406 7 HPFS/NTFS
/dev/hda6 2551 3766 9767488+ 7 HPFS/NTFS
/dev/hda7 * 3767 3778 96358+ 83 Linux
/dev/hda8 3779 3826 385528+ 82 Linux swap / Solaris
/dev/hda9 3827 4864 8337703+ 83 Linux
注意。/dev/hda1和hda7都是bootable的,另外,grub要安装到hda的MBR上。
groub.conf
# Which listing to boot as default. 0 is the first, 1 the second etc.
default 0
# How many seconds to wait before the default listing is booted.
timeout 10
# Nice, fat splash-image to spice things up 
# Comment out if you don't have a graphics card installed
splashimage=(hd0,6)/grub/splash.xpm.gz
title=Gentoo Linux
# Partition where the kernel image (or operating system) is located
root (hd0,6)
kernel /bzImage root=/dev/hda9 vga=791
# The next three lines are only if you dualboot with a Windows system.
# In this case, Windows is hosted on /dev/hda6.
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
/dev/hda7是boot分区,也就是hd(0,6)。XP在/dev/hda1上,也就是hd(0,0)上。 |
|