Home / Exciting tips / Linux / How to disable Grub resume on Manjaro Linux

How to disable Grub resume on Manjaro Linux

When you use Grub in Manjaro, you may notice that it has a different setup than many other Linux operating systems. Mainly, you may note that the Manjaro Grub configuration makes use of the Grub resume feature. This resume feature makes it so that Grub will remember your boot selection each time you access it.

Having the bootloader remember your selection can be useful, especially if you tire from having to select your boot option each time manually. However, it can also be annoying if you don’t always want to have it remember.

To solve this problem in Manjaro, you can turn off the resume feature. In this guide, we’ll go over how to disable the Grub resume feature by showing you how to edit your Manjaro Grub configuration. To get started, open up a terminal window and follow the instructions outlined below!

Back up Manjaro

Before we can go into how to edit your Grub configuration on Manjaro to remove the resume feature, you must make a backup of your Manjaro system. The reason? Editing Grub configuration files can sometimes go wrong. If you mess something up, it’s a good idea to have a backup that can be restored at a later date.

There are many different ways to back up your Manjaro Linux system. If you’d like an easy, foolproof way to back things up, we recommend Timeshift. There’s also Deja Dup and Kbackup.

Follow the linked tutorials to go over how to create a backup of your Linux system. Then, when the backup process is completed, move on to the next step of the guide. Remember! Backing up is critical!

Back up Manjaro Grub configuration

With your Linux system backed up, we’re still not done.  You’ll also need to make a complete backup of Manjaro’s Grub configuration file. Making a backup of this file is essential, as it will make it incredibly easy to revert if it turns out you miss the resume feature that is turned off in this tutorial.

To make a backup, go to the terminal window and start by elevating it from a traditional user account to the root user. You can access the root account by running the sudo -s command below.

sudo -s

Once the terminal session has root access, make a copy of the Grub configuration with the following cp command down below.

cp /etc/default/grub /etc/default/grub-backup

When the command completes, you will have a second file with the name of “grub-backup.” This backup file has all original configurations and can be restored at any time.

Editing the Grub configuration file

To edit the Grub configuration file on Manjaro, start by opening up a terminal. You can 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 access mode. The terminal needs to be root access so that the file can be altered.

sudo -s

Once the terminal window is in root access mode, you can open up the Grub configuration file with the Nano text editor using the command below.

nano -w /etc/default/grub

Inside the Nano text editor, you will see many different lines of text. The first thing you must edit to remove the resume feature in Manjaro is GRUB_DEFAULT=saved. Locate this line in the Nano text editor.

Once you’ve found the GRUB_DEFAULT=saved change the “saved” part of the line to “0”. The line in the Nano text editor should look exactly like the example below.

GRUB_DEFAULT=0

After changing this line, look for the GRUB_SAVEDEFAULT=true line in the Nano text editor and add a # in front of it. By adding the # symbol in front of the line, you’re effectively turning off the GRUB_SAVEDEFAUT=true feature. This is known as “uncommenting.”

Ensure that the configuration file in the Nano text editor looks exactly like the example below.

#GRUB_SAVEDEFAUT=true

Once both lines have been edited, press Ctrl + O on the keyboard. By pressing this keyboard combination, you will bring up Nano’s save function. Press the Enter key on your keyboard to confirm to Nano to export the edits to Manjaro’s Grub configuration file.

Updating your Grub bootloader

With the Grub configuration changed to disable the resume feature, all you’ll need to update your Grub bootloader to reflect the changes. To do this, open up a terminal on the Manjaro desktop and run sudo update-grub.

When Grub is updated, reboot your PC to enjoy the Grub bootloader without the resume feature!

Restoring the backup config

Want to restore resume functionality? Follow the step-by-step instructions below.

Step 1: Open up a terminal window and use the sudo -s command to access the root account.

sudo -s

Step 2: Once in root mode, delete the Grub configuration file with rm.

rm /etc/default/grub

Step 3: Restore the backup configuration file with the mv command.

mv /etc/default/grub-backup /etc/default/grub

Step 4: Update Grub with update-grub.

update-grub

Step 5: Reboot your Manjaro PC!

About excitingtips

Check Also

How to use Material Shell in Gnome on Linux

Material Shell is a modern desktop interface for the Gnome Desktop environment. It is designed …

Leave a Reply

Your email address will not be published. Required fields are marked *