解决方案 “部署系统后,如果没有u盘,RHEL6将无法启动”

RHEL6.5安装到服务器后一定要插U盘, otherwise the server

can not boot on the next time. The reason is that GRUB information had been installed to

MBR of U disk rather than local disk, if you plug off the u disk, the server can’t boot because

there is no boot information in local disk.


解:
reinstall grub to MBR of localdisk, and edit /boot/grub/grub.conf.

[root@localhost~]#grub

Grub>根(hd0,0) ## (hd0,0) means the first partition of first disk.

Grub>setup(hd0)

Grub>放弃

 

or you can useGrub-install” 命令:

If there exist an independent /boot partition, you can execute the following command.

[root@localhost~]#grub-install /dev/hda(or sda)

If only / 划分,and there is no independent /boot partition,你可以执行

grub-installroot-directory=/boot/dev/hda(or sda)”

After GRUB installedyou also need to edit file “/boot/grub/grub.conf”,modify boot information

“(hd0,0)”.

发表评论