Welcome

Monday, February 4, 2019

Fix Error Bash minimal centos 7

If you installed new kernel and your server boot into GRUB prompt, you need to enter to rescue mode. and reinstall grub.

Minimal BASH like line editing is supported. For the first word, TAB lists possible command completions. anywhere else TAB lists possible device or file completions.

for centos 7:

Solution: Enter Linux rescue.

type command:
fdisk -l

if your system on /dev/sda2, type:
mount /dev/sda2 /mnt  

mount -o rbind /dev /mnt/dev
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys

if you are using EUFI:
mount /dev/sda1 /mnt/boot/efi
chroot /mnt

grub2-install /dev/sda

reboot the server.

No comments: