November 19

Linux: Issue with an interrupted upgrade

  1. Reboot gave display this message: “Kernel Panic – Not Syncing: VFS: Unable To Mount Root FS”
  2. Was able to boot into a past kernel. This gave me hope that it was just going to be a problem relating to the latest kernel installation
  3. I discovered that the latest kernel files were not all completely created. Particularly boot/initramfs-4.1.12-124.24.3.el6uek.x86_64.img
  4. I used dracut to build the image file:
    dracut /boot/initramfs-4.1.12-124.24.3.el6uek.x86_64.img 4.1.12-124.24.3.el6uek.x86_64
  5. I also ran yum-complete-transaction to force yum to finish installing the rest of the files that were interrupted
  6. I rebooted again and got the same error.
  7. We discovered that the /boot/grub/grub.conf file did not create correctly. Problem: title Oracle Linux Server Unbreakable Enterprise Kernel (4.1.12-124.24.3.el6uek.x86_64) root (hd0,0) kernel /vmlinuz-4.1.12-124.24.3.el6uek.x86_64 ro root=/dev/mapper/vg_servername-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_servername/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg_servername/lv_swap KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet numa=off transparent_hugepage=never '''initrd /initramfs-4.1.12-61.1.28.el6uek.x86_64.img''' It appears that during the Kernel configuration build since /boot/initramfs-4.1.12-124.24.3.el6uek.x86_64.img was missing, it pointed to an incoreect initramfs file. This file boots the hard drive. Corrected: title Oracle Linux Server Unbreakable Enterprise Kernel (4.1.12-124.24.3.el6uek.x86_64) root (hd0,0) kernel /vmlinuz-4.1.12-124.24.3.el6uek.x86_64 ro root=/dev/mapper/vg_servername-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_LVM_LV=vg_servername/lv_root rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg_servername/lv_swap KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet numa=off transparent_hugepage=never initrd /initramfs-4.1.12-124.24.3.el6uek.x86_64.img


Copyright 2021. All rights reserved.

Posted November 19, 2021 by Timothy Conrad in category "Linux

About the Author

If I were to describe myself with one word it would be, creative. I am interested in almost everything which keeps me rather busy. Here you will find some of my technical musings. Securely email me using - PGP: 4CB8 91EB 0C0A A530 3BE9 6D76 B076 96F1 6135 0A1B