{"id":7,"date":"2010-01-06T17:22:15","date_gmt":"2010-01-06T17:22:15","guid":{"rendered":"http:\/\/www.genuinewebhosting.net\/linuxguru\/tutorial\/?p=7"},"modified":"2025-05-23T17:43:30","modified_gmt":"2025-05-23T17:43:30","slug":"redhat-linux-boot-sequence","status":"publish","type":"post","link":"http:\/\/shijuvarghese.com\/?p=7","title":{"rendered":"RedHat Linux Boot Sequence (RHEL 4)"},"content":{"rendered":"<p>Boot sequence<\/p>\n<ol>\n<li>BIOS<\/li>\n<li>POST<\/li>\n<li>MBR<\/li>\n<li>GRUB (stage 1)<\/li>\n<li>GRUB (stage 2)&#8211; \/etc\/grub.conf<\/li>\n<li>KERNEL<\/li>\n<\/ol>\n<p>Components in the file grub.conf<\/p>\n<ul>\n<li>Default<\/li>\n<li>Time out<\/li>\n<li>Splash image : The wall paper<\/li>\n<li>Title : Windows, linux, dos, etc<\/li>\n<\/ul>\n<p>Few parameters in grub.conf<br \/>\n<strong>root (0,0) :<\/strong> This means the root is in hard disk 1, partition 1<\/p>\n<p><strong>kernel:<\/strong> The kernel to be used<\/p>\n<p><strong>Rhgb quiet: <\/strong>This will hide the kernel messages<\/p>\n<p><strong>Initrd:<\/strong> will have image of &#8220;necessary&#8221; drivers while booting.<\/p>\n<p>If another OS (Windows) is also installed the grub.conf file will have another block with<\/p>\n<ul>\n<li>title Dos<\/li>\n<li>rootnoverify (hd0,1)<\/li>\n<li>deviceloader +1<\/li>\n<\/ul>\n<p>Grub prompt<br \/>\nAt the booting time, when the menu to choose the OS appears, pressing &#8220;c&#8221; will bring us the grub prompt (GRUB &gt;).<br \/>\nHere various commands could be executed. Example:<\/p>\n<p>GRUB&gt; root (hd0, &#8220;press tab key&#8221;<br \/>\nThis will show the various partitions<\/p>\n<p>If the \/ is in (hd0,4), we could type &#8220;cat \/etc\/groups&#8221; to see the contents of the &#8220;groups&#8221; file.<\/p>\n<p>If grub cannot find the kernel to be used do the following:<\/p>\n<ol>\n<li>GRUB&gt; root(hd0,4)<\/li>\n<li>kernel \/vmlinuz ro root=LABEL=\/<\/li>\n<li>initrd \/initrd?.img<\/li>\n<\/ol>\n<p>Run level:<\/p>\n<ul>\n<li>0 &#8211; Halt<\/li>\n<li>1 &#8211; single user mode<\/li>\n<li>2 &#8211; no nfs<\/li>\n<li>3 &#8211; Text mode with NW<\/li>\n<li>4 &#8211; user definable<\/li>\n<li>5 &#8211; XII<\/li>\n<li>6 &#8211; Reboot<\/li>\n<\/ul>\n<p>If the system do not bootup following could be tried:<\/p>\n<ol>\n<li>GRUB&gt; (hd0,0)<\/li>\n<li>GRUB&gt; kernel \/kmlinyz-2.6.9.5.EL ro root=LABEL<\/li>\n<li>GRUB&gt; initrd \/initrd-?..<\/li>\n<\/ol>\n<p>Init<br \/>\nInit -&gt; inittab -&gt; will call for many other files including rc0 to rc6<\/p>\n<p>The rc0 will have only kill commands. All the links in rc6 will start with &#8216;K&#8217; by norm<\/p>\n<p>No 1 &#8211; 6 in the inittab runs getty. These are definitions for the virtual terminals.<br \/>\nIf we add a line : &#8220;20:2345:respawn:\/sbin\/migetty tty 20&#8221; a new terminal will be added. This new terminal will work only after reboot.<\/p>\n<p>Note: \/etc\/security will have info about the terminals root can log in.<\/p>\n<p># init -q<br \/>\n# chvt 20 is to switch terminal using CLI.<br \/>\nChange run level at bootup\/grub<br \/>\nIf we want to switch to a different run level at the bootup itself, the following has to be done at the boot prompt at startup.<\/p>\n<ol>\n<li>At the startup, at the grub menu press &#8216;e&#8217;<\/li>\n<li>Select the kernel entry and press &#8220;e&#8221;<\/li>\n<li>After rhgb quiet enter 1 after a space and press the ENTER key.<\/li>\n<li>Now system will reboot in run level 1<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Boot sequence BIOS POST MBR GRUB (stage 1) GRUB (stage 2)&#8211; \/etc\/grub.conf KERNEL Components in the file grub.conf Default Time out Splash image : The <a class=\"mh-excerpt-more\" href=\"http:\/\/shijuvarghese.com\/?p=7\" title=\"RedHat Linux Boot Sequence (RHEL 4)\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5,31],"tags":[],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-linux","category-linux-boot-sequence","category-rhel-4"],"_links":{"self":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":3,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":997,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions\/997"}],"wp:attachment":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}