You are not logged in.

#1 2014-03-10 20:27:47

zetrotrack000
Member
Registered: 2012-02-07
Posts: 87

[Solved] Removing multiple entries from grub

Hi
There are many entries in my arch's grub boot loader:

Arch Linux pkg-linux kernel
*Arch Linux pkg-linux kernel (fallback initramfs)
Arch Linux
Advanced options for Arch Linux
Linux Mint 15
Advanaced options for Linux Mint 15
Microsoft Windows 7 Professional

But I also want to keep following three entries:

Arch Linux
Linux Mint 15
Microsoft Windows 7 Professional

How can I remove remaining entries from grub menu?
Regards

Last edited by zetrotrack000 (2014-03-11 20:01:45)

Offline

#2 2014-03-10 21:07:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Removing multiple entries from grub

https://wiki.archlinux.org/index.php/Gr … g_grub.cfg
Have you tried recreating your grub recently with 'grub-mkconfig -o /boot/grub/grub.cfg'?
Are all these other systems still installed on your computer?

Offline

#3 2014-03-10 21:39:33

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: [Solved] Removing multiple entries from grub

Hi

I think at least two of the entries (I'd say the ones w/ pkg-linux) are due to a bug in grub. Or better said in grub-mkconfig.
https://bbs.archlinux.org/viewtopic.php?id=174600
Don't know wether it's already fixed in grub or if it will be fixed at all... I had these entries appearing here not really long ago too.
See the bugreport at the end of the linked thread for a workaround.(Edit: In case they reappear when isssuing grub-mkconfig.)

Last edited by rebootl (2014-03-10 22:09:27)


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#4 2014-03-10 22:42:47

Chazza
Wiki Maintainer
From: United Kingdom
Registered: 2013-06-02
Posts: 506

Re: [Solved] Removing multiple entries from grub

Grub2 menu entries are created by a set of scripts in /etc/grub.d

Your first 2 entries are standard for arch and are generated by the 10_archlinux script. The 10_archlinux script is distributed by arch. It exists because the standard 10_linux script does not always create reliable menu entries for arch.

Your other linux entries are generated by the 10_linux script which is distributed by grub upstream.

Your windows entry is generated by the os-prober script. That can just be left alone.

To sort out the redundant linux entries you could try disabling either of the linux scripts and regenerating the menu.

Alternatively, you could disable both linux scripts and define your menu entries manually in the 40_custom script. The syntax for custom menu entries is similar to that of grub legacy. See the grub wiki article for info.

Hope this helps!

Last edited by Chazza (2014-03-10 22:45:18)

Offline

#5 2014-03-11 17:14:07

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [Solved] Removing multiple entries from grub

Offline

#6 2014-03-11 17:18:07

zetrotrack000
Member
Registered: 2012-02-07
Posts: 87

Re: [Solved] Removing multiple entries from grub

By following the link provided by 'rebootl', I have managed to get rid of following entries:

Advanced options for Arch Linux
Advanaced options for Linux Mint 15

As 'Chazza' mentioned, I tried to edit the scripts /etc/grub.d but then mkconfig gives error, so I believe I am not editting these files properly.

Offline

#7 2014-03-11 17:23:27

zetrotrack000
Member
Registered: 2012-02-07
Posts: 87

Re: [Solved] Removing multiple entries from grub

By following link provided by 'teateawhy' now only one entry is left which I want to remove;
Arch Linux pkg-linux kernel (fallback initramfs)

Offline

#8 2014-03-11 18:11:20

sknd
Member
From: Brzeszcze, Poland
Registered: 2011-01-20
Posts: 62

Re: [Solved] Removing multiple entries from grub

why don't you just edit /boot/grub/grub.cfg?


Jaki koniec świata.Ziemia to nie cały świat ,a tylko mały Wąchock we wszechświecie.

Offline

#9 2014-03-11 18:25:58

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: [Solved] Removing multiple entries from grub

Grub has become ridiculously complex, at least three places from where you can edit it's config... ?!?

The best thing you can do is ditch it.

Edit:
1) A config file for the program that generates the real config.
2) n-x scripts that generate the config.
3) The config file itself.

Last edited by rebootl (2014-03-11 18:51:09)


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#10 2014-03-11 20:01:03

zetrotrack000
Member
Registered: 2012-02-07
Posts: 87

Re: [Solved] Removing multiple entries from grub

rebootl wrote:

Grub has become ridiculously complex, at least three places from where you can edit it's config... ?!?

The best thing you can do is ditch it.

Edit:
1) A config file for the program that generates the real config.
2) n-x scripts that generate the config.
3) The config file itself.

By totally agreeing with you, I have moved to syslinux. Its a cool and easy bootloader with nice theme smile
However, there is a problem which I will ask in separate thread.

Offline

#11 2014-03-11 20:19:07

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: [Solved] Removing multiple entries from grub

Moving to syslinux too. Works great.

While I'm not yet entirely happy with the theme, that's really a minor issue compared to above.

Edit: Or maybe I'll go back to Grub legacy, which was perfectly fine for my needs.

Last edited by rebootl (2014-03-11 20:21:57)


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#12 2014-03-11 20:53:17

zetrotrack000
Member
Registered: 2012-02-07
Posts: 87

Re: [Solved] Removing multiple entries from grub

rebootl wrote:

While I'm not yet entirely happy with the theme, that's really a minor issue compared to above.

I am using the theme which appears when we first insert the installation media, the following one;
https://lh6.googleusercontent.com/-Yz-C … slinux.png
Its very pretty.

Offline

#13 2014-03-11 23:08:21

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: [Solved] Removing multiple entries from grub

Ah yes! That's it, I found it now.

Thanks
It's pretty.


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#14 2014-03-12 08:30:52

zetrotrack000
Member
Registered: 2012-02-07
Posts: 87

Re: [Solved] Removing multiple entries from grub

Here is the link to actual config file of syslinux.cfg;
https://projects.archlinux.org/archiso. … g/syslinux
It also contains actual splash.png

Offline

Board footer

Powered by FluxBB