{"id":433,"date":"2026-02-23T15:42:23","date_gmt":"2026-02-23T15:42:23","guid":{"rendered":"https:\/\/mitalgoswami.in\/?p=433"},"modified":"2026-02-27T04:34:26","modified_gmt":"2026-02-27T04:34:26","slug":"explain-startup-shutdown-and-boot-loader-in-linux","status":"publish","type":"post","link":"https:\/\/mitalgoswami.in\/?p=433","title":{"rendered":"explain startup, shutdown, and boot loader in Linux."},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">&#x1f427; 1&#xfe0f;&#x20e3; Linux Startup Process<\/h1>\n\n\n\n<p>Linux startup is the sequence of steps that occur from <strong>power on<\/strong> until the <strong>login screen appears<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: BIOS \/ UEFI<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The system firmware (BIOS or UEFI[<strong>Unified Extensible Firmware Interface<\/strong>.]) starts first.<\/li>\n\n\n\n<li>It performs <strong>POST (Power-On Self-Test)<\/strong> to check hardware.<\/li>\n\n\n\n<li>It searches for a bootable device (HDD\/SSD\/USB).<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Boot Loader<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Firmware loads the boot loader from disk.<\/li>\n\n\n\n<li>Most Linux systems use <strong>GNU GRUB<\/strong>.<\/li>\n\n\n\n<li>GRUB displays a menu to choose the OS.<\/li>\n\n\n\n<li>It loads the Linux kernel into memory.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Linux Kernel<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Kernel initializes hardware drivers.<\/li>\n\n\n\n<li>Mounts the root filesystem.<\/li>\n\n\n\n<li>Starts the first process (<code>init<\/code>).<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Init \/ systemd<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Modern systems use <strong>systemd<\/strong>.<\/li>\n\n\n\n<li>It starts system services (network, login manager, etc.).<\/li>\n\n\n\n<li>Displays login screen.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">&#x1f4cc; Startup Flow:<\/h3>\n\n\n\n<p>Power On \u2192 BIOS\/UEFI \u2192 GRUB \u2192 Kernel \u2192 systemd \u2192 Login<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">&#x1f53b; 2&#xfe0f;&#x20e3; Linux Shutdown Process<\/h1>\n\n\n\n<p>Shutdown is the safe process of turning off the system.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Steps:<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>User enters <code>shutdown<\/code>, <code>poweroff<\/code>, or clicks shutdown.<\/li>\n\n\n\n<li>systemd stops all running services.<\/li>\n\n\n\n<li>Open applications are closed.<\/li>\n\n\n\n<li>Filesystems are unmounted.<\/li>\n\n\n\n<li>Data is written (synced) to disk.<\/li>\n\n\n\n<li>Kernel powers off the machine.<\/li>\n<\/ol>\n\n\n\n<p>&#x1f449; Proper shutdown prevents data loss and corruption.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">&#x1f9e9; 3&#xfe0f;&#x20e3; Boot Loader in Linux<\/h1>\n\n\n\n<p>A <strong>boot loader<\/strong> is a small program that loads the operating system kernel into memory.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Example: GNU GRUB<\/h2>\n\n\n\n<p><strong>GNU GRUB (GRand Unified Bootloader)<\/strong> is the most common Linux boot loader.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Functions:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Shows OS selection menu<\/li>\n\n\n\n<li>Loads Linux kernel<\/li>\n\n\n\n<li>Passes boot parameters<\/li>\n\n\n\n<li>Supports dual boot (Linux + Windows)<\/li>\n\n\n\n<li>Provides recovery mode<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Location:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Stored in MBR (older systems)<\/li>\n\n\n\n<li>Stored in EFI partition (UEFI systems)<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">&#x1f3af; Short Definitions (Exam Ready)<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Startup<\/strong>: Process of loading Linux from power-on to login screen.<\/li>\n\n\n\n<li><strong>Shutdown<\/strong>: Safe termination of processes and powering off the system.<\/li>\n\n\n\n<li><strong>Boot Loader<\/strong>: Program that loads the Linux kernel (e.g., GRUB).<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#x1f427; 1&#xfe0f;&#x20e3; Linux Startup Process Linux startup is the sequence of steps that occur from power on until the login screen appears. Step 1: BIOS \/ UEFI Step 2: Boot Loader Step 3: Linux Kernel Step 4: Init \/ systemd &#x1f4cc; Startup Flow: Power On \u2192 BIOS\/UEFI \u2192 GRUB \u2192 Kernel \u2192 systemd \u2192 Login [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-433","post","type-post","status-publish","format-standard","hentry","category-unix"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts\/433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=433"}],"version-history":[{"count":1,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts\/433\/revisions"}],"predecessor-version":[{"id":434,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=\/wp\/v2\/posts\/433\/revisions\/434"}],"wp:attachment":[{"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mitalgoswami.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}