Sometimes, when hdd feeling bad, your OS can’t start normaly.
And you are getting grub concole, like: grub >
The easiest way to boot your kernel:
1. check the list of drives
grub> ls
(hd0) (hd0,gpt2) (hd0,gpt1)
2. Check /boot folder on the drive (or another folder, depends from your server structure)
grub> ls (hd0,gpt1)/boot/
. .. grub initrd-2.6.32-ovz-el-alt88.M60P.1.img System.map-2.6.32-ovz-el-alt88.M60P.1 vmlinuz-2.6.32-ovz-el-alt88.M60P.1
3. Booting
grub> set root=(hd0,gpt1)
grub> linux /boot/vmlinuz-2.6.32-ovz-el-alt88.M60P.1 root=/dev/sda1
grub> initrd /boot/initrd-2.6.32-ovz-el-alt88.M60P.1.img
grub> boot
Another way is more complicated. And you should use it, if you got an error “grub unknown command linux”
1. check the list of drives
grub> ls
(hd0) (hd0,gpt2) (hd0,gpt1)
2. Check /boot folder on the drive (or another folder, depends from your server structure)
grub> ls (hd0,gpt1)/boot/
. .. grub initrd-2.6.32-ovz-el-alt88.M60P.1.img System.map-2.6.32-ovz-el-alt88.M60P.1 vmlinuz-2.6.32-ovz-el-alt88.M60P.1
3. set path to modules folder
grub> set prefix=(hd0,gpt1)/boot/grub/
4. Load module you need
grub> insmod linux
P.S. there are a lot of them, here most popular
insmod loopback
# If ISO is located on fat16 or fat32 formatted partition.
insmod iso9660
insmod fat
insmod ntfs
# If ISO is located on an NTFS formatted partition.
insmod nftscomp
# If NTFS compression is used on the partition. Load if you aren’t sure.
5. Booting
grub> set root=(hd0,gpt1)
grub> linux /boot/vmlinuz-2.6.32-ovz-el-alt88.M60P.1 root=/dev/sda1
grub> initrd /boot/initrd-2.6.32-ovz-el-alt88.M60P.1.img
grub> boot