View previous topic :: View next topic |
Author |
Message |
arvamircea Tux's lil' helper
Joined: 21 May 2022 Posts: 107 Location: Swadlincote
|
Posted: Thu Nov 23, 2023 12:47 am Post subject: [MOVED] Failed kernel updated resulted in kernel panic |
|
|
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
>Now we build the kernel
>We've installed the Nvidia drivers as module so:
Code: | make modules_install |
>Now to install the actual kernel
>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 |
|
|
arvamircea Tux's lil' helper
Joined: 21 May 2022 Posts: 107 Location: Swadlincote
|
Posted: Thu Nov 23, 2023 12:52 am Post subject: Update |
|
|
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 |
|
|
arvamircea Tux's lil' helper
Joined: 21 May 2022 Posts: 107 Location: Swadlincote
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21644
|
Posted: Thu Nov 23, 2023 3:03 pm Post subject: |
|
|
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 |
|
|
|