<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:og="http://ogp.me/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:schema="http://schema.org/" xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:sioct="http://rdfs.org/sioc/types#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" version="2.0" xml:base="https://www.linuxjournal.com/">
  <channel>
    <title>#Boot</title>
    <link>https://www.linuxjournal.com/</link>
    <description/>
    <language>en</language>
    
    <item>
  <title>Linux Boot Process? Best Geeks Know It!</title>
  <link>https://www.linuxjournal.com/content/linux-boot-process-best-geeks-know-it</link>
  <description>  &lt;div data-history-node-id="1341324" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-field-node-image field--type-image field--label-hidden field--item"&gt;  &lt;img loading="lazy" src="https://www.linuxjournal.com/sites/default/files/nodeimage/story/linux-boot-process-best-geeks-know-it.jpg" width="850" height="500" alt="Linux Boot Process? Best Geeks Know It!" typeof="foaf:Image" class="img-responsive" /&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/nawaz-abbasi" lang="" about="https://www.linuxjournal.com/users/nawaz-abbasi" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Nawaz Abbasi&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;The Linux boot process is a sequence of events that initializes a Linux system from a powered-off state to a fully operational state. The knowledge of Linux boot process is essential when it comes to technical interviews, but sometimes it becomes difficult to remember or recall the key steps in the process. This article discusses a quick and easy way to remember it - &lt;strong&gt;B&lt;/strong&gt;est &lt;strong&gt;G&lt;/strong&gt;eeks &lt;strong&gt;K&lt;/strong&gt;now &lt;strong&gt;I&lt;/strong&gt;t! Yes, you only need to remember that.&lt;/p&gt;

&lt;p&gt;Best Geeks Know It -&gt; &lt;strong&gt;B – G – K – I &lt;/strong&gt;-&gt; BIOS – GRUB – KERNEL – INIT&lt;/p&gt;

&lt;p&gt;This &lt;strong&gt;BGKI&lt;/strong&gt; acronym provides a high-level overview of the Linux boot process. Each step builds upon the previous one, gradually bringing the system to a fully operational state. Of course, there are more detailed processes within each step, but this simplified version should give you a good foundation for understanding and remembering the Linux boot sequence.&lt;/p&gt;
&lt;img alt="BGKI Process" data-entity-type="file" data-entity-uuid="048eb6b2-3d42-48a2-9fae-f581a723bba6" src="https://www.linuxjournal.com/sites/default/files/inline-images/BGKI-process.jpg" class="align-center" width="800" height="471" loading="lazy" /&gt;&lt;p&gt; &lt;/p&gt;

&lt;p&gt;Here's a concise expansion of &lt;strong&gt;B-G-K-I&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;B - BIOS/UEFI&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;Performs Power-On Self-Test (POST)&lt;/li&gt;
	&lt;li&gt;Checks hardware: CPU, RAM, storage&lt;/li&gt;
	&lt;li&gt;Loads MBR (Master Boot Record) or GPT (GUID Partition Table)&lt;/li&gt;
	&lt;li&gt;Transfers control to bootloader&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;G - GRUB&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;Located in first 512 bytes of boot drive&lt;/li&gt;
	&lt;li&gt;Reads &lt;code&gt;/boot/grub/grub.conf&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;Shows menu with kernel options&lt;/li&gt;
	&lt;li&gt;Loads selected kernel + &lt;code&gt;initramfs&lt;/code&gt; (temporary root filesystem) into RAM&lt;/li&gt;
	&lt;li&gt;Passes boot parameters to kernel&lt;/li&gt;
	&lt;li&gt;Can handle multiple OS boot options&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;K - KERNEL&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;Decompresses itself into RAM&lt;/li&gt;
	&lt;li&gt;Initializes hardware and drivers&lt;/li&gt;
	&lt;li&gt;Mounts root filesystem, loads &lt;code&gt;initramfs&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;Sets up memory management&lt;/li&gt;
	&lt;li&gt;Starts device detection&lt;/li&gt;
	&lt;li&gt;Creates kernel threads&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;I - INIT&lt;/strong&gt; (systemd in modern systems)&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;PID 1 (first process)&lt;/li&gt;
	&lt;li&gt;Reads &lt;code&gt;/etc/inittab&lt;/code&gt; (traditional) or unit files (&lt;code&gt;systemd&lt;/code&gt;)&lt;/li&gt;
	&lt;li&gt;Sets default runlevel/target&lt;/li&gt;
	&lt;li&gt;Starts essential services in order:
	&lt;ul&gt;&lt;li&gt;System services&lt;/li&gt;
		&lt;li&gt;Network services&lt;/li&gt;
		&lt;li&gt;Display manager&lt;/li&gt;
		&lt;li&gt;User interface (CLI/GUI)&lt;/li&gt;
	&lt;/ul&gt;&lt;/li&gt;
	&lt;li&gt;Reaches default target state&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt; &lt;/p&gt;

&lt;span class="h3-replacement"&gt;&lt;strong&gt;Key files to remember&lt;/strong&gt;&lt;/span&gt;

&lt;p&gt;&lt;code&gt;/boot/grub/grub.conf&lt;/code&gt;  - GRUB configuration&lt;/p&gt;

&lt;p&gt;&lt;code&gt;/etc/systemd/system/&lt;/code&gt;  - systemd unit files&lt;/p&gt;

&lt;p&gt;&lt;code&gt;/etc/inittab&lt;/code&gt;                  - Init configuration (traditional)&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/linux-boot-process-best-geeks-know-it" hreflang="en"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Tue, 06 May 2025 16:00:00 +0000</pubDate>
    <dc:creator>Nawaz Abbasi</dc:creator>
    <guid isPermaLink="false">1341324 at https://www.linuxjournal.com</guid>
    </item>

  </channel>
</rss>
