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
-
Juno Tab 3 Launches with Ubuntu 24.04
Anyone looking for a full-blown Linux tablet need look no further. Juno has released the Tab 3.
-
New KDE Slimbook Plasma Available for Preorder
Powered by an AMD Ryzen CPU, the latest KDE Slimbook laptop is powerful enough for local AI tasks.
-
Rhino Linux Announces Latest "Quick Update"
If you prefer your Linux distribution to be of the rolling type, Rhino Linux delivers a beautiful and reliable experience.
-
Plasma Desktop Will Soon Ask for Donations
The next iteration of Plasma has reached the soft feature freeze for the 6.2 version and includes a feature that could be divisive.
-
Linux Market Share Hits New High
For the first time, the Linux market share has reached a new high for desktops, and the trend looks like it will continue.
-
LibreOffice 24.8 Delivers New Features
LibreOffice is often considered the de facto standard office suite for the Linux operating system.
-
Deepin 23 Offers Wayland Support and New AI Tool
Deepin has been considered one of the most beautiful desktop operating systems for a long time and the arrival of version 23 has bolstered that reputation.
-
CachyOS Adds Support for System76's COSMIC Desktop
The August 2024 release of CachyOS includes support for the COSMIC desktop as well as some important bits for video.
-
Linux Foundation Adopts OMI to Foster Ethical LLMs
The Open Model Initiative hopes to create community LLMs that rival proprietary models but avoid restrictive licensing that limits usage.
-
Ubuntu 24.10 to Include the Latest Linux Kernel
Ubuntu users have grown accustomed to their favorite distribution shipping with a kernel that's not quite as up-to-date as other distros but that changes with 24.10.
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