redhat efi grub修復

redhat efi grub修復linux

現象:
開機出現grub>界面,沒法進入系統。centos

解決:
grub> ls (會列出幾個盤)
grub> ls (hd0,1) (逐個確認哪一個是系統盤)app

grub> ls (hd0,1)/ (如hd0,1是系統盤,查看/下面內容,一會會用到)
grub> insmod xfs
grub> set root=(hd0,1)
grub> linux16 /vmlinuz-xxxx root=/dev/mapper/rhel-root (centos爲centos-root)
grub> initrd16 /initramfs-xxxx.img
grub> bootide

正常會進入系統,此時只是臨時解決,還需繼續操做it

grub2-mkconfig -o /boot/grub2

再重啓就會正常了class

相關文章
相關標籤/搜索