Centos 6.8 won't go past Grub prompt

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

Centos 6.8 won't go past Grub prompt

Post by 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
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 6.8 won't go past Grub prompt

Post by TrevorH » 2017/05/16 14:22:45

CentOS 6 uses grub legacy not grub2.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

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

Re: Centos 6.8 won't go past Grub prompt

Post by 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

Post by ZappBrannigan » 2017/05/20 12:01:46

Is there a way to restore deleted kernels?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 6.8 won't go past Grub prompt

Post by 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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply