Centos 6.8 won't go past Grub prompt

General support questions
ZappBrannigan
Posts: 3
Joined: 2017/05/16 12:31:06

Centos 6.8 won't go past Grub prompt

Postby ZappBrannigan » 2017/05/16 14:00:16

I've got Centos 6.8 running on a cloud VM so I don't have access to booting from the ISO to repair the server. On boot Centos goes straight to the grub> prompt.

I've done a bit of Googling & tried to set the root partition as my hard disk with the Linux OS on it it,

set root=(hd0,1)
Error 27: Unrecognized command

I'm not sure how to get the file system mounted let alone point it towards a kernel.

Any suggestions?

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

Re: Centos 6.8 won't go past Grub prompt

Postby TrevorH » 2017/05/16 14:22:45

CentOS 6 uses grub legacy not grub2.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

ZappBrannigan
Posts: 3
Joined: 2017/05/16 12:31:06

Re: Centos 6.8 won't go past Grub prompt

Postby ZappBrannigan » 2017/05/17 13:19:42

From

Code: Select all

grub> root
 (hd0,0): Filesystems type is extfs2, partition type 0x83


When I try to find kernel to load it doesn't list it,

Code: Select all

grub> kernel /

Possible files are: boot dev proc sys var selinux .autofsck


I think I've accidentally deleted all of my kernels

ZappBrannigan
Posts: 3
Joined: 2017/05/16 12:31:06

Re: Centos 6.8 won't go past Grub prompt

Postby ZappBrannigan » 2017/05/20 12:01:46

Is there a way to restore deleted kernels?

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

Re: Centos 6.8 won't go past Grub prompt

Postby TrevorH » 2017/05/20 12:13:40

Pretty sure grub does filename completion so when you did 'kernel /' and it told you the possible files were boot dev etc then you should try 'kernel /boot/<tab><tab>' to get a list of the vmlinuz* files in /boot. The same will be true for the initramfs files there too.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke


Return to “CentOS 6 - General Support”

Who is online

Users browsing this forum: No registered users and 3 guests