在安装CentOS过程中一切还比较顺利,完成后出现没有U盘引导无法启动系统,解决方案如下:
1. 通过U盘引导系统正常启动
2.修改vi /boot/grub/grub.conf #编辑,添加以下内容(CentOS 5.9为例)
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-version.img
#boot=/dev/sda1
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-348.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-348.el5 ro root=LABEL=/
initrd /initrd-2.6.18-348.el5.img
:wq! #保存退出
输入:reboot #重启系统