Grub Error when booting to Centos7

General support questions
Post Reply
michael_hilburt1
Posts: 4
Joined: 2017/02/16 13:25:30

Grub Error when booting to Centos7

Post by michael_hilburt1 » 2018/04/23 01:10:35

Hi,
I am having a problem with booting into my CentOS7 every time I try to boot into it.
It gives me the following message.
This CentOS 7 is a virtual machine in vmware workstation 12.

The error I am getting is
Minima BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions.

grub>
grub>
grub>
Here is the error (See centosError2.png)
centosError2.PNG
centosError2.PNG (5.19 KiB) Viewed 257 times
After that I tried some other things using the centos7.iso but I still cant get it to boot properly (See the other screenshots)
Any help is highly appreciate because I have tried so many things!

Thanks!
centosError6.PNG
centosError6.PNG (23.52 KiB) Viewed 257 times



centosError9PNG.PNG
centosError9PNG.PNG (20.51 KiB) Viewed 257 times

User avatar
TrevorH
Forum Moderator
Posts: 23213
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Grub Error when booting to Centos7

Post by TrevorH » 2018/04/23 06:11:05

Boot the rescue DVD again and chroot to your installed system then run grub2-mkconfig -o /boot/grub2/grub.cfg and see if that helps. If /boot/grub2/grub.cfg exists already, might want to make a copy first.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

michael_hilburt1
Posts: 4
Joined: 2017/02/16 13:25:30

Re: Grub Error when booting to Centos7

Post by michael_hilburt1 » 2018/04/24 00:30:24

Thanks Trevor!
I followed your advice and it boots fine now.

Just wondering can you please tell me what those commands do?
And what could be though of as the reason this grub issue came up in the first place?

Thanks again for all your help!

User avatar
TrevorH
Forum Moderator
Posts: 23213
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Grub Error when booting to Centos7

Post by TrevorH » 2018/04/24 08:30:29

Apparently your grub config file was missing or corrupted. You recreated it and now it seems fine. If you still have the old file you could check it to see how it was corrupt.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply