1:用Linux的启动盘启动,在提示符下输入linux rescue,注意不要拼错了。
2:然后按照GUI的页面提示一步步next。他会检测你以前安装过的Linux等(一般它检测不到,:()。
3:这之后它会将一个小的映像系统安装上。
4:在/mnt下挂载你的原来的硬盘,比如/mnt/oldhd
5:cd /mnt/oldhd
6:chroot /mnt/oldhd
7: 找到你原来的grub目录。(在/boot/grub/下)
8:这个目录里有个grub.conf的文件
for example:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/hda2
# initrd /boot/initrd-version.img
boot=/dev/hda
default=2
timeout=10
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
title Fedora Core (2.6.5-1.358smp)
root (hd0,1)
kernel /boot/vmlinuz-2.6.5-1.358smp ro root=LABEL=/ rhgb
initrd /boot/initrd-2.6.5-1.358smp.img
title Fedora Core (2.6.5-1.358)
root (hd0,1)
kernel /boot/vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb
initrd /boot/initrd-2.6.5-1.358.img
title DOS
rootnoverify (hd0,0)
chainloader +1
如果需要修改,你就改一下这个文件。
9:在这个目录里(/boot/grub/)运行grub-install命令。
for example: grub-install hda
其中hda是你想安装grub的盘。不需要给具体的分区。
10:That is all