Choose style:

Author Topic: Hoe to remove old entries in boot menu  (Read 281 times)

0 Members and 1 Guest are viewing this topic.

Offline Landau

  • Jr. Member
  • **
  • Posts: 27
  • Karma: 3
  • New Forum User
    • View Profile
  • Peppermint version(s): 9
Hoe to remove old entries in boot menu
« on: May 23, 2019, 08:34:29 am »
On my computer I have now Peppermin 9 in dual boot with PCLOS-KDE5.
On the bootmenu list after booting, besides the PCLinuxOS and Peppermint entry there are also
entries of Peppermint 9 with old kernels displayed. How can I remove them or how can
I make them invisible?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25300
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Hoe to remove old entries in boot menu
« Reply #1 on: May 23, 2019, 08:50:03 am »
Which OS is controlling GRUB ?

I'm going to assume PCLOS, because if it were Peppermint those entries would already be 'hidden' in a submenu.

Probably the easies way would be to actually uninstall the old kernels in Peppermint 9 .. then update grub in PCLOS.

Whilst booted into Peppermint, what's the output from:
Code: [Select]
dpkg -l | grep 4.15.0
and
Code: [Select]
uname -a
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Landau

  • Jr. Member
  • **
  • Posts: 27
  • Karma: 3
  • New Forum User
    • View Profile
  • Peppermint version(s): 9
Re: Hoe to remove old entries in boot menu
« Reply #2 on: May 23, 2019, 09:24:04 am »
Here those outputs:

Code: [Select]
ii  linux-generic                                 4.15.0.50.52                                    amd64        Complete Generic Linux kernel and headers
ii  linux-headers-4.15.0-43                       4.15.0-43.46                                    all          Header files related to Linux kernel version 4.15.0
ii  linux-headers-4.15.0-43-generic               4.15.0-43.46                                    amd64        Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii  linux-headers-4.15.0-48                       4.15.0-48.51                                    all          Header files related to Linux kernel version 4.15.0
ii  linux-headers-4.15.0-48-generic               4.15.0-48.51                                    amd64        Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii  linux-headers-4.15.0-50                       4.15.0-50.54                                    all          Header files related to Linux kernel version 4.15.0
ii  linux-headers-4.15.0-50-generic               4.15.0-50.54                                    amd64        Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii  linux-headers-generic                         4.15.0.50.52                                    amd64        Generic Linux kernel headers
ii  linux-image-4.15.0-43-generic                 4.15.0-43.46                                    amd64        Signed kernel image generic
ii  linux-image-4.15.0-48-generic                 4.15.0-48.51                                    amd64        Signed kernel image generic
ii  linux-image-4.15.0-50-generic                 4.15.0-50.54                                    amd64        Signed kernel image generic
ii  linux-image-generic                           4.15.0.50.52                                    amd64        Generic Linux kernel image
ii  linux-libc-dev:amd64                          4.15.0-50.54                                    amd64        Linux Kernel Headers for development
ii  linux-modules-4.15.0-43-generic               4.15.0-43.46                                    amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii  linux-modules-4.15.0-48-generic               4.15.0-48.51                                    amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii  linux-modules-4.15.0-50-generic               4.15.0-50.54                                    amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii  linux-modules-extra-4.15.0-43-generic         4.15.0-43.46                                    amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii  linux-modules-extra-4.15.0-48-generic         4.15.0-48.51                                    amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP
ii  linux-modules-extra-4.15.0-50-generic         4.15.0-50.54                                    amd64        Linux kernel extra modules for version 4.15.0 on 64 bit x86 SMP

Code: [Select]
Linux analogueman 4.15.0-50-generic #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Offline pin

  • Trusted User
  • Veteran
  • *****
  • Posts: 1823
  • Karma: 250
    • View Profile
Re: Hoe to remove old entries in boot menu
« Reply #3 on: May 23, 2019, 10:20:01 am »
Code: [Select]
sudo apt-get remove --purge linux-headers-4.15.0-43 linux-headers-4.15.0-43-generic linux-headers-4.15.0-48 linux-headers-4.15.0-48-generic linux-image-4.15.0-43-generic linux-image-4.15.0-48-generic linux-modules-4.15.0-43-generic linux-modules-4.15.0-48-generic linux-modules-extra-4.15.0-43-generic linux-modules-extra-4.15.0-48-generic
sudo apt-get autoremove
sudo apt-get autoclean

Offline Landau

  • Jr. Member
  • **
  • Posts: 27
  • Karma: 3
  • New Forum User
    • View Profile
  • Peppermint version(s): 9
Re: Hoe to remove old entries in boot menu
« Reply #4 on: May 23, 2019, 10:51:23 am »
Thanks pin, will execute this and after that I need to do the "update-grub"?

B.T.W:
"Just say NO to flatpack and snap!!"
Interesting statement.
Where can read about the security risks which brought you to this ?

Offline pin

  • Trusted User
  • Veteran
  • *****
  • Posts: 1823
  • Karma: 250
    • View Profile
Re: Hoe to remove old entries in boot menu
« Reply #5 on: May 23, 2019, 12:10:14 pm »
Yes, you should update grub on the OS that is controling the boot loader.

As for flatpak and snap, don't get me started... it could be quite a long answer  ;)
Its not only security on code auditing, its also the philosophy behind it, the replicated libraries, the bloat it brings, the support from the platform itself, the consequences of its implementation,...
Read about it and build your opinion first. Try critical analysis of what you read and the implications behind it. A lot of stuff will sound good first, but I really don't like it. Actually, I don't like its existence and how its being pushed on users.
Therefor, the statement on my signature. Just to make others think for a moment.

Offline Landau

  • Jr. Member
  • **
  • Posts: 27
  • Karma: 3
  • New Forum User
    • View Profile
  • Peppermint version(s): 9
Re: Hoe to remove old entries in boot menu
« Reply #6 on: May 23, 2019, 02:25:31 pm »
Yes, you should update grub on the OS that is controling the boot loader.

As for flatpak and snap, don't get me started... it could be quite a long answer  ;)
Its not only security on code auditing, its also the philosophy behind it, the replicated libraries, the bloat it brings, the support from the platform itself, the consequences of its implementation,...
Read about it and build your opinion first. Try critical analysis of what you read and the implications behind it. A lot of stuff will sound good first, but I really don't like it. Actually, I don't like its existence and how its being pushed on users.
Therefor, the statement on my signature. Just to make others think for a moment.

You indeed did.....

Offline pin

  • Trusted User
  • Veteran
  • *****
  • Posts: 1823
  • Karma: 250
    • View Profile
Re: Hoe to remove old entries in boot menu
« Reply #7 on: May 23, 2019, 02:35:59 pm »
Good! Have some karma  8)

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25300
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Hoe to remove old entries in boot menu
« Reply #8 on: May 23, 2019, 03:17:17 pm »
REMEMBER - If PCLOS is controlling GRUB, you'll still need to run update-grub (as root) in PCLOS before the menu entries get cleared
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Landau

  • Jr. Member
  • **
  • Posts: 27
  • Karma: 3
  • New Forum User
    • View Profile
  • Peppermint version(s): 9
Re: Hoe to remove old entries in boot menu
« Reply #9 on: May 23, 2019, 03:18:42 pm »
REMEMBER - If PCLOS is controlling GRUB, you'll still need to run update-grub (as root) in PCLOS before the menu entries get cleared

Yes, I do !!