GRUB 2 Editor
Off the Beat: Bruce Byfield's Blog
Mostly, I prefer using a command line for system administration. However, I'm willing to rethink this preference in the case of the GRUB 2 Editor for KDE.
Not too long ago, editing the GRUB boot manager was a straightforward task. You edited a text file directly, and, if in the long intervals between changes you forgot the structure of a boot entry, you could usually figure out what to do from existing entries. About the hardest thing to remember if you didn't have an example to crib from was how to boot an unsupported operating system like Windows.
However, in distributions like Ubuntu in which GRUB 2 has replaced Legacy GRUB, editing has become more complicated. Not only has the basic configuration file changed its name from menu.lst to grub.cfg, but you're not supposed to edit it directly. Although you can edit directly if you know what you are doing, the fact that basic concepts have been renamed still complicates everything. Moreover, after making changes or setting up a kernel that isn't packaged, you need to run the command update-grub.
To confuse matters even more, general behavior -- as opposed to menu entries -- is set in the file /etc/default/grub, while any scripts go into one of a half dozen sub-directories in /etc/grub.d. Unless you regularly edit GRUB 2, it's all a bit much to remember. At the very least, you need to research what you're doing instead of plunging right in.
Organized options
That's where GRUB 2 Editor becomes useful. Developed by Konstantinos Smanis, a Greek undergraduate, GRUB Editor 2 allows you to make the most common changes to the boot manager without needing to remember where everything goes or looking up the details. Currently at version 0.5.5, it is available as source code, or as packages for Arch, Fedora, Mandriva, SUSE, and Ubuntu.
Grub 2 Editor divides the basic options into three tabs. The default General tab starts, logically enough, with the selection of the default kernel to boot from. Beside it is a button that displays older entries when clicked so that you can remove them. Below are options for hiding the menu and for setting the time before the default is booted automatically, and, lower down, some general behavioral options.
On the Appearance tab, you can set some of the options that GRUB 2 adds to the boot process. Here, you can set the resolution for the boot manager display, set the foreground and background colors for selected and unselected text, and add a graphic as wallpaper.
The third tab is for boot options. The interface includes not only kernel options, but also a choice of terminals -- both of which could use some online help to explain to users what exactly the possibilities are. The tab also includes a tool for re-installing or recovering GRUB.
When you are finished setting options, press the Apply button, and login as root or via sudo to apply the changes.
A necessary counter-balance
So far as I can see, GRUB 2 Editor deals entirely with options set in /etc/default/grub. To be a complete, it could use the ability to search for kernels -- just in case you've configured your own -- as well as the ability to deal with scripts. In fact, it might usefully install with a variety of possible scripts for advanced users.
However, for an application still in development, GRUB 2 Editor is not only useful, but sensibly arranged. A few more versions, and I can see it becoming a standard part of the System Settings in Kubuntu, as well as any other distribution that uses both GRUB 2 and KDE.
Part of me remains saddened that a tool like GRUB 2 Editor is necessary at all. While Legacy GRUB obviously needed updating, I can't help feeling that making editing the boot manager unnecessarily more complicated is a step backwards that at least partly negates the improvements. Still, given that's what is happening, I appreciate that GRUB 2 is helping to restore the balance.
Comments
comments powered by DisqusSubscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.
-
AlmaLinux 10.0 Beta Released
The AlmaLinux OS Foundation has announced the availability of AlmaLinux 10.0 Beta ("Purple Lion") for all supported devices with significant changes.
-
Gnome 47.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.
-
Armbian 24.11 Released with Expanded Hardware Support
If you've been waiting for Armbian to support OrangePi 5 Max and Radxa ROCK 5B+, the wait is over.
-
SUSE Renames Several Products for Better Name Recognition
SUSE has been a very powerful player in the European market, but it knows it must branch out to gain serious traction. Will a name change do the trick?
-
ESET Discovers New Linux Malware
WolfsBane is an all-in-one malware that has hit the Linux operating system and includes a dropper, a launcher, and a backdoor.
-
New Linux Kernel Patch Allows Forcing a CPU Mitigation
Even when CPU mitigations can consume precious CPU cycles, it might not be a bad idea to allow users to enable them, even if your machine isn't vulnerable.
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.
GRUB1 is an advance over 2
Grub-2
After spending several days struggling with it, I simply went back to Fedora-15 and decided to wait for six months or so to see if there would perhaps be a GRUB 2.1 or GRUB 3?
I am going to download and play with the editor if I get the time, however I am unlikely to attempt to implement any GRUB-2 based system in a production-type environment until the product goes beyond its current beta/hack status.
grub2