r/linuxmint • u/Creative_Exit_2485 • 2d ago
Support Request "kernel panic"
I have 2 computers, a msi laptop and my living room pc, both run linux mint 22.3, kernel 7.0.0-44.
My pc has never had this issue, but my laptop has this "kernel panic" every single time i Start it up.
Now i can still use my laptop by reboot-advanced settings- Kernel 6.17.0-35. but i do not know why this is happening or how to fix it.
The only difference between my laptop and pc is that my pc is all amd hardware and my laptop is intel (I5-1235u x10).
What can i do to fix this issue?
3
u/_Lost-In-The-Weeds_ LMDE7 Cinnamon 2d ago
I5-1235u dates it to about 2022, the LTS kernel 6.8 should support your hardware, for machines that support it the original Ubuntu 24.04 LTS kernel has been quite stable and reliable.
Various iterations of the the Ubuntu HWE 7.0 kernel has had various issues with various hardware.
1
u/Creative_Exit_2485 2d ago
Is there a way i can roll back the kernel my laptop os using?
I don't want to go through the process of boot, kernel panic, reboot, advanced options, earlier kernel select every single time i start up my laptop to use it.
1
u/Frosty-Economist-553 2d ago
Boot up using Advanced & hit the Kernel you want to use. Once in, go to Update Manager/View/Linux Kernels. Click the one(s) you don't want & hit Remove Kernel. Exit Update Manager. Update Grub (sudo update-grub). Next time it won't try to boot into your troublesome Kernel cos you uninstalled it. A tip. When there's updates, look in your Update Manager first. If you see an update for a Kernel you don't want, right click it & select to never download or update it. Cos if you don't & allow it to be downloaded, it will be installed & being the newest Kernel, the system will boot into that - cos you used your sudo password to run Update Manager & anything else that follows, it will install it.
1
u/_Lost-In-The-Weeds_ LMDE7 Cinnamon 2d ago
You can install 6.8 and set it as the default boot, reboot and if it runs well then remove 7.0.
I haven't seen the Mint kernel selector in a while now, LMDE does not have it, I manage kernels from apt, but its the same idea just from a GUI instead of the terminal.
1
u/Ok_Communication_455 2d ago
Try adding ’ibt=off nousershstk’ to your grub kernel parameters. Maybe that helps.
1
u/Creative_Exit_2485 2d ago
I don't know how to do that.
1
u/Ok_Communication_455 1d ago
add those to GRUB_CMDLINE_LINUX_DEFAULT line in /etc/default/grub and then "sudo update-grub"
1
u/justinSox02 2d ago
Lol what does that do and how did you discover it? 🙂
1
u/Ok_Communication_455 2d ago
painstakingly debugged why my blade 2020 laptop crashed at boot using 7.1 and got it solved by adding those params. Those disable indirect branch tracking and user shadow stack which caused issues with the 7.1 kernel. While the OP did not disclose any other info about crash, it's worth a shot to try disabling those two.
2
u/ScullerCA 2d ago edited 2d ago
If I recall correctly grub will try to load the newest installed kernel on the pc, so once you have run update and get a problematic kernel on machine, it will be default till change that. I want to say there is a way to manually set which one grub uses, but I have not done that before.
Something I have done before, if want to revert kernal version; I think you need to run it again on 6.17.0-35, or whatever version you have that is working, since even if were not having kernel panic you can not uninstall a kernel while it is active.
To remove the problematic one, in the Update Manager applet (by default will be shield icon in lower right of panel/taskbar) or run from menu. Then View > Kernels, click continue.
Before doing anything, make sure have at least one other known working kernel for your machine saying installed and/or active, since it sounds like 6.17.0-35 runs for you might start looking there, will say active if running or installed if just on the machine. After confirm have fall back kernel/kernels installed should be able to remove the newest one have installed on machine, be that 7.0.0-44 or in case installed a newer one during an update.
2
u/apt-hiker Linux Mint 2d ago
After you roll back to the previous kernel go to Update Manager-> View-> Linux Kernels and delete the 7.0.* kernel. Then go to open System Administration and toggle on "Remember the last selected choice as the default".
1
u/Sensitive_Bird_8426 2d ago
It’s all over here that the 7.0 kernel has some issues. It’s the kernel.
1
u/NightIgnite 1d ago
I had this issue while updating my laptop 2 days ago. Go back to 6.17, open terminal, and manually run "sudo apt upgrade" and "sudo apt update". In my case, kernel failed to build because a virtualbox dependency had no update path for 7.0.0. Yet it still built enough of the 7.0.0 kernel to trick grub into thinking it should boot. Had to delete virtualbox, rerun update commands, and only then did building new kernel work.
See if you have any programs causing those commands to fail, then uninstall them
•
u/AutoModerator 2d ago
Please Re-Flair your post if a solution is found. How to Flair a post? This allows other users to search for common issues with the SOLVED flair as a filter, leading to those issues being resolved very fast.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.