linux系统.出现gru.b loading stage2 解决办法健康
放入第一张光盘,重新.启动机器,在boot.: linux rescue.
进去后执行出现Shell执行
#chroot /mnt./sysimage外贸
#/sb.in/ grub-instal.l /dev/hda(或者sda) (广告)
#exit
自己就重启了。OK.
如果执行grub-install的,你.会得到如下报错:'/dev/hd.x does not have any correspondi.ng BIOS drive'. 鲜花
解决方法:
请注意在执行下述命令之前,确保你的关键数据有.一个有效的当前备份,不管什么原因导致你的第一快硬盘无法引导,你就需要使用R.ed Hat .Enterprise Linux 的第一张安装光盘引导系统进入RESCUE模式。 建材
要想在RESCUE模式下运行grub-install命令, 首先需要手动的mount相关的分区。可以通过fdisk -.l 查.看当前系统的分区: 健康
# fdisk -l
你需要手动的mount所有.类型是Lin.ux和Linux RAID autodetec.t的分区,在如下的例子中,/boot分区是/dev/hda1, /分区是/dev/hda2。 [成人用品]
D.evice Boot Start End Blocks . Id System 女人
/dev/hda1 . 1 13 104.391 fd Linux raid autodetect 电子
/dev/hda2 14 .1288 10241437+ fd Li.nux raid autodetect电脑
/dev/hda3 . 1289 135.2 514080 82 Linux swap( 游戏 )
在如下的样例.中,你可以通过如下命令挂载分区: (广告)
# mkdir /mnt/sysima.ge 婚庆
# mount /dev./hda2 /mnt/sy.simage外贸
# mount /dev/hda1 /.m.nt/sysimage/boot.
# chroot /mnt/sysimag.e.
下一个.步骤是编辑文件/etc/grub.conf(或者是/boot/grub/grub.conf),按.照下述描述取消文件中的一些注释。 [成人用品]
修改
#boot=/dev/hda
成为
boot=/dev/hda
重.新运行命令grub去安装GRUB到第二个硬盘的MBR上,从而使第二.个硬盘可以引导。 .
# grub -.-batch --device.-map=/boot/grub/device.map 域名
--config-file=/bo.ot/grub/gr.ub.conf --no-floppy域名
在grub.命令的提示下,执行如下命令 .
grub> root (.hd0,0).
grub.> setup (hd0)(广告)
grub> quit
setup命令会把Grub写入到MB.R。使得第二块硬盘可.以引导。 投资
-------------.---------.
请大家注意以.下信息。(troubleshooting了一晚上,就学到了.这点体会)教育
附:
cat /boot/.grub/device.ma.p .
(fd0) /.dev/fd0 婚庆
(hd0) /de.v/cciss/c0d0 美容
. .
. 教育
. 电子
本文来自ChinaUnix博客,如果查看原文请点:
http://blog.chinaunix.net/u2/60913/showart_1764631.html 美容