How to change default menu in Grub2

Hibernation and resume resets the default menu.  Below method does not work.

When the system boots, grub show the boot menu.

Debian GNU/Linux
Advanced options for Debian GNU/Linux

Select Advanced options for Debian GNU/Linux shows six submenus.

Debian GNU/Linux, with Linux 4.9.0-0.bpo.1-amd64
Debian GNU/Linux, with Linux 4.9.0-0.bpo.1-amd64 (recovery mode)
Debian GNU/Linux, with Linux 4.8.0-0.bpo.2-amd64
Debian GNU/Linux, with Linux 4.8.0-0.bpo.2-amd64 (recovery mode)
Debian GNU/Linux, with Linux 3.16.0-4-amd64
Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)

The submenu indices are 0, 1, 2, 3, 4, 5, 6 from the top.  Grub selects 0 as default boot image.  To make other boot image as default, run grub-reboot command and reboot as super user.

I wanted to boot Linux 3.16.0-4-amd64.

$ sudo grub-reboot '1>4'
$ sudo reboot

About janpenguin

Email: janpenguin [at] riseup [dot] net Every content on the blog is made by Free and Open Source Software in GNU/Linux.
This entry was posted in GNU/Linux and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s