本案环境:

[[email protected] ~]# uname -r
2.6.32-504.el6.x86_64
[[email protected] ~]# cat /etc/redhat-release 
CentOS release 6.6 (Final)
[[email protected] ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_bright-lv_root
                       18G  2.7G   14G  17% /
tmpfs                 931M     0  931M   0% /dev/shm
/dev/sda1             477M   33M  419M   8% /boot
[[email protected] ~]# ls -al /etc/grub.conf 
lrwxrwxrwx. 1 root root 22 3月   7 02:47 /etc/grub.conf -> ../boot/grub/grub.conf


修复过程:

启动后进入grub>模式

   grub> root (hd0,0)

       > kernel /vm---(tab键补全) ro (只读) root=/ (根文件挂载点) 

       > initrd /initrd---(tab键补全)

       > boot

进入系统后:vi /boot/grub/grub.conf 查看并保存 


grub.conf 丢失后进入系统


方法二:

救援模式

 chroot /mnt/sysp_w_picpath
grub
root (hd0,0)
setup (hd0)
quit
exit


转载于:https://blog.51cto.com/zmyxn/1619934

相关文章:

  • 2021-07-21
  • 2021-08-15
  • 2021-07-30
  • 2021-12-04
  • 2022-12-23
  • 2021-12-26
  • 2021-05-30
猜你喜欢
  • 2021-12-01
  • 2021-08-20
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2021-08-04
相关资源
相似解决方案