Rescue mode boots oldest kernel

General support questions
Post Reply
egurski
Posts: 24
Joined: 2012/08/09 15:17:22
Contact:

Rescue mode boots oldest kernel

Post by egurski » 2017/12/10 13:34:34

I just moved my drives toa newer faster system and expected everything to just boot up. Instead I've had nothing but problems!

I am using the latest updates from Centos 7 .

When I login into the system (not the rescue system I was expecting) I can see my desktop and all my apps. Everything seems to work fine. So, I decided to reboot to the latest version and get errors from dracut on all versions except the rescue option.

I tried to re-install with the latest DVD but when it came to choosing my disks and saying I would partition myself, I get an error saying I cannot do this.

I though of rebuilding grub but have not done that yet.

I will move the drives on the SATA bus just to be sure.

Any help would be greatly appreciated.

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: Rescue mode boots oldest kernel

Post by tunk » 2017/12/10 14:54:52

I haven't had to do it myself, but I believe you have to rebuild the initramfs by issuing some dracut command.
This may/may not be a good starting point: https://sites.google.com/site/syscookbo ... el-rebuild

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: Rescue mode boots oldest kernel

Post by pjsr2 » 2017/12/10 15:17:30

The rescue kernel contains a host of drivers and modules in order to work on all hardware. During kernel installation, a new kernel and boot image is created with a subset of drivers that is sufficient to boot on your specific hardware. Since you replaced the hardware, this subset may not be the right one. So you should create a kernel / boot image pair that fits your new hardware. Simplest way is to boot into the rescue kernel and re-install the latest kernel with:

Code: Select all

sudo yum reinstall kernel-3.10.0-693.11.1. el7.x86_64
After that try rebooting to this kernel.

egurski
Posts: 24
Joined: 2012/08/09 15:17:22
Contact:

Re: Rescue mode boots oldest kernel

Post by egurski » 2017/12/10 15:52:13

When I boot into rescue mode, I get my normal Centos 7 configuration and eveything seems to be working.

I understand the rescue portion, but I am not booting inot a subset of the OS.

Thanks

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Rescue mode boots oldest kernel

Post by TrevorH » 2017/12/10 15:58:58

The rescue kernel is just that, it's a kernel that ought to work on all hardware configurations as it's built using the dracut option 'hostonly=no' which means that it includes drivers for all hardware including things that were not present on the host that it was built on. The default option is to use hostonly=yes which looks at the hardware present on the machine at the time the initramfs was built and only includes things that were present on the machine at that time.

You need to boot the rescue kernel and then either rebuild the initramfs for the most recent kernel by using something like dracut -f /boot/initramfs-3.10.0-693.11.1. el7.x86_64 3.10.0-693.11.1. el7.x86_64 (notice that the file to rebuild and the version of the kernel to rebuild it specified there - if you don't do that then it rebuilds for whatever kernel is currently running which is not what you want when booted from the rescue kernel). Or you need to yum reinstall kernel-3.10.0-693.11.1. el7.x86_64 as previously suggested.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

egurski
Posts: 24
Joined: 2012/08/09 15:17:22
Contact:

Re: Rescue mode boots oldest kernel

Post by egurski » 2017/12/11 01:18:01

Tried this and it worked. However, I am now getting kernel panics. I tested the new memory and it is fine. No errors. The only new part on the system was an upgraded processor, which I know believe is faulty.

I will ask for a replacement processor tomorrow.

Thanks for all the help.

Post Reply