/etc/grub.conf文件丢失


1、模拟:可将/etc/grub.conf直接删除(先在/dev/sdb1上做好备份)

# mount /dev/sdb1  /backup
# cp /etc/grub.conf  /backup/1


删除后仍可正常启动

2、用备份修复:

进急救模式

虚拟机:启动时按F2 -Boot-用shift+"+"号将CD-ROM Drive调到最上-F10- boot:linux rescue - ok - ok - no -

continue - ok - sh-3.2#

进入急救模式:# chroot  /mnt/sysimage
              # mkdir  /tmpdir
              # mount  /dev/sdb1  /tmpdir
              # cp /tmpdir/1 /etc/grub.conf

              # 断电 - 重启

              启动时按F2 -Boot-用shift+"+"号将+Hard Drive调到最上-F10