![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||||||||||
Solution Type Technical Instruction Sure Solution 1920748.1 : How to Re-install GRUB Loader on Oracle Linux 5/6
In this Document
Created from <SR 3-9448705121> 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 GoalUnder 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. Symptoms1) 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: # file -s /dev/sda
/dev/sda: x86 boot sector; partition 1: ID=0x83, active, starthead 1, startsector 63, 64998927 sectors; partition 2: ID=0x82, starthead 254, startsector 64998990, 2104515 sectors While a good one looks like: # file -s /dev/sda
/dev/sda: x86 boot sector; partition 1: ID=0x83, active, starthead 1, startsector 63, 64998927 sectors; partition 2: ID=0x82, starthead 254, startsector 64998990, 2104515 sectors, code offset 0x48 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. SolutionFor native Oracle Linux:Let's assume that the booting disk is sda, the / partition is sda2, and /boot partition is sda1. # 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 # 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 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. Attachments This solution has no attachment |
||||||||||||||||||||
|