Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Wednesday, December 7, 2011

Booting in to RUNLEVEL of your choice

One key skill is to understanding how to boot system in to different runlevels. Everyone, who wants to attempt the Red Hat Certified System Administrator exam, should know how to boot into different runlevels during the boot process. This is explicitly described as an RHCSA requirement. In this section I will explain you how to boot system in to different runlevel for troubleshooting and maintenance. In this section you will use GRUB menu to boot in to different runlevels. 

Here are simple steps which explains HOW TO BOOT IN TO RUNLEVEL OF YOUR CHOICE:

  • When you boot the system BIOS looks for the MBR and finds GRUB to edit the directives in GRUB menu, press any key before the following message expires (normally in 5 seconds):
“Press any key to enter menu”

You will see menu similar to figure given below, from where you can modify how GRUB boots into Linux.
GRUB BOOT menu of RHEL 6

  •  If the menu is password protected, you will have to press p before entering the password.
  •  Then press a to access the kernel command line.
  • At the end of kernel command line, type a space followed by the runlevel of your choice. For example 1 or single, 2,3, and 5.
  •  And press b to boot. You will now boot in to the runlevel you specified in above step.

Reboot your system and you can see that now the system boots in its default runlevel, because editing kernel entries from GRUB menu does not make changes in /etc/inittab file which have an entry for default runlevel. To make your changes permanently you have to edit the /etc/inittab file.

The main purpose for booting system into different runlevel is to correct serious problems in the system. And to correct we use the single-user mode or runlevel 1.

At the GRUB menu you can use following commands:

          Command           Description
  •   b                        Boot the current listed Operating System
  •  d                        Delete the current line
  •  e                         Edit the current line
  • o                         Create empty line underneath the current line
  • O                        Create an empty line above the current line
These options/commands can be used at boot menu to booting in to different runlevel.

No comments:

Post a Comment