GRUB 恢复注意事项
恭喜您,您遇上财神了,送给你2庆典金币!
CENTOS 4 使用的是 GNU GRUB version 0.95 (640K lower / 3072K upper memory)
CENTOS 5 使用的是 GNU GRUB version 0.97 (640K lower / 3072K upper memory)
当CENTOS 4出问题的时候,用CENTOS 5的光盘启动,linux rescue, 默认用0.97的版本的去操作,
这样即使安装成功grub,也不能成功启动。
必须要用原来的grub来安装,/sbin/grub 才能成功启动系统。
[root@jupiter boot]# grub
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.95 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename.]
grub> device (hd0) /dev/sda
device (hd0) /dev/sda
grub> root (hd0,0)
root (hd0,0)
Filesystem type is ext2fs, partition type 0xfd
grub> setup (hd0)
setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
succeeded
Running "install /grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/grub/stage2 /grub/grub.conf"... succeeded
Done.
#reboot
Finished.
今天碰到的。