You are not logged in.

#1 2019-04-28 09:15:20

lamarca
Member
From: rio de janeiro
Registered: 2015-11-27
Posts: 358
Website

[Solved] - How do I remove old menuentries from detached HDD

Hello there,

Bunsenlabs was installed in Sumsung HD322HJ.
After a hardware upgrade the Mobo ASUSTeK model: PRIME H310M-E/BR didn't recognized the HDD thus  Helium was installed in the new HDD.
My issue, how do I delete the old menuentries from the disable HDD, which is present on my current  Grub Menu?

The grub.cfg: https://pastebin.com/c5HiaVDt

My sys specs: https://pastebin.com/qt9uZN5n



PS: I always search before posting.

Last edited by lamarca (2019-04-29 16:34:35)


"A man is a wolf to another man"

Offline

#2 2019-04-28 09:41:07

damo
....moderator....
Registered: 2015-08-20
Posts: 4,878

Re: [Solved] - How do I remove old menuentries from detached HDD

(NB instead of using pastebin for relatively short pieces of code, just use [ code ] tags in your post.)

Have you done sudo update-grub since you removed your old drive?

Do you still have old linux images on your new drive?


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2019-04-28 10:00:04

lamarca
Member
From: rio de janeiro
Registered: 2015-11-27
Posts: 358
Website

Re: [Solved] - How do I remove old menuentries from detached HDD

Hi,

damo wrote:

Have you done sudo update-grub since you removed your old drive?

No. I have not.

damo wrote:

Do you still have old linux images on your new drive?

Only the entries, dump.

As I am not familiar with the usual length of the output thus pastebin just in case.


"A man is a wolf to another man"

Offline

#4 2019-04-28 10:04:32

damo
....moderator....
Registered: 2015-08-20
Posts: 4,878

Re: [Solved] - How do I remove old menuentries from detached HDD

lamarca wrote:

Hi,

damo wrote:

Have you done sudo update-grub since you removed your old drive?

No. I have not.
....

So that is the first thing to try wink


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#5 2019-04-28 10:39:27

lamarca
Member
From: rio de janeiro
Registered: 2015-11-27
Posts: 358
Website

Re: [Solved] - How do I remove old menuentries from detached HDD

The dump is persistent.

$ date --utc
Sun 28 Apr 2019 10:36:08 AM UTC

-----------------------------------------------------

menuentry "BunsenLabs GNU/Linux (on /dev/sdb1)" {
menuentry "BunsenLabs GNU/Linux, with Linux 4.9.0-8-amd64 (on /dev/sdb1)" {
menuentry "BunsenLabs GNU/Linux, with Linux 4.9.0-8-amd64 (recovery mode) (on /dev/sdb1)" {
menuentry "BunsenLabs GNU/Linux, with Linux 4.9.0-7-amd64 (on /dev/sdb1)" {
menuentry "BunsenLabs GNU/Linux, with Linux 4.9.0-7-amd64 (recovery mode) (on /dev/sdb1)" {
menuentry "BunsenLabs GNU/Linux, with Linux 4.9.0-6-amd64 (on /dev/sdb1)" {
menuentry "BunsenLabs GNU/Linux, with Linux 4.9.0-6-amd64 (recovery mode) (on /dev/sdb1)" {
menuentry "BunsenLabs TTY (on /dev/sdb1)" {
menuentry 'High Contrast Text' {

-----------------------------------------------------

"A man is a wolf to another man"

Offline

#6 2019-04-28 11:01:11

damo
....moderator....
Registered: 2015-08-20
Posts: 4,878

Re: [Solved] - How do I remove old menuentries from detached HDD

If you have uninstalled old kernels, and updated grub, and are still getting unwanted entries, then see if they still exist in /boot. Delete them, and update-grub again.

There is another method, which can be dangerous, which we can look at as a last resort!


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#7 2019-04-28 11:25:00

lamarca
Member
From: rio de janeiro
Registered: 2015-11-27
Posts: 358
Website

Re: [Solved] - How do I remove old menuentries from detached HDD

All the entries belong to the current Helium.
Those dumps are like  deleted posts only, not purged. Do I 'purge' them by hand on grub.cfg file?


"A man is a wolf to another man"

Offline

#8 2019-04-28 11:55:07

damo
....moderator....
Registered: 2015-08-20
Posts: 4,878

Re: [Solved] - How do I remove old menuentries from detached HDD

lamarca wrote:

All the entries belong to the current Helium.

So why do you want to remove them? If you don't want backup kernels then uninstall them, and update-grub again.

If you edit grub.cfg then please note:

# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub

You can remove the menuentries you don't want, but they will be replaced the next time grub is updated - unless you remove the executable bit from 30_os-prober.

 sudo chmod -x /etc/grub.d/30_os-prober

This is the "dangerous" method! Back up grub.cfg, and remember to make 30_os-prober executable again before a dist-upgrade.


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#9 2019-04-28 11:55:39

lamarca
Member
From: rio de janeiro
Registered: 2015-11-27
Posts: 358
Website

Re: [Solved] - How do I remove old menuentries from detached HDD

The file was restored after deleting the whole  /etc/grub.d/30_otheros section


"A man is a wolf to another man"

Offline

#10 2019-04-28 12:04:47

lamarca
Member
From: rio de janeiro
Registered: 2015-11-27
Posts: 358
Website

Re: [Solved] - How do I remove old menuentries from detached HDD

damo wrote:

So why do you want to remove them?

They flood my grub menu

damo wrote:

If you don't want backup kernels then uninstall them, and update-grub again.

Those kernels don't exist.


Edit: I will let you know a little later:)

Last edited by lamarca (2019-04-28 12:07:14)


"A man is a wolf to another man"

Offline

#11 2019-04-29 16:32:10

lamarca
Member
From: rio de janeiro
Registered: 2015-11-27
Posts: 358
Website

Re: [Solved] - How do I remove old menuentries from detached HDD

Job well done, damo smile

Cheers


"A man is a wolf to another man"

Offline

Board footer

Powered by FluxBB