LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-08-2020, 09:19 AM   #1
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Fedora 31 howto remove and block kernel-5.5.9-200.fc31.x86_64


On my laptop the above kernel prevents booting. I get three lines of text and nothing. Can walk away and wait hours still nothing happens. Has to do with password and passing data to anaconda (the GUI controller for Fedora), i think that is the point...

In short I want to remove that kernel and all packages attached to it and lock this laptop to the older:

kernel-5.3.11-300.fc31.x86_64

or 5.3.x or 5.4.x kernel so i do not have to format reinstall this laptop again. Yes it is old, yes it is slowing starting to fall apart, but I want to keep it running as long as possible.

Yes I am aware of the security implications by not updating my kernel, but if it does not boot, all security is worthless as the laptop is unusable at that point.

Yes it is my laptop, not the kernel. My wife has the same vs of laptop (1 year older) and she is able to run the 5.5 kernel without issue.

My google foo has failed. I can find commands for removing OLD kernels, but not newer ones. I also looked into versionlock command for dnf and am not 100% sure that is the correct path for me.

Thank you in advance.
 
Old 04-08-2020, 09:56 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,770

Rep: Reputation: 2768Reputation: 2768Reputation: 2768Reputation: 2768Reputation: 2768Reputation: 2768Reputation: 2768Reputation: 2768Reputation: 2768Reputation: 2768Reputation: 2768
Provide a link for those instructions. There is no basic difference removing an old kernel or a new one, but we can look over those instructions to make sure there is nothing obvious that you should not do.

If you have the option, you might try installing a newer kernel. Your issue may be with that SPECIFIC version alone, and it might be good to find out.
 
Old 04-08-2020, 10:19 AM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,879
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
If you are able to boot any older kernel, then you can easily remove the problem kernel thus:
Code:
sudo dnf remove kernel-core-5.5.9
To prevent installation of newer kernels, edit /etc/dnf/dnf.conf to include this line:
Code:
exclude=kernel*
If an exclude line already exists, append a space and kernel* to it. This will prevent dnf from adding or removing any package containing the string "kernel" at the beginning of its name. If you wish to block only the 5.5.9 kernel, instead use kernel*5.5.9* on the exclude line.

Anaconda is Fedora's installation program. What you think is Anaconda is likely GDM, the display manager. You're probably better off simply booting a prior kernel than removing the offending kernel and blocking installation of other kernels. Did you try booting an older kernel and then rebuilding the 5.5.9 initramfs? That may be all that's needed to fix the problem.

Have you tried booting without starting the display manager? If you strike the E key when the Grub menu appears and append a space and a 3 to the end of the line that begins linu (which likely wraps to the next line) before proceeding to boot as instructed on the bottom of that screen, you may be able to reach a login prompt while running on the 5.5.9 kernel from which the initramfs can be rebuilt, or any other action performed required to solve the problem, such as examining the journal for the previous boot for errors causing the problem.
 
Old 04-08-2020, 10:31 AM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Original Poster
Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Ill work on getting those links for removing old kernels in a bit, but here are some links to the errors and kernels im seeing/using

https://drive.google.com/open?id=1ql...lSu0WL4YrWzUR0

https://drive.google.com/open?id=1NF...dWpKWM3YWXHUvb

hope those links work.
 
Old 04-08-2020, 10:40 AM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Original Poster
Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
https://www.if-not-true-then-false.c...-red-hat-rhel/

https://www.tecmint.com/delete-old-k...el-and-fedora/
 
Old 04-08-2020, 10:46 AM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,879
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
Possibly Plymouth is the problem here. You can bypass it via Grub by appending plymouth.enable=0 or noplymouth or plymouth=0 to the linu line. Which I don't remember, as I don't use Fedora's Grub.
 
Old 04-08-2020, 10:57 AM   #7
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,879
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
From there:
Quote:
Edit /etc/yum.conf or /etc/dnf/dnf.conf and set installonly_limit:

installonly_limit=2
I set the limit to 5 or 8 and delete kernels as in comment #3 when I choose, or let dnf autoremove the old ones only when they have gotten rather more stale.
 
Old 04-08-2020, 11:14 AM   #8
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Original Poster
Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Thank you mrmazda,

I followed https://robbinespu.github.io/eng/201...ot_faster.html

directions, no luv still no boot plus now i have no display during the lockup. I still have to ctrl+alt+del to get access to the grub selection screen to choose the older kernel.
 
Old 04-08-2020, 11:41 AM   #9
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,879
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
Did you also try simply appending 3 (see comment #3) in Grub?
 
Old 04-08-2020, 11:59 AM   #10
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Original Poster
Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
I will try that after 2:30pm EST, have to complete work day. nice and bad working from home.
 
Old 04-10-2020, 03:33 PM   #11
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Original Poster
Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Was unable to resolve the issue. Ended format install of Ubuntu 18.04 *sad face*

Things up and running at least.

Notes on the install

1. One of the fastest installs I have performed for any Distro/OS
2. apt-get is faster than in the past. Seems like a good updates to the code.
3. Still do not like sudo as the default process for accessing root level commands. Yes set a p/w asap for root to provide correct access to the root level commands.
4. Runs lighter than Fedorda did on the system.
5. Some basics that I am accustom to being in a distro were missing and had to be manually installed. vim as an example.
6. note* the CLI command convert requires editing to the configuration in order to merge PDF files.
7. VirtualBox & F@H both work without issues, fussing, editing, tweaking, etc...
8. Citrix Receiver installs without issue, but refuses to connect to any site I need it for. Still have to use the Chrome addin to access works VDI's.

All-in-all i am happy with what Ubuntu has become over the past decade plus.

mrmazda, thank you for attempting to help with the bad install i had on this laptop. I think when I last installed Fedora on this laptop I still had the SD card in the slot and that could have caused issues with stability as that SD card is both old and no longer stable.

I have been using Fedora for well over a decade, I am still happy with that distro, but for now I will keep my laptop on Ubuntu and might replace Fedora with Ubuntu on my workstation when I am able to return to my house. Stupid COVID-19

negative note: /etc/profile.d/ does not seem to work the way I am accustomed. Will make a new post on this issue for help.

edit to add:

Seems that Ubuntu does not properly handle freeing up RAM. This is an older laptop with only 8G RAM. After less than 48hr uptime the RAM would not clear and free up for new programs that needed access to RAM. I closed Chrome (memory hog to say the least) and paused F@H (Folding @ Home) to free up both RAM and CPU ticks. Attempted to start a VM (VirtualBox) and the system just locked hard. After roughly 30min I was able to issue shutdown -r now in a terminal to regain control over my system. After the reboot everything ran fine as the RAM was released from use. Bad on Ubuntu memory management.

Last edited by lleb; 04-13-2020 at 08:06 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] nVidia Drivers, fc31, for newbies. slopsbucket Fedora 0 03-23-2020 09:47 AM
[SOLVED] fc31 sound issue baldur_1 Linux - Hardware 1 01-21-2020 06:41 PM
ipm timed out error on Red Hat 2.6.9-67.0.22.ELsmp #1 SMP x86_64 x86_64 x86_64 GNU/L bellnarm Linux - Newbie 0 07-07-2009 04:36 PM
lose 200$ or sace 200! HELP HELP HELP! OMEGA-DOOM Linux - Software 8 10-23-2004 07:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration