My Oracle Support Banner

Grub "Hard Disk Error" and "Switchroot Mount" Error Caused "Kernel Panic" (Doc ID 454422.1)

Last updated on APRIL 16, 2020

Applies to:

Linux OS - Version Oracle Linux 4.4 to Oracle Linux 4.6 [Release OL4U4 to OL4U6]
Oracle Cloud Infrastructure - Version N/A and later
Information in this document applies to any platform.
This problem can occur on any platform.

Symptoms

This is a very common issue which system administrator could run into when he tries to replace hard disk controller with a new one. The error could be either or both of the followings:

1. GRUB Issue

When system loads GRUB boot image from hard disk, it could be seen:
"GRUB hard disk error"
on the screen and startup hangs there.

2. Kernel Panic Issue

When the GRUB boot menu appears and one kind of kernel is selected to start up, the kernel gets panic :
MOUNT: ERROR 6 MOUNTING EXT3
MOUNT: ERROR 2 MOUNTING NONE
SWITCHROOT: MOUNT FAILED:22
UNMOUNT /INITRD/DEV FAILED: 2
KERNEL PANIC - NOT SYNCING: ATTEMPTED TO KILL INIT!

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
 1. GRUB Issue
 2. Kernel Panic Issue
Cause
 1. Analysis on GRUB Error
 2. Analysis on Kernel Panic Issue
Solution
 1. Refresh GRUB Image on Hard Disk
 2. Reconfigure Initrd.img to Support New Hard Disk Controller
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.