Score:0

How to remove extra kernels from Ubuntu22.04?

de flag

I have so many GRUB entries, how can I get rid of all but one? enter image description here

I want to use only one bootloader entry.

Also, there is a bootloader of a Windows installation when it is actually installed on another disk. How to go about this?

Score:1
cn flag

You can remove all the other entries and remove all the other kernels, but it is inadvisable.

You can, however run the commands:

sudo apt autoremove

To automatically remove the unnecessary kernels. Otherwise, to remove other kernels, for earch kernel, issue the command:

sudo apt purge linux-image-$KVER

where, in your case it will mean: 6.0.3.76060003-generic (and so on). Also understand that linux and initrd are actually a single entry, not two.

For remove the Windows entry, set the variable

GRUB_DISABLE_OS_PROBER=false

in /etc/default/grub.

Needless to say, this is extremely inadvisable, as you will not be able to boot to windows without the help of BIOS boot selection.

Saki Osive avatar
de flag
I already boot to Windows with the help of BIOS boot selection
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.