Regenerate Initramfs File in Linux | Resolve Kernel Panic Error in Redhat Enterprise Linux

Sdílet
Vložit
  • čas přidán 9. 03. 2020
  • Kernel Panic Error Resolution in RHEL 7/8:
    --------------------------------------------------------------------
    1. See the details of Kernel Panic Error (Identify the reason behind it eg. New Kernel, Corrupted initramfs, New Packages after Patching, Hardware change etc.)
    2. Login the system with root credentials through rescue mode.
    3. Take necesarry action as the reason of getting this error.
    If it is due to new kernel, then downgrade it.
    If it is due to corrupted or missing initramfs, regenerate it.
    4. In our case it is due to corrupted/absent initramfs file. First check your kernel version.
    uname -r
    5. Now regenerate initramfs with dracut or mkinitrd command: (here your kernel version should be same as in previous command result)
    To create new initramfs use:
    #dracut initramfs-3.10.0-1062.el7.x86_64.img 3.10.0-1062.el7.x86_64
    OR
    mkinitrd initramfs-3.10.0-1062.el7.x86_64.img 3.10.0-1062.el7.x86_64
    To replace exsiting initramfs file use:
    dracut -f initramfs-3.10.0-1062.el7.x86_64.img 3.10.0-1062.el7.x86_64
    OR
    mkinitrd --force initramfs-3.10.0-1062.el7.x86_64.img 3.10.0-1062.el7.x86_64
    =====================================================
    Thanks for watching the video. Please like our videos, share with your friends and feel free to ask anything, post your queries in comments section. We will feel glad to answer your question. And don't forget to subscribe the channel.
    ===
    *****
    Join this channel to get access to perks:
    czcams.com/channels/vk2.html...
    *****
    My DSLR Camera: amzn.to/36954Ml
    My Boya Microphone: amzn.to/3mZavTS
    My iPhone: amzn.to/3lWa63j
    My Gaming Router: amzn.to/3j3dQON
    My FireStick: amzn.to/345150F
    My Head-Phone: amzn.to/3ie4rDB
    ******
    My Dream Laptop: amzn.to/37j11fp
    My Dream TV: amzn.to/2KR32b4
    My Dream IPhone: amzn.to/36j8oE1
    ******
    Contact Us:
    WhatsApp: bit.ly/2Kpqp5z
    Telegram Channel: t.me/NehraClasses
    Email: nehraclasses@gmail.com
    ******
    Follow Us On Social Media Platforms:
    Twitter: / nehraclasses
    Facebook Page: / nehraclasses
    Instagram: / nehraclasses
    Website: nehraclassesonline.business.s...
    =======
    ©COPYRIGHT. ALL RIGHTS RESERVED.
    #NehraClasses

