Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Document 1920748.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=18...

PowerView is Off Umer (Available) (0) Contact Us Help

Dashboard Knowledge Service Requests Patches & Updates


Service Requests >
Give Feedback...

Copyright (c) 2019, Oracle. All rights reserved. Oracle Confidential.

How to Re-install GRUB Loader on Oracle Linux 5/6 (Doc ID 1920748.1) To Bottom

In this Document Was this document helpful?

Goal Yes
No
Symptoms
Solution
Document Details
For native Oracle Linux:
For Oracle Linux on Engineered System Exadata:
Type:
HOWTO
Status:
PUBLISHED
Last Major
Aug 4, 2018
Update:
Aug 4, 2018
Last Update:
APPLIES TO:

Linux OS - Version Oracle Linux 5.0 to Oracle Linux 6.5 [Release OL5 to OL6U5] Related Products
Exalytics In-Memory Machine X3-4
Linux OS
Exalogic Elastic Cloud X3-2 Hardware - Version X3 to X3 [Release X3] Exalytics In-Memory Machine
Linux x86 X3-4
Linux x86-64 Exalogic Elastic Cloud X3-2
Hardware
Oracle Cloud Infrastructure
GOAL
Information Centers
Under some rare conditions, you may get a GRUB loader corruption.
Information Center: Exalytics
This article illustrates how to re-install the GRUB loader on Oracle Linux 5 or 6. In-Memory Machine X3-4
[2288526.2]

Symptoms Information Center: Exalogic


Elastic Cloud X3-2 Hardware
[2286151.2]
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
Document References
If the GRUB loader is corrupted: No References available for this
document.
# file -s /dev/sda
/dev/sda: x86 boot sector; partition 1: ID=0x83, active, starthead 1, startsector 63, 64998927 sectors;
Recently Viewed
partition 2: ID=0x82, starthead 254, startsector 64998990, 2104515 sectors
Exalogic: How To Boot A
While a good one looks like: Compute Node To Single
User Mode [2056830.1]
# file -s /dev/sda Exalogic Virtual: Procedure
/dev/sda: x86 boot sector; partition 1: ID=0x83, active, starthead 1, startsector 63, 64998927 sectors; For Replacing Infiniband HCA
partition 2: ID=0x82, starthead 254, startsector 64998990, 2104515 sectors, code offset 0x48 Card On Dom0 Compute
Nodes [1621976.1]
Oracle Exadata Database
The output may vary from different releases, but the key point is that the first output is missing 'code offset 0x48', which is a Machine exachk or
indicator of GRUB Stage 1 code. HealthCheck [1070954.1]
Exalogic X4-2 & X5-2
SOLUTION Solaris Compute Nodes
Kernel Panic Due To Old IB
HCA FW Version [2174550.1]
For native Oracle Linux: ibqueryerrors Reports
SymbolErrors on One or
Let's assume that the booting disk is sda, the / partition is sda2, and /boot partition is sda1. More of the IB switch or HCA
port [1988445.1]

1) Boot the server into rescue mode, and mount the filesystem automatically, Please refer to: How to Boot Oracle Linux into Show More
Rescue Mode
The / partition would be mounted under /mnt/sysimage automatically.
If not, mount it manually:

# mount /dev/sda2 /mnt/sysimage

2) Mount the /boot partition and /dev manually, to prepare the chroot environment:

# mount /dev/sda1 /mnt/sysimage/boot


# mount -o bind /dev /mnt/sysimage/dev

1 of 2 2/25/2019, 1:23 PM
Document 1920748.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=18...

# chroot /mnt/sysimage

3) Re-install the GRUB loader

# grub-install /dev/sda

For Oracle Linux on Engineered System Exadata:

1) Boot the server with Exadata diagnostics iso


The / partition would be mounted under /mnt/cell automatically.

2) Mount the /boot partition and /dev manually, to prepare the chroot environment

# mount /dev/sda1 /mnt/cell/boot


# mount -o bind /dev /mnt/cell/dev
# chroot /mnt/cell

3) Re-install the GRUB loader

# grub-install /dev/sda

Reboot the server and you should able to see the GRUB menu back.

Didn't find what you are looking for? Ask in Community...

Related
Products

Oracle Linux and Virtualization > Oracle Linux > Operating System > Linux OS > Linux Kernel > Generic kernel issues (sched, init, etc)
Sun Microsystems > Specialized Systems > Middleware Systems > Exalytics In-Memory Machine X3-4 > BOOT > OS
Sun Microsystems > Specialized Systems > Middleware Systems > Exalogic Elastic Cloud X3-2 Hardware > Errors or Missing Components > Other
Oracle Cloud > Oracle Infrastructure Cloud > Oracle Bare Metal Infrastructure Services > Oracle Cloud Infrastructure

Keywords
GRUB; LINUX; LOADER; MISSING

Back to Top
Copyright (c) 2019, Oracle. All rights reserved. Legal Notices and Terms of Use Privacy Statement

2 of 2 2/25/2019, 1:23 PM

You might also like