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

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

 



On 12/6/23 9:01 AM, Robert McBroom via users wrote:

On 12/5/23 17:54, home user wrote:


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.

Windows has a startup partition as well as the main partition, windows starts from the first. The grub2-mkconfig process picks up both. You can delete it from grup2.cfg with a text editor. With the current primary grub menu generation by blscfg usage grub2.cfg rarely gets rebuilt on updates so the change will stay.

I commented those lines out.  The sda2 windows entry no longer shows up in the grub menu; there were no other changes in the grub menu.  Both Fedora and windows-7 boot as they should.

Thank-you Robert.
--
_______________________________________________
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