Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[MOVED] Failed kernel updated resulted in kernel panic
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
arvamircea
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2022
Posts: 107
Location: Swadlincote

PostPosted: Thu Nov 23, 2023 12:47 am    Post subject: [MOVED] Failed kernel updated resulted in kernel panic Reply with quote

Hello,

I have failed updating the kernel and I need your help. Here is a picture of the kernel panic: https://postimg.cc/JHNb72RD . There are no older kernel versions to boot into from the UEFI menu.
To fix this I tried:

>Booted with a TailsOS LiveCD
Code:
mkdir /mnt/gentoo
mount /dev/nvme0n1p3 /mnt/gentoo
mount --types proc /proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
mount --bind /run /mnt/gentoo/run
mount --make-rslave /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/dev
mount --make-slave /mnt/gentoo/run
chroot /mnt/gentoo /bin/sh
source /etc/profile
mount -a

>Now that we are in the troubled system. We remove everything from /boot but the two "EFI" and "grub" directories.
>We make sure that we have the correct kernel version set with "eselect kernel list" and "eselect kernel set"
>We go into /usr/src/linux and delete the old config because I want to make sure I have a good config
Code:
cd /usr/src/linux
rm .config*

>We use "make defconfig" to generate the config
Code:
make defconfig

>Now we build the kernel
Code:
make -j5

>We've installed the Nvidia drivers as module so:
Code:
make modules_install

>Now to install the actual kernel
Code:
make install

>We also need an initramfs I think, so just in case:
Code:
genkernel --install initramfs

>Finally we update the bootloader
Code:
grub-mkconfig -o /boot/grub/grub.cfg

>"Found linux image: /boot/vmlinuz-6.6.2-gentoo" and "Found initrd image: /boot/initramfs-6.6.2-gentoo.img", good stuff
>Now we live the troubled system and reboot (umount -a -> umount: /dev: target is busy. | Not sure why this is but I just ignored it)
Code:
umount -a
exit
umount -l /mnt/gentoo/{dev,proc,sys,run,}
sync
reboot


>Getting the same kernel panic :| What am I doing wrong?

P.S. Sorry for uploading the kernel panic error message as an image, this is happening on my main machine so I can't really copy it.


Last edited by arvamircea on Thu Nov 23, 2023 5:50 am; edited 2 times in total
Back to top
View user's profile Send private message
arvamircea
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2022
Posts: 107
Location: Swadlincote

PostPosted: Thu Nov 23, 2023 12:52 am    Post subject: Update Reply with quote

Update:
Even tho I've done this process two more times before, this time the system does not kernel panic, but outputs:
Code:
Loading Linux 6.6.2-gentoo ...
Loading initial ramdisk ...

And then nothing happens.
Back to top
View user's profile Send private message
arvamircea
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2022
Posts: 107
Location: Swadlincote

PostPosted: Thu Nov 23, 2023 5:52 am    Post subject: Reply with quote

Sorry, I've reposted in the correct location https://forums.gentoo.org/viewtopic-p-8807980.html#8807980.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21644

PostPosted: Thu Nov 23, 2023 3:03 pm    Post subject: Reply with quote

Per Guidelines (READ BEFORE POSTING) item #12, please do not cross-post. If you decide a thread is in the wrong forum, you should use the Report this topic link to ask a moderator to move it to the forum you want.
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