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

  Рет қаралды 28,884

Nehra Classes

Nehra Classes

4 жыл бұрын

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:
kzbin.info/door/vk2...
*****
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

Пікірлер: 57
@vemagantianand1260
@vemagantianand1260 15 сағат бұрын
Was very useful nehra sir got to know in simple steps
@chinnakumar2623
@chinnakumar2623 2 жыл бұрын
Awesome Explanation :) loved the presentation
@michealobinna4285
@michealobinna4285 Жыл бұрын
I think you did a great job in your presentation. Thank you so much.
@sureshk12888
@sureshk12888 2 жыл бұрын
Excellent presentation - keep up the good work
@vishwaschaudhary4833
@vishwaschaudhary4833 Жыл бұрын
Thank you sir for great explanation 👍 👏 👌 🙏
@saisandy6301
@saisandy6301 Жыл бұрын
Thank you so much sir. These videos boot up my knowledge
@kashefshaikh9666
@kashefshaikh9666 4 жыл бұрын
Do we have such videos if kernel itself corrup in Linux server, if it is there please give me link thanks
@mahvishaman9402
@mahvishaman9402 Жыл бұрын
Thank you great explanation
@saisandy6301
@saisandy6301 Жыл бұрын
Thank so much for sharing your knowledge
@NehraClasses
@NehraClasses Жыл бұрын
My pleasure!
@PavanM-rm5yh
@PavanM-rm5yh 4 жыл бұрын
Good explanation... Thanks alot
@NehraClasses
@NehraClasses 4 жыл бұрын
🙏
@kashefshaikh9666
@kashefshaikh9666 4 жыл бұрын
Very good information thanks
@NehraClasses
@NehraClasses 4 жыл бұрын
You're welcome
@MrPrabhu666
@MrPrabhu666 3 жыл бұрын
Sir can you teach how to get in emergency mode please
@tabbytabrez6767
@tabbytabrez6767 Жыл бұрын
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
@NehraClasses
@NehraClasses Жыл бұрын
Please go through kernel panic logs
@me_traveller7002
@me_traveller7002 2 жыл бұрын
Thanks a lot ..
@pratikmuli9641
@pratikmuli9641 2 жыл бұрын
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?!
@ashishgupta3788
@ashishgupta3788 2 жыл бұрын
Same here. Please advise
@deepakpaul8453
@deepakpaul8453 Жыл бұрын
Thanks sir
@rajeshchhetri-1875
@rajeshchhetri-1875 3 жыл бұрын
Help me I had a problem: kernel panic not syncing attempting to kill init exit code 0x00000100
@NehraClasses
@NehraClasses 3 жыл бұрын
For better support please join us on telegram.
@Afro_Updates
@Afro_Updates 3 жыл бұрын
Top IT firm do ask this question during the first phone interview for devops cloud support
@NehraClasses
@NehraClasses 3 жыл бұрын
Yes
@kasturisudarshan56
@kasturisudarshan56 3 жыл бұрын
Useful Info
@NehraClasses
@NehraClasses 3 жыл бұрын
Thanks
@nareshshrivastava2286
@nareshshrivastava2286 2 жыл бұрын
So nicely.
@NehraClasses
@NehraClasses 2 жыл бұрын
Thank you! 😊
@hemanthkumar-xn5vu
@hemanthkumar-xn5vu 4 жыл бұрын
any idea about "failed to start login services" in rhel 7.6
@balaji276
@balaji276 3 жыл бұрын
For me also same problem brother. Do you get any solution
@mohammedidris59
@mohammedidris59 4 жыл бұрын
Gud n excellent
@NehraClasses
@NehraClasses 4 жыл бұрын
Thanks
@Abhishek-qg9fj
@Abhishek-qg9fj 3 жыл бұрын
Good information.....
@NehraClasses
@NehraClasses 3 жыл бұрын
Thanks 👍
@siddharthkumar3772
@siddharthkumar3772 Жыл бұрын
sir can you please explain how can I restore our initramfs and vmlinuz file through CD thankyou.
@NehraClasses
@NehraClasses Жыл бұрын
Videos already available in our RHCSA playlist
@mithuparmar
@mithuparmar 3 жыл бұрын
Super
@NehraClasses
@NehraClasses 3 жыл бұрын
Thanks
@balaji276
@balaji276 3 жыл бұрын
Thanks
@NehraClasses
@NehraClasses 3 жыл бұрын
Welcome
@MohitGupta-iv3uc
@MohitGupta-iv3uc 7 ай бұрын
Sir what if initramfs image for resuce mode get deleted ?? . Does it follow vice-versa
@NehraClasses
@NehraClasses 7 ай бұрын
In that case we use live iso image to boot up the machine to fix the issue
@MohitGupta-iv3uc
@MohitGupta-iv3uc 7 ай бұрын
@@NehraClasses Thanks Sir
@manjitkumar3242
@manjitkumar3242 3 жыл бұрын
In MY case not working , can you please help
@NehraClasses
@NehraClasses 3 жыл бұрын
Please send me the error screenshots in our telegram channel 🙏
@akshaybagde8462
@akshaybagde8462 Жыл бұрын
Why in Ubuntu it's almost impossible to resolve this kernel panic error
@NehraClasses
@NehraClasses Жыл бұрын
it is not like that, we can fix some kernel panic errors in ubuntu as well.
@mishu002
@mishu002 9 ай бұрын
Ce Nu ai inteles? Iti mai sexplic o data
@sreepaljsp
@sreepaljsp 3 жыл бұрын
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 3 жыл бұрын
I think you did watch it properly, I did it from the rescue kernel image, not from single user mode.
@sreepaljsp
@sreepaljsp 3 жыл бұрын
@@NehraClasses rescue mode lands ur system into /mnt/sysimage
@NehraClasses
@NehraClasses 3 жыл бұрын
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 3 жыл бұрын
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 3 жыл бұрын
@@NehraClasses thank you very much ..
@subhashsingh8553
@subhashsingh8553 Жыл бұрын
Not working at all as per your steps
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 18 МЛН
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 9 МЛН
ВОДА В СОЛО
00:20
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 30 МЛН
Gym belt !! 😂😂  @kauermtt
00:10
Tibo InShape
Рет қаралды 17 МЛН
Troubleshooting IO performance issues on Linux
7:14
TECSTER
Рет қаралды 61 М.
Session-38 | Booting Process of RHEL 8 Linux | Nehra Classes
13:30
Nehra Classes
Рет қаралды 13 М.
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 18 МЛН