LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 638|回复: 0

求助,奇怪的grub

[复制链接]
发表于 2006-5-8 18:12:54 | 显示全部楼层 |阅读模式
在我把/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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表