How to solve kernel panic error in Linux


Troubleshoot Linux Kernel Panic


How to solve kernel panic error in Linux


Troubleshoot | RHEL-7 Kernel panic error

Before I start to write about this, let’s understand that kernel panic can be a cause of many different reasons related to Linux Kernel.when kernel tries to load itself to memory, if it finds any difficulties, it provides with some kind of error in the form of Kernel panic.

I have even faced other issues related to kernel panic, but those happened while I was trying to migrate a Linux VM to AWS cloud & that happened because the source Linux had some custom module which was not supported for AWS. So the migrated instance at AWS gave kernel panic.

So, it’s really difficult to post all the use cases in one blog article. So attempting to start with a simple one first.

Below is an example that I came across in recent days and hence wrote a few lines.

This happens mostly because of the initramfs.img file missing or corrupted

1.Boot the system in rescue mode

2.Login using root account

3.Navigate to /boot

4. See if initramfs.img file is available (If it is available, it must be corrupted

kernel panic linux troubleshooting

5.find kernel version (uname -r)
6.mkinitrd initramfs-kernel_version.img kernel_version

linux kernel panic recovery

7.Boot the machine


To Troubleshoot kernel crashes, hangs, or reboots with kdump and for more Linux server services contact LIA Infraservices


  • Nikolaj Hansen

    Arh, this mostly happens because of dodgy hardware. So this is a quite a bit more complex than your explanation

    September 23, 2018 - 11:24 pm Reply
    • LIA Infraservices

      Thank you Nikolaj for providing your feedback, We are continuously improvise our service and blogs. Your feedback meant a lot to us and we have done a minor change to the blog upon your feedback.

      September 24, 2018 - 11:56 pm Reply
  • 바카라잘하는방법

    Excellent post.Ne’er knew this, appreciate it for
    letting me know.

    September 27, 2018 - 9:41 am Reply
    • LIA Infraservices

      Thank you for your feedback.

      September 29, 2018 - 9:14 pm Reply
  • lap dat dien mat troi

    Very soon this site will be famous amid all blogging
    and site-building visitors, due to it’s nice articles

    September 27, 2018 - 7:04 pm Reply
    • LIA Infraservices

      Thank you for your comments

      September 29, 2018 - 9:14 pm Reply

Leave A Comment

Your email address will not be published.