Whenever you use Grub in Manjaro, chances are you’ll discover that it has a distinct setup than many different Linux working techniques. Primarily, chances are you’ll observe that the Manjaro Grub configuration makes use of the Grub resume function. This resume function makes it in order that Grub will bear in mind your boot choice every time you entry it.
Having the bootloader bear in mind your choice might be helpful, particularly for those who tire from having to choose your boot possibility every time manually. Nevertheless, it may also be annoying for those who don’t all the time need to have it bear in mind.
To unravel this downside in Manjaro, you may flip off the resume function. On this information, we’ll go over how to disable the Grub resume function by displaying you ways to edit your Manjaro Grub configuration. To get began, open up a terminal window and comply with the directions outlined beneath!
Again up Manjaro
Earlier than we will go into how to edit your Grub configuration on Manjaro to take away the resume function, you need to make a backup of your Manjaro system. The explanation? Modifying Grub configuration information can typically go improper. If you happen to mess one thing up, it’s a good suggestion to have a backup that may be restored at a later date.
There are numerous other ways to again up your Manjaro Linux system. If you happen to’d like a simple, foolproof method to again issues up, we suggest Timeshift. There’s additionally Deja Dup and Kbackup.
Comply with the linked tutorials to go over how to create a backup of your Linux system. Then, when the backup course of is accomplished, transfer on to the following step of the information. Bear in mind! Backing up is essential!
Again up Manjaro Grub configuration
Together with your Linux system backed up, we’re nonetheless not completed. You’ll additionally want to make a whole backup of Manjaro’s Grub configuration file. Making a backup of this file is crucial, as it should make it extremely simple to revert if it seems you miss the resume function that’s turned off on this tutorial.
To make a backup, go to the terminal window and begin by elevating it from a standard consumer account to the basis consumer. You may entry the basis account by operating the sudo -s command beneath.
sudo -s
As soon as the terminal session has root entry, make a duplicate of the Grub configuration with the next cp command down beneath.
cp /and many others/default/grub /and many others/default/grub-backup
When the command completes, you should have a second file with the title of “grub-backup.” This backup file has all authentic configurations and might be restored at any time.
Modifying the Grub configuration file
To edit the Grub configuration file on Manjaro, begin by opening up a terminal. You may open up a terminal window with Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. Then, when the terminal window is open, use the sudo -s command to enter root entry mode. The terminal wants to be root entry in order that the file might be altered.
sudo -s
As soon as the terminal window is in root entry mode, you may open up the Grub configuration file with the Nano textual content editor utilizing the command beneath.
nano -w /and many others/default/grub
Contained in the Nano textual content editor, you will notice many various strains of textual content. The very first thing you need to edit to take away the resume function in Manjaro is GRUB_DEFAULT=saved
. Find this line within the Nano textual content editor.
When you’ve discovered the GRUB_DEFAULT=saved
change the “saved” a part of the road to “0”. The road within the Nano textual content editor ought to look precisely like the instance beneath.
GRUB_DEFAULT=0
After altering this line, search for the GRUB_SAVEDEFAULT=true
line within the Nano textual content editor and add a #
in entrance of it. By including the # image in entrance of the road, you’re successfully turning off the GRUB_SAVEDEFAUT=true
function. This is called “uncommenting.”
Be certain that the configuration file within the Nano textual content editor appears to be like precisely like the instance beneath.
#GRUB_SAVEDEFAUT=true
As soon as each strains have been edited, press Ctrl + O on the keyboard. By urgent this keyboard mixture, you’ll carry up Nano’s save perform. Press the Enter key on your keyboard to affirm to Nano to export the edits to Manjaro’s Grub configuration file.
Updating your Grub bootloader
With the Grub configuration modified to disable the resume function, all you’ll want to replace your Grub bootloader to mirror the adjustments. To do that, open up a terminal on the Manjaro desktop and run sudo update-grub.
When Grub is up to date, reboot your PC to benefit from the Grub bootloader with out the resume function!
Restoring the backup config
Need to restore resume performance? Comply with the step-by-step directions beneath.
Step 1: Open up a terminal window and use the sudo -s command to entry the basis account.
sudo -s
Step 2: As soon as in root mode, delete the Grub configuration file with rm.
rm /and many others/default/grub
Step 3: Restore the backup configuration file with the mv command.
mv /and many others/default/grub-backup /and many others/default/grub
Step 4: Replace Grub with update-grub.
update-grub
Step 5: Reboot your Manjaro PC!