How to Re-install GRUB Loader on Oracle Linux 5/6

(Doc ID 1920748.1)

Last updated on SEPTEMBER 17, 2017

Applies to:

Linux OS - Version Oracle Linux 5.0 to Oracle Linux 6.5 [Release OL5 to OL6U5]
Exalytics In-Memory Machine X3-4
Exalogic Elastic Cloud X3-2 Hardware - Version X3 to X3 [Release X3]
Linux x86
Linux x86-64

Goal

 Under some rare conditions, you may get a GRUB loader corruption.

This article illustrates how to re-install the GRUB loader on Oracle Linux 5 or 6.

Symptoms

1) The GRUB menu is not shown when booting the server

2) Boot the server into rescue mode using installation DVD, and check the header of the booting disk

If the GRUB loader is corrupted:

The output may vary from different releases, but the key point is that the first output is missing 'code offset 0x48', which is a indicator of GRUB Stage 1 code.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms