Showing posts with label How to change Grub Boot Order in Linux. Show all posts
Showing posts with label How to change Grub Boot Order in Linux. Show all posts

Wednesday, January 2, 2019

How to Change the Boot Sequence of Oracle Linux 7


How to Change the Boot Sequence of Oracle Linux 7

Applies to:
            Oracle Enterprise Linux – Version: 7

Description:
After successful installation of Oracle Linux 7, when I restart the Linux I should select the second option from boot sequence within 3 second to start up the Oracle Linux.

Solution:
            To change the boot sequence in Oracle Linux 7 follow the simple steps:
           
GRUB2 count the menu entries in the configuration file starting at 0 for the first entry.

To display the menu entries that are defined in the configuration file:

[root@khi]# cd /boot/grub2

[root@khi grub2]# grep '^menuentry' /boot/grub2/grub.cfg

menuentry 'Oracle Linux Server (4.1.12-61.1.18.el7uek.x86_64 with Unbreakable Enterprise Kernel) 7.3' --class oracle --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.1.12-61.1.18.el7uek.x86_64-advanced-8898f753-92f7-4919-9b33-a389fbeceae9' {

menuentry 'Oracle Linux Server (3.10.0-514.el7.x86_64 with Linux) 7.3' --class oracle --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-514.el7.x86_64-advanced-8898f753-92f7-4919-9b33-a389fbeceae9' {

menuentry 'Oracle Linux Server (0-rescue-6cd2d0dcb059426f838f676d4963ff2d with Linux) 7.3' --class oracle --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-6cd2d0dcb059426f838f676d4963ff2d-advanced-8898f753-92f7-4919-9b33-a389fbeceae9' {

I need to boot Oracle Linux from second menuentry, to set the second menuentry for default boot execute the following command:

[root@khi grub2]# grub2-set-default 1

You must run the grub2-mkconfig command to re-generate the /boot/grub2/grub.cfg file:

[root@khi grub2]# grub2-mkconfig -o /boot/grub2/grub.cfg




Your comments, especially which will help us improve the functionality, will be greatly appreciatedJ

How to Extend Swap space on LVM Disk Linux

How to Extend Swap space on LVM Disk Linux   Applies to:             Oracle Database 12.2             Oracle Linux 7 Description: ...