Komentáře • 56

  • @chinnakumar2623
    @chinnakumar2623 Před 2 lety +2

    Awesome Explanation :) loved the presentation

  • @michealobinna4285
    @michealobinna4285 Před rokem +1

    I think you did a great job in your presentation. Thank you so much.

  • @saisandy6301
    @saisandy6301 Před 11 měsíci +1

    Thank you so much sir. These videos boot up my knowledge

  • @sureshk12888
    @sureshk12888 Před 2 lety +1

    Excellent presentation - keep up the good work

  • @vishwaschaudhary4833
    @vishwaschaudhary4833 Před rokem +1

    Thank you sir for great explanation 👍 👏 👌 🙏

  • @mahvishaman9402
    @mahvishaman9402 Před rokem +1

    Thank you great explanation

  • @saisandy6301
    @saisandy6301 Před rokem +1

    Thank so much for sharing your knowledge

  • @PavanM-rm5yh
    @PavanM-rm5yh Před 3 lety +2

    Good explanation... Thanks alot

  • @kashefshaikh9666
    @kashefshaikh9666 Před 4 lety

    Very good information thanks

  • @Afro_Updates
    @Afro_Updates Před 3 lety +2

    Top IT firm do ask this question during the first phone interview for devops cloud support

  • @me_traveller7002
    @me_traveller7002 Před 2 lety +1

    Thanks a lot ..

  • @kashefshaikh9666
    @kashefshaikh9666 Před 4 lety

    Do we have such videos if kernel itself corrup in Linux server, if it is there please give me link thanks

  • @deepakpaul8453
    @deepakpaul8453 Před 11 měsíci +1

    Thanks sir

  • @kasturisudarshan56
    @kasturisudarshan56 Před 3 lety +1

    Useful Info

  • @nareshshrivastava2286
    @nareshshrivastava2286 Před 2 lety +1

    So nicely.

  • @Abhishek-qg9fj
    @Abhishek-qg9fj Před 3 lety +1

    Good information.....

  • @MrPrabhu666
    @MrPrabhu666 Před 3 lety +1

    Sir can you teach how to get in emergency mode please

  • @tabbytabrez6767
    @tabbytabrez6767 Před rokem +1

    Sir how can we check if any module is creating the kernel panic error...lsmod will list all modules but which module is creating the error how to make sure...pls confirm

  • @mohammedidris59
    @mohammedidris59 Před 3 lety +1

    Gud n excellent

  • @siddharthkumar3772
    @siddharthkumar3772 Před 11 měsíci +1

    sir can you please explain how can I restore our initramfs and vmlinuz file through CD thankyou.

    • @NehraClasses
      @NehraClasses  Před 11 měsíci

      Videos already available in our RHCSA playlist

  • @balaji276
    @balaji276 Před 3 lety +1

    Thanks

  • @mithuparmar
    @mithuparmar Před 3 lety +1

    Super

  • @pratikmuli9641
    @pratikmuli9641 Před 2 lety

    In my case, normal user mode as well as rescue mode lands me to emergency shell, dracut/# terminal saying "1. Warning /dev/mapper/rhel-root does not exist
    2. /dev/rhel/root does not exist
    3. /dev/rhel/swap does not exist
    Gemerating" /run/initramfsm/rdsosreport.txt"
    Can you please help?!

  • @rajeshchhetri-1875
    @rajeshchhetri-1875 Před 3 lety +1

    Help me I had a problem: kernel panic not syncing attempting to kill init exit code 0x00000100

    • @NehraClasses
      @NehraClasses  Před 3 lety

      For better support please join us on telegram.

  • @hemanthkumar-xn5vu
    @hemanthkumar-xn5vu Před 3 lety

    any idea about "failed to start login services" in rhel 7.6

    • @balaji276
      @balaji276 Před 3 lety

      For me also same problem brother. Do you get any solution

  • @MohitGupta-iv3uc
    @MohitGupta-iv3uc Před 6 měsíci

    Sir what if initramfs image for resuce mode get deleted ?? . Does it follow vice-versa

    • @NehraClasses
      @NehraClasses  Před 6 měsíci

      In that case we use live iso image to boot up the machine to fix the issue

    • @MohitGupta-iv3uc
      @MohitGupta-iv3uc Před 6 měsíci

      @@NehraClasses Thanks Sir

  • @manjitkumar3242
    @manjitkumar3242 Před 3 lety +1

    In MY case not working , can you please help

    • @NehraClasses
      @NehraClasses  Před 3 lety

      Please send me the error screenshots in our telegram channel 🙏

  • @akshaybagde8462
    @akshaybagde8462 Před rokem

    Why in Ubuntu it's almost impossible to resolve this kernel panic error

    • @NehraClasses
      @NehraClasses  Před rokem

      it is not like that, we can fix some kernel panic errors in ubuntu as well.

  • @mishu002
    @mishu002 Před 8 měsíci

    Ce Nu ai inteles? Iti mai sexplic o data

  • @sreepaljsp
    @sreepaljsp Před 2 lety

    i think, you have missed one step.. when you enter into rescue mode, system loads under "/mnt/sysimage" ... then you need to change it to root by giving "#chroot /mnt/sysimage"

    • @NehraClasses
      @NehraClasses  Před 2 lety

      I think you did watch it properly, I did it from the rescue kernel image, not from single user mode.

    • @sreepaljsp
      @sreepaljsp Před 2 lety

      @@NehraClasses rescue mode lands ur system into /mnt/sysimage

    • @NehraClasses
      @NehraClasses  Před 2 lety +2

      Rescue mode and rescue kernel both are different dear.
      The rescue mode is also referred to as the single-user mode. As the name suggests, the rescue mode is used when you want to salvage your system from a system failure, for example, boot failure or reset a password. In rescue mode, all the local filesystems are mounted. However, only salient services are started. Normal services such as network services will not be started.
      The rescue kernel is taking up space in /boot. A rescue kernel entry is created for every Kernel installation. A rescue kernel is marked as default after a Kernel installation.

    • @NehraClasses
      @NehraClasses  Před 2 lety +2

      In this method you don't need to manually remount the system as rw and no need to do chrooting.
      This rescue kernel just work like the normal one, but it is used for troubleshooting purpose.

    • @sreepaljsp
      @sreepaljsp Před 2 lety +1

      @@NehraClasses thank you very much ..

  • @subhashsingh8553
    @subhashsingh8553 Před rokem

    Not working at all as per your steps