{"id":5581,"date":"2024-10-18T02:32:20","date_gmt":"2024-10-17T21:02:20","guid":{"rendered":"https:\/\/www.veeble.org\/kb\/?p=5581"},"modified":"2025-03-07T10:15:34","modified_gmt":"2025-03-07T04:45:34","slug":"fix-kernel-panic-not-syncing-vfs-unable-to-mount-root-fs","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/fix-kernel-panic-not-syncing-vfs-unable-to-mount-root-fs\/","title":{"rendered":"Fix: Kernel Panic &#8211; Not Syncing: VFS: Unable to Mount Root FS"},"content":{"rendered":"\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/Kernel-Panic-Issue.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"777\" height=\"173\" data-id=\"5615\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/Kernel-Panic-Issue.png\" alt=\"&quot;Kernel Panic - Not Syncing: VFS: Unable to Mount Root FS&quot; error\" class=\"wp-image-5615\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/Kernel-Panic-Issue.png 777w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/Kernel-Panic-Issue-300x67.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/Kernel-Panic-Issue-768x171.png 768w\" sizes=\"auto, (max-width: 777px) 100vw, 777px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>&#8220;Kernel Panic &#8211; Not Syncing: VFS: Unable to Mount Root FS&#8221; is one of the critical system errors that pop out during the Linux kernel booting process when it ultimately fails to mount the root filesystem. That happens quite often after a <a href=\"https:\/\/www.veeble.org\/kb\/how-to-update-linux-kernel-in-ubuntu\/\" target=\"_blank\" rel=\"noopener\">kernel upgrade<\/a> when there&#8217;s not enough room in the \/boot partition or when old kernels are not removed.<\/p>\n\n\n\n<pre class=\"wp-block-verse\"><strong>Symptoms<\/strong>:<br>1. Doesn't boot and shows error: \"Kernel Panic - Not Syncing: VFS: Unable to Mount Root FS\". <br>2. Inability to use the OS even to operate the recovery tools themselves.<br><br><strong>Common Causes<\/strong>:<br>1. Insufficient free space in the <a href=\"https:\/\/en.wikipedia.org\/wiki\/System_partition_and_boot_partition\" target=\"_blank\" rel=\"noopener\">\/boot<\/a> partition for the proper installation of the new kernel.<br>2. Presence of old and unused kernels occupying precious disk space.<br>3. Misconfiguration of the partition scheme.<br>4. Disk corruption or hardware issues affecting the boot partition.<\/pre>\n\n\n\n<p><strong>Before proceeding with fixes, check the disk usage of your <code>\/boot<\/code> partition to see if it&#8217;s full.<br>You can check it using the command below. Ensure you have enough space in this partition by freeing up some space.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df -h<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n<h2 class=\"wp-block-heading has-text-align-center\" id=\"solution\"><span style=\"text-decoration: underline\">Solution<\/span><\/h2>\n\n\n<ol class=\"wp-block-list\">\n<li>Restart your computer. <\/li>\n\n\n\n<li>When it boots to the GRUB menu, select Advanced options.<\/li>\n\n\n\n<li>Select the second from the top, not the latest one from the kernels listed on the next screen.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/select-kernel.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"175\" data-id=\"5619\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/select-kernel-1024x175.jpg\" alt=\"select the top second kernel from the list\" class=\"wp-image-5619\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/select-kernel-1024x175.jpg 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/select-kernel-300x51.jpg 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/select-kernel-768x132.jpg 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/select-kernel.jpg 1495w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>After that, log in as root and open a terminal.<\/li>\n\n\n\n<li>Execute the following command to list the installed kernels:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>dpkg --list | grep linux-image<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-09-224224.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1061\" height=\"201\" data-id=\"3883\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-09-224224.png\" alt=\"Kernel Panic - Not Syncing: VFS: Unable to Mount Root FS\" class=\"wp-image-3883\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-09-224224.png 1061w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-09-224224-300x57.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-09-224224-1024x194.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-09-224224-768x145.png 768w\" sizes=\"auto, (max-width: 1061px) 100vw, 1061px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p class=\"has-text-align-center\">OR<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rpm -qa kernel<\/code><\/pre>\n\n\n\n<p>In the listed installed kernel images, identify which of the older kernels you want to remove. Be very careful not to remove the two most recent kernels or the current one in use.<\/p>\n\n\n\n<ol start=\"6\" class=\"wp-block-list\">\n<li>Remove an older kernel: To do that, use the following command:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get purge linux-image-4.19.0-5-amd64<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-center\">OR<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum remove linux-image-4.19.0-5-amd64<\/code><\/pre>\n\n\n\n<p>Replace linux-image-4.19.0-5-amd64 with the intended kernel image that you want to remove. Repeat this for every unused kernel.<\/p>\n\n\n\n<ol start=\"7\" class=\"wp-block-list\">\n<li>After cleaning the old kernels, update GRUB for the changes to take effect:<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>update-grub<\/code><\/pre>\n\n\n\n<p>The above commands may not work for RedHat-based systems. <\/p>\n\n\n\n<ol start=\"8\" class=\"wp-block-list\">\n<li>Reboot the system using the below command. When restarting, make sure to opt for the newest Linux kernel in the GRUB menu.<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>reboot<\/code><\/pre>\n\n\n\n<div class=\"wp-block-uagb-separator uagb-block-f7454906\"><div class=\"wp-block-uagb-separator__inner\" style=\"--my-background-image:\"><\/div><\/div>\n\n\n\n<p>&#8220;Kernel Panic &#8211; Not Syncing: VFS: Unable to Mount Root FS&#8221; are common issue for Linux users, aside from which users commonly avoid by freeing the \/boot partition or managing old kernel images effectively. If problems persist, further investigation may be needed into hardware issues or disk integrity.<\/p>\n\n\n\n<div style=\"height:35px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-54185549 wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Unleash the Power of KVM VPS<\/h3><p class=\"uagb-cta__desc\">Experience lightning-fast performance and complete control with our cutting-edge KVM Virtual Private Servers. Built for speed and reliability.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/kvm-vps\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Get Your VPS Now<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Are you facing the error: &#8220;Kernel Panic &#8211; Not Syncing: VFS: Unable to Mount Root FS&#8221;. Refer to this tutorial to solve the error easily.<\/p>\n","protected":false},"author":7,"featured_media":7853,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[5],"tags":[],"class_list":["post-5581","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/blog-images-2.jpg",1366,768,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/blog-images-2-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/blog-images-2-300x169.jpg",300,169,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/blog-images-2-768x432.jpg",768,432,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/blog-images-2-1024x576.jpg",1024,576,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/blog-images-2.jpg",1366,768,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/blog-images-2.jpg",1366,768,false]},"uagb_author_info":{"display_name":"Adrian Antony","author_link":"https:\/\/www.veeble.com\/kb\/author\/adrian\/"},"uagb_comment_info":0,"uagb_excerpt":"Are you facing the error: \"Kernel Panic - Not Syncing: VFS: Unable to Mount Root FS\". Refer to this tutorial to solve the error easily.","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/5581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=5581"}],"version-history":[{"count":11,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/5581\/revisions"}],"predecessor-version":[{"id":7775,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/5581\/revisions\/7775"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/7853"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=5581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=5581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=5581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}