故障分析
用U盘安装CENTOS 6.5 GURB 启动文件默认安装在U盘里面,把UP盘插上能正常启动 拔掉就出现一些错误如下图
1,设置从U盘正常进入系统
2,输入GRUB
grub> root (hd0, //这里按tab 键会帮你显示/分区所在的位置
Possible partitions are:
Partition num: 0, Filesystem type is ext2fs, partition type 0x83
Partition num: 4, Filesystem type unknown, partition type 0x82
Partition num: 5, Filesystem type is ext2fs, partition type 0x83
Partition num: 6, Filesystem type is ext2fs, partition type 0x83
grub> root (hd0,0)
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,0)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.
然后退出GRUB,reboot
重新启动电脑!
原文地址:http://blog.51cto.com/346054/2059982