解决方案 “部署系统后,如果没有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>setup(hd0)
Grub>放弃
or you can use “Grub-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-install–root-directory=/boot/dev/hda(or sda)”
After GRUB installed ,you also need to edit file “/boot/grub/grub.conf”,modify boot information
至 “(hd0,0)”.