- 论坛徽章:
- 0
|
我先安装xp在/dev/sda上(是ATA的硬盘,主盘),后来加了一快硬盘(从盘,grub也是安装在这个盘上,做为引导盘),安装centos4,安装完成后在bios中设置由hdb启动系统。现在情况是centos可以使用,但xp无法由grub引导。
我的硬盘分区信息如下:
- Disk /dev/hdb: 30.7 GB, 30738677760 bytes
- 255 heads, 63 sectors/track, 3737 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- /dev/hdb1 * 1 1239 9952236 83 Linux
- /dev/hdb2 1306 3736 19527007+ f W95 Ext'd (LBA)
- /dev/hdb3 1240 1304 522112+ 82 Linux swap
- /dev/hdb5 1306 3736 19526976 b W95 FAT32
- Partition table entries are not in disk order
- Disk /dev/sda: 80.0 GB, 80026361856 bytes
- 255 heads, 63 sectors/track, 9729 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- /dev/sda1 * 1 1275 10241406 7 HPFS/NTFS
- /dev/sda2 1276 9729 67906755 f W95 Ext'd (LBA)
- /dev/sda5 1276 3187 15358108+ b W95 FAT32
- /dev/sda6 3188 5737 20482843+ b W95 FAT32
- /dev/sda7 5738 9729 32065708+ b W95 FAT32
复制代码
grub配置文件如下:
hiddenmenu
#title CentOS-4 i386 (2.6.9-22.ELsmp)
# root (hd0,0)
# kernel /boot/vmlinuz-2.6.9-22.ELsmp ro root=LABEL=/ rhgb quiet
# initrd /boot/initrd-2.6.9-22.ELsmp.img
title CentOS-4 i386-up (2.6.9-22.EL)
root (hd0,0)
kernel /boot/vmlinuz-2.6.9-22.EL ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-22.EL.img
title winxp
rootnoverify (sda0,0)
chainloader +1
在rootnoverify (sda0,0)处,我已经试过(sda1,0)等,好像都提示
Error23: Error while parsing number
不知道我是哪里出错了,请帮忙解决,谢谢! |
|