π ~1 min read
Table of contents
Symptom & Impact
System fails to boot expected kernel or drops to rescue mode.
Environment & Reproduction
Observed after manual grub edits or disk layout changes.
grubby --default-kernel
awk -F"'" '$1=="menuentry " {print $2}' /boot/grub2/grub.cfg
cat /etc/default/grub
Root Cause Analysis
Incorrect default index, stale UUIDs, or inconsistent config generation targets.
Quick Triage
Inspect active default and generated menu entries.
grubby --info=ALL
lsblk -f
grep -R GRUB_CMDLINE_LINUX /etc/default/grub
Step-by-Step Diagnosis
Validate boot target and root UUID references.
grep -n 'linux' /boot/grub2/grub.cfg | head
blkid
cat /proc/cmdline

Solution – Primary Fix
Regenerate grub config and set known good default kernel.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
grub2-mkconfig -o /boot/grub2/grub.cfg
grubby --set-default /boot/vmlinuz-$(uname -r)
grubby --default-kernel

Solution – Alternative Approaches
Boot previous kernel and rebuild configuration from rescue environment.
grub2-editenv list
grub2-set-default 0
Verification & Acceptance Criteria
Host boots successfully into intended kernel.
uname -r
grubby --default-kernel
journalctl -b -p err | tail -n 30
Rollback Plan
Restore backup grub files and previous default entry.
cp -a /root/grub.cfg.bak /boot/grub2/grub.cfg
grub2-set-default 1
Prevention & Hardening
Control boot config edits via change management and backup automation.
cp -a /boot/grub2/grub.cfg /root/grub.cfg.$(date +%F)
Related Errors & Cross-Refs
Related to initramfs mismatch and root filesystem UUID changes.
Related tutorial: View the step-by-step tutorial for oracle-linux-10.
View all oracle-linux-10 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Oracle Linux bootloader and kernel boot management references.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.