Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HELP - FATAL: kernel too old - SOLVED
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Sun Sep 04, 2016 1:21 am    Post subject: HELP - FATAL: kernel too old - SOLVED Reply with quote

I lost a drive Thursday night. I run a backup server, so I put a new drive in, copied the boot stuff and /dev/sda1 boot partition from an identical piece of hardware, set up LVM on /dev/sda2 and and made /dev/gentoo/swap and did a mkswap, and set up /dev/gentoo/rootfs as the LVM logical device to put the filesystem on. Did a mkfs.xfs on /dev/gentoo/rootfs, then copied the entire filesystem contents from the backup server into the XFS filesystem on /dev/gentoo/rootfs.

So now I should be able to boot and have my old system back, right? Well, it was not so easy. When I tried to boot, I got the following screenshot:

http://www.elilabs.com/moses_boot.gif

So the only thing I can figure is that system got updated to openrc but never got rebooted, or this problem would have shown up earlier.

So I booted from an equally ancient live USB stick and tried to do a chroot, but that failed too:
Code:

livecd ~ # df
Filesystem           1K-blocks      Used Available Use% Mounted on
tmpfs                  4051916     36312   4015604   1% /
/dev/sdb1               979664    122176    857488  13% /mnt/cdrom
/dev/loop0               92544     92544         0 100% /mnt/livecd
udev                     10240       144     10096   2% /dev
tmpfs                  4051916      5796   4046120   1% /mnt/livecd/lib64/firmware
tmpfs                  4051916         0   4051916   0% /mnt/livecd/usr/portage
/dev/mapper/gentoo-rootfs
                     1048444928  74520220 973924708   8% /mnt/gentoo
/dev/sda1                54416     29921     21686  58% /mnt/gentoo/boot
livecd ~ # mount -t proc proc /mnt/gentoo/proc
mount: mount point /mnt/gentoo/proc does not exist
livecd ~ # mkdir /mnt/gentoo/proc
livecd ~ # mount -t proc proc /mnt/gentoo/proc
livecd ~ # mount --rbind /sys /mnt/gentoo/sys
livecd ~ # mount --make-rslave /mnt/gentoo/sys
livecd ~ # mount --rbind /dev /mnt/gentoo/dev
livecd ~ # mount --make-rslave /mnt/gentoo/dev
livecd ~ #
livecd ~ #
livecd ~ # chroot /mnt/gentoo /bin/bash
FATAL: kernel too old
livecd ~ #
livecd ~ # uname -a
Linux livecd 2.6.31-gentoo-r6 #1 SMP Thu Dec 3 13:03:32 UTC 2009 x86_64 Intel(R) Core(TM)2 Duo CPU E7300 @ 2.66GHz GenuineIntel GNU/Linux
livecd ~ #

So how am I supposed to fix this? I thought I would chroot and upgrade the kernel, as it is ancient, but I can't even chroot! It seems to me that the Gentoo Handbook has been updated, and I need to find an old copy of the handbook to chroot on this old system.

Any ideas?
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.


Last edited by Moriah on Mon Sep 05, 2016 12:27 am; edited 1 time in total
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2574

PostPosted: Sun Sep 04, 2016 1:48 am    Post subject: Reply with quote

Try using a new System Rescue CD to get the chroot to work. You can easily put it on a usb.

Of course, there should be no need to actually chroot to install a new kernel. Simply copy the new kernel over and the /lib/modules/<version> if necessary.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Sun Sep 04, 2016 8:16 am    Post subject: Reply with quote

Moriah,

There have been a lot of kernel/udev changes since 2.6.31
Its your old kernel and new udev that don't play nicely together.

There is no need to chroot to install a new kernel but you will need somewhere to build it.
When it comes to installing the modules, pass the
Code:
INSTALL_MOD_PATH=
on the command line as you would with cross compiling a kernel.
Code:
ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- make modules_install INSTALL_MOD_PATH=/mnt/cdrom


INSTALL_MOD_PATH= points to the root of where you want the modules to go. /lib/modules/`uname -r`/ will be appended to whatever you set.
You won't need the ARCH= or CROSS_COMPILE= in that example, unless you really are cross compiling your kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2117
Location: Kentucky

PostPosted: Mon Sep 05, 2016 12:26 am    Post subject: Reply with quote

Thanks to both of you. I had some confusion with the systemrescuecd, as it said no entry in /dev for /dev/sda1 or something similar, so I went and fetched the current gentoo minimal install iso instead, and everything is working fine once again. The system in question was actually running a 3.17.7-gentoo kernel. That old old one was the usb boot stick.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum