Linux Lite Forums

Hardware - Support => Start up and Shutdown => Topic started by: Jesús TEJERINA RIVERA on August 10, 2022, 03:01:29 PM

Title: multiple boot init
Post by: Jesús TEJERINA RIVERA on August 10, 2022, 03:01:29 PM
Hi, i have windows 10 and linux lite 5.8 over ubuntu 22.04.1 LTS

Every time I do an update, it increases those options.

How can I correct it so that only one linux appears? Thanks.

show image: https://imgur.com/a/cxVYUTf
(https://imgur.com/a/cxVYUTf)
Title: Re: multiple boot init
Post by: Jerry on August 11, 2022, 05:39:43 AM
Posting images - https://www.linuxliteos.com/forums/introductions/forum-posting-guidelines/
Title: Re: multiple boot init
Post by: Jesús TEJERINA RIVERA on December 29, 2022, 07:33:58 AM
Nothing response....  :032: :032:
Title: Re: multiple boot init
Post by: Jesús TEJERINA RIVERA on February 04, 2023, 07:11:22 AM
please help me...

(https://i.imgur.com/pMMMD8k.jpg)
Title: Re: multiple boot init
Post by: stevef on February 05, 2023, 10:24:42 AM
Do you retain the old kernels after running updates ?
It is good to keep one (or maybe two) old kernels in case you encounter problems with the latest one, but removing unused kernels should reduce the options you see.

Boot your system on the option for the latest kernel.  To confirm what kernel you have booted, open a terminal and type
Code: [Select]
cd /procfollowed by return, then
Code: [Select]
cat versionfollowed by return.

As of 5th Feb 2023, the current kernel for 5.8 is 5.4.0-137-generic so your output should confirm this.  If it does, run Lite Tweaks and select Kernel Remover and click begin.  This should show you the unused images on your system.  Removing all but the most recent should reduce the options in the GRUB menu.

Not sure why your GRUB is doing this, have you modified the file /etc/default/grub ?

EDIT - That's the Boot Manager  screen - rather than the grub menu. Please ignore the grub references above.
Title: Re: multiple boot init
Post by: Jesús TEJERINA RIVERA on February 06, 2023, 07:08:23 AM
cat version:
(https://i.imgur.com/vVCFpy9.png)

Lite Tweak:
(https://i.imgur.com/V177Xbk.png)

1. Can I remove all?
2. How to update to kernel 5.4.0-137?

Thanks...
Title: Re: multiple boot init
Post by: stevef on February 06, 2023, 08:08:11 AM
1) You can remove all. I'd begin by removing some to see if the boot manager screen gives fewer options afterwards.

2) 5.4.0.137 may not be what you want.  I suggested it because your profile says your system LL 5.8 64 bit and your original post also says 5.8 though it also says 22.04 which is confusing.  If you really are on LL5.8 then 5.4.0.137 would have been the current kernel.

However, if you have 5.15.0.58 it implies you have LL6.x and the current kernel for LL6.x is 5.15.0.58.

Can you clarify which version of LL please ?
Title: Re: multiple boot init
Post by: Jesús TEJERINA RIVERA on February 06, 2023, 10:17:38 AM
conky show:
(https://i.imgur.com/egcHVFf.png)

System info show:
(https://i.imgur.com/brOMKGb.png)
Title: Re: multiple boot init
Post by: stevef on February 06, 2023, 10:38:53 AM
That's interesting. As I understand from the release notes

LL 5.x based on ubuntu 20.04 and began with 5.4.0-33
LL 6.x based on ubuntu 22.04 and began with 5.15.0-33

Did you manually install kernel 5.15.0 at some point ?

What do you get from these commands ?
Code: [Select]
inxi -S
Code: [Select]
cat /etc/llver
Did removing the older kernels change your Boot Manager options ?
Title: Re: multiple boot init
Post by: Jesús TEJERINA RIVERA on February 06, 2023, 10:47:53 AM
No, all I do is update what the PACKAGE UPDATE INDICATOR tells me.


Yes, i remove all kernel but "init boot" is same.
(https://i.imgur.com/tDNhhXj.jpg)
Title: Re: multiple boot init
Post by: Jesús TEJERINA RIVERA on February 06, 2023, 10:49:57 AM
(https://i.imgur.com/H3YBdSa.png)
Title: Re: multiple boot init
Post by: stevef on February 07, 2023, 02:19:21 AM
I don't understand how you have got a LL 5.x system with LL 6.x kernel or why your Boot Manager is giving so many options.
It is possible that the two things are related, but I can't see the link.

Do you know when the problem of multiple boot choices being offered started ?
Did it work ok before ?

It might help if we know a bit about when the kernel changes occurred.
Please can you open a terminal, make it full width and run the following commands.

Code: [Select]
journalctl --list-boots --no-pager
Code: [Select]
journalctl | grep 'gcc version'
The first command lists all the boots your system has logged.
The second command reports which kernel was used in the boot.

If you are happy to disclose this information, please post the results back. There may be many lines of text so you may need to need to scroll up to select all the output.
If you can't scroll back far enough, you may need to change the scrolling option on your terminal and re-run the commands.

Please post the results as text from the terminal window rather than an image.
To do this, click the '#' icon which you should see above the yellow icons when replying.  This should insert two tags each with the word code in square brackets into your post.

Copy all the command output and then paste it between the ']' and '[' symbols so that the text is contained between the tags.  Check it looks right using 'Preview'
Title: Re: multiple boot init
Post by: Jesús TEJERINA RIVERA on February 07, 2023, 09:38:25 AM
Do you know when the problem of multiple boot choices being offered started ?
Not exactly, but they were increasing in certain updates that I did through the PACKAGE UPDATE INDICATOR icon. I thought it was normal operation.

Did it work ok before ?
Yes, but as I told you in the previous question, they gradually increased with the updates.

journalctl --list-boots --no-pager
Code: [Select]
0 eeab37c30fcb45d79237e0cdec7b45f9 Tue 2023-02-07 11:11:28 -03—Tue 2023-02-07 11:18:55 -03

journalctl | grep 'gcc version'
it shows nothing.


images:
(https://i.imgur.com/6NhkYai.png)


I have GRUB 2.04

this might help you.
(https://i.imgur.com/GtvNPyX.png)

Title: Re: multiple boot init
Post by: stevef on February 07, 2023, 10:27:25 AM
OK, it looks like you don't have any archived logs that journalctrl can find.
With the second command 'gcc version' I was hoping to see when the system had last booted on a 5.4.0 kernel, but as there is only one log saved there's nothing to see.

It seems odd to me that the Boot Manager (Administrador de arranque) does not show 'Windows'.  What do you select if you want to boot Windows ?

Maybe something in your UEFI/BIOS needs clearing.

Regarding Grub Customizer, I read things like this.
https://easylinuxtipsproject.blogspot.com/p/grub-customizer.html
If you've made changes with Grub Customizer please read it too.

Title: Re: multiple boot init
Post by: Jesús TEJERINA RIVERA on February 07, 2023, 10:42:00 AM
What do you select if you want to boot Windows ?

option: Administrador de Arranque del SO (start windows 10)


option UEFI/BIOS, some, start windows 10