RHEL6.5 grub修复测试

RHEL6.5 grub修复测试

1、删除系统中的grub.conf配置文件,然后重启系统
#rm -f /boot/grub/grub.conf
#reboot

2、重启后,系统进入到grub界面:
grub>root (hd0,0)
#如果系统不止一块硬盘,需执行grub>setup(hd0)
grub>kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/sda2
#如果是逻辑卷lv系统,则修改为root=/dev/mapper/vg_rhel6-lv_root 或者root=LABEL=/
grub>initrd /initramfs-2.6.32-431.el6.x86_64.img
grub>boot
系统修复

=====
[root@rhel6 boot]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_rhel6-lv_root 6.7G 3.0G 3.5G 47% /
tmpfs 939M 76K 939M 1% /dev/shm
/dev/sda1 194M 35M 150M 19% /boot
[root@rhel6 boot]#

原文地址:https://www.cnblogs.com/rusking/p/7414219.html