Re: how to remove unwanted old kernels. [SOLVED]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/5/23 3:16 PM, Samuel Sieb wrote:
On 12/5/23 13:58, home user wrote:
On 12/5/23 2:24 PM, Samuel Sieb wrote:
On 12/5/23 10:06, home user wrote:
The memory test entry listed by that command is the grub menu entry that I want to keep, not the one that I want to delete.  That directory has no entry corresponding to what I want to delete.

Check in the /etc/grub2.cfg file and see if something added it directly at some point in the past.

Hmmm...

You're referring to this?...
-----

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry 'Fedora Memtest memtest86+-5.31' {

yes.  I assume that's the grub entry you're trying to get rid of.

I *vaguely* recall seeing *somewhere* that we're supposed to *not* edit certain grub-related files.  Is this one of them?  What is the correct way to get this permanently out?

You can edit the grub2.cfg file if you want.  You could also try auto-generating it again with:
grub2-mkconfig -o /boot/grub2/grub.cfg
That might clean everything up.

Hey, wow, maybe I get to kill two birds with one stone?  My grub menu also has two Windows entries.  The bad one refers to sda2.  Here in grub2.cfg, would this...

-----

menuentry 'Windows 7 (on /dev/sda2)' --class windows --class os
be the culprit?  If yes, what's the correct way to get that permanently out?

Yes, and same answer as the previous.
--

Here we go...
-----
-bash.2[~]: grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found Windows 7 on /dev/sda1
Found Windows 7 on /dev/sda2
Adding boot menu entry for UEFI Firmware Settings ...
done
-bash.3[~]:
-----
saving message draft and rebooting.
I'm back.
The unwanted memory test entry is gone from the grub menu.  The grub.cfg lines that I pasted into my previous post are gone.

The sda2 windows-7 entry is still in the grub menu, and the corresponding lines are still in grub.cfg.  I get the impression from the grub2-mkconfig output that deleting those lines from grub.cfg won't help; they'll just be restored.  That menu entry is active, but when I select it, the windows-7 boot starts, and later gets stuck.  I believe that that problem is out of the scope of this thread, so I'll go no further with it.  The sda1 windows-7 entry works fine.

What I started this thread for is fixed, so I'm tagging this thread SOLVED.  I thank everyone who tried to help.

Bill.


--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux