|
在我把/dev/hda4 格式化后作为swap之后,grub就不能boot windows xp了
windowsxp装在/dev/hda5上面
grub.conf 如下
default=0
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.9-34.EL)
root (hd0,2)
kernel /boot/vmlinuz-2.6.9-34.EL ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-34.EL.img
title CentOS-4 i386 (2.6.9-22.EL)
root (hd0,2)
kernel /boot/vmlinuz-2.6.9-22.EL ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-22.EL.img
title WindowsXP
rootnoverify (hd0,4)
makeactive
chainloader +1
分区表如下
fdisk -l
Disk /dev/hda: 40.0 GB, 40020664320 bytes
16 heads, 63 sectors/track, 77545 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 64 32098+ de Dell Utility
Partition 1 does not end on cylinder boundary.
/dev/hda2 64 30106 15141262+ f W95 Ext'd (LBA)
Partition 2 does not end on cylinder boundary.
/dev/hda3 30107 75098 22675968 83 Linux
Partition 3 does not end on cylinder boundary.
/dev/hda4 * 75114 77536 1220940 e W95 FAT16 (LBA)
Partition 4 does not end on cylinder boundary.
/dev/hda5 64 30106 15141231 7 HPFS/NTFS
Disk /dev/hdb: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 2 3284 26370697+ f W95 Ext'd (LBA)
/dev/hdb2 * 3285 5834 20482875 c W95 FAT32 (LBA)
/dev/hdb3 5835 7476 13189365 c W95 FAT32 (LBA)
/dev/hdb5 2 2551 20482843+ b W95 FAT32 |
|