{"id":555,"date":"2025-05-20T10:54:01","date_gmt":"2025-05-20T08:54:01","guid":{"rendered":"https:\/\/hostup.se\/en\/support\/?p=555"},"modified":"2025-05-20T10:54:03","modified_gmt":"2025-05-20T08:54:03","slug":"diskfel-hur-du-enkelt-atgardar-det","status":"publish","type":"post","link":"https:\/\/hostup.se\/en\/support\/diskfel-hur-du-enkelt-atgardar-det\/","title":{"rendered":"Disk Error &#8211; How to Easily Fix It"},"content":{"rendered":"\n<p>We know how frustrating and stressful it can be when your server suddenly refuses to start. This is often due to minor disk errors, such as a corrupt journal file or issues with the bootloader (GRUB).<\/p>\n\n\n\n<p>Modern file systems have safeguards like journaling, but errors can still occur sometimes.<\/p>\n\n\n\n<p>The good news is that you often don&#8217;t need to restore the entire system from a backup. Many common disk errors can be fixed relatively easily and quickly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Examples_of_common_error_messages\"><\/span>Examples of common error messages:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Error messages related to GRUB (Grand Unified Bootloader) during boot.<\/li>\n\n\n\n<li>The system starts to load but stops with messages about &#8220;corrupt journal&#8221; or &#8220;filesystem errors&#8221;.<\/li>\n\n\n\n<li>Messages like &#8220;UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY&#8221;.<\/li>\n<\/ul>\n\n\n\n<p>This guide shows how you can get your VPS back on its feet in about 10-15 minutes!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Important_before_you_begin\"><\/span>Important before you begin:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Backup<\/strong>: While the methods below are usually safe, we always recommend that you have regular backups of your data.<\/li>\n\n\n\n<li><strong>Rescue Mode\/ISO<\/strong>: You need to be able to boot your VPS from an external ISO image or via a &#8220;rescue mode&#8221; that many (including us!) offer. This is to be able to work with the hard drive while it is unmounted, which is required to run the repair tools.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Example_GRUB_error_or_corrupt_journal\"><\/span>Example: GRUB error or corrupt journal<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this example, a VM refuses to start. The console gives errors regarding grub:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/hostup.se\/support\/wp-content\/uploads\/2025\/05\/exempel-startfel-1024x638.png\" alt=\"Exempel p\u00e5 GRUB-felmeddelande vid uppstart av vps\" class=\"wp-image-653\"\/><\/figure>\n\n\n\n<p>You\u2019re trying to start your VPS or VM, but it refuses to boot. Maybe you see an error message from GRUB, or the system starts but stops with a message about a corrupt journal.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Fix_the_error_in_10_minutes\"><\/span>Fix the error in 10 minutes.<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>First, <a href=\"https:\/\/hostup.se\/support\/montera-anpassad-iso\/\">boot your VPS from an ISO<\/a>. We recommend Netboot.xyz &#8211; simply enter the following in the URL field when configuring your ISO<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">https:\/\/boot.netboot.xyz\/ipxe\/netboot.xyz.iso<\/pre>\n\n\n\n<p>Once started, select Utilities &gt; Repair Boot CD<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/hostup.se\/support\/wp-content\/uploads\/2025\/05\/live-cd-netboot-1-1024x773.png\" alt=\"\" class=\"wp-image-650\"\/><\/figure>\n\n\n\n<p>Give it a few minutes to boot up. It can be any operating system, really. The important thing is that we have access to a terminal where we can run repair tools on the hard drive.<\/p>\n\n\n\n<p>Open the terminal and run lsblk to find out which partition your operating system is located on. <strong>In the example in the image below, it is sda1<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/hostup.se\/support\/wp-content\/uploads\/2025\/05\/lsblk-repair-1024x773.png\" alt=\"\" class=\"wp-image-651\"\/><\/figure>\n\n\n\n<p>Run this command to repair the disk:<\/p>\n\n\n\n<p><strong>Are you using xfs? Run:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo xfs_repair \/dev\/<strong>sda1<\/strong><\/pre>\n\n\n\n<p><strong>Are you using EXT4? Run:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo e2fsck -f -y \/dev\/<strong>sda1<\/strong><\/pre>\n\n\n\n<p>All set! Now you can unmount your ISO and start the VPS just as usual. The difference this time is that it will start without any issues.<\/p>\n\r\n\t\t\t<div id=\"daexthefu-container\"\r\n\t\t\t\tclass=\"daexthefu-container daexthefu-layout-side-by-side daexthefu-alignment-left\"\r\n\t\t\t\tdata-post-id=\"555\">\r\n\r\n\t\t\t\t<div class=\"daexthefu-feedback\">\r\n\t\t\t\t\t<div class=\"daexthefu-text\">\r\n\t\t\t\t\t\t<h3 class=\"daexthefu-title\">Was this article helpful?<\/h3>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<div class=\"daexthefu-buttons-container\">\r\n\t\t\t\t\t\t<div class=\"daexthefu-buttons\">\r\n\t\t\t\t\t\t\t\r\n\t\t\t<div class=\"daexthefu-yes daexthefu-button daexthefu-button-type-icon\" data-value=\"1\">\r\n\t\t\t\t\r\n                <svg>\r\n                    <defs>\r\n                        <style>.happy-face-cls-1{fill:#c9c9c9;}.happy-face-cls-2{fill:#e1e1e1;}.happy-face-cls-3{fill:#676767;}<\/style>\r\n                    <\/defs>\r\n                    <g id=\"happy_face\">\r\n                        <circle class=\"happy-face-cls-1 daexthefu-icon-primary-color\" cx=\"24\" cy=\"24\" r=\"17\" \/>\r\n                        <path class=\"happy-face-cls-2 daexthefu-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\r\n                        <circle class=\"happy-face-cls-3 daexthefu-icon-secondary-color\" cx=\"18\" cy=\"22\" r=\"2\" \/>\r\n                        <circle class=\"happy-face-cls-3 daexthefu-icon-secondary-color\" cx=\"30\" cy=\"22\" r=\"2\" \/>\r\n                        <path class=\"happy-face-cls-3 daexthefu-icon-secondary-color\" d=\"m16.79,29c-1.19,0-1.89,1.31-1.25,2.32,1.77,2.81,4.9,4.68,8.47,4.68s6.7-1.87,8.47-4.68c.63-1.01-.06-2.32-1.25-2.32-3.67,0-10.76,0-14.43,0Z\" \/>\r\n                    <\/g>\r\n                <\/svg>\t\t\t<\/div>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t<div class=\"daexthefu-no daexthefu-button daexthefu-button-type-icon\" data-value=\"0\">\r\n\t\t\t\t\r\n                <svg>\r\n                    <defs>\r\n                        <style>\r\n                            .sad-face-cls-1{fill:#c9c9c9;}.sad-face-cls-2{fill:#676767;}.sad-face-cls-3{fill:#e1e1e1;}.sad-face-cls-4{fill:#676767;}\r\n                        <\/style>\r\n                    <\/defs>\r\n                    <g id=\"sad_face\">\r\n                        <circle class=\"sad-face-cls-1 daexthefu-icon-primary-color\" cx=\"24\" cy=\"24\" r=\"17\" \/>\r\n                        <path class=\"sad-face-cls-3 daexthefu-icon-circle\" d=\"m24,3c11.58,0,21,9.42,21,21s-9.42,21-21,21S3,35.58,3,24,12.42,3,24,3m0-1C11.85,2,2,11.85,2,24s9.85,22,22,22,22-9.85,22-22S36.15,2,24,2h0Z\" \/>\r\n                        <circle class=\"sad-face-cls-4 daexthefu-icon-secondary-color\" cx=\"18\" cy=\"22\" r=\"2\" \/>\r\n                        <circle class=\"sad-face-cls-4 daexthefu-icon-secondary-color\" cx=\"30\" cy=\"22\" r=\"2\" \/>\r\n                        <path class=\"sad-face-cls-2 daexthefu-icon-secondary-color\" d=\"M16.9,34.5c-0.4,0-0.8-0.1-1.1-0.4c-0.6-0.6-0.6-1.5,0-2.1c2.2-2.2,5.1-3.4,8.1-3.4c3.1,0,6,1.2,8.1,3.4\r\n                        c0.6,0.6,0.6,1.5,0,2.1s-1.5,0.6-2.1,0c-1.6-1.6-3.7-2.5-6-2.5s-4.4,0.9-6,2.5C17.7,34.4,17.3,34.5,16.9,34.5z\" \/>\r\n                    <\/g>\r\n                <\/svg>\t\t\t<\/div>\r\n\r\n\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefu-comment\">\r\n\t\t\t\t\t<div class=\"daexthefu-comment-top-container\">\r\n\t\t\t\t\t\t<label id=\"daexthefu-comment-label\" class=\"daexthefu-comment-label\"><\/label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"daexthefu-comment-character-counter-container\">\r\n\t\t\t\t\t\t\t\t<div id=\"daexthefu-comment-character-counter-number\"\r\n\t\t\t\t\t\t\t\t\tclass=\"daexthefu-comment-character-counter-number\"><\/div>\r\n\t\t\t\t\t\t\t\t<div class=\"daexthefu-comment-character-counter-text\"><\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<textarea id=\"daexthefu-comment-textarea\" class=\"daexthefu-comment-textarea\"\r\n\t\t\t\t\t\t\t\tplaceholder=\"Skriv ditt meddelande\"\r\n\t\t\t\t\t\t\t\tmaxlength=\"\r\n\t\t\t\t\t\t\t\t400\t\t\t\t\t\t\t\t\t\"><\/textarea>\r\n\t\t\t\t\t<div class=\"daexthefu-comment-buttons-container\">\r\n\t\t\t\t\t\t<button class=\"daexthefu-comment-submit daexthefu-button\">Skicka in<\/button>\r\n\t\t\t\t\t\t<button class=\"daexthefu-comment-cancel daexthefu-button\">Avbryt<\/button>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t<\/div>\r\n\r\n\t\t\t\t<div class=\"daexthefu-successful-submission-text\">Tack f\u00f6r din feedback!<\/div>\r\n\r\n\t\t\t<\/div>\r\n\r\n\t\t\t","protected":false},"excerpt":{"rendered":"<p>We know how frustrating and stressful it can be when your server suddenly refuses to start. This is often due to minor disk errors, such as a corrupt journal file or issues with the bootloader (GRUB). Modern file systems have safeguards like journaling, but errors can still occur sometimes. The good news is that you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_helpful_status":1,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-555","post","type-post","status-publish","format-standard","hentry","category-vps"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/hostup.se\/en\/support\/wp-json\/wp\/v2\/posts\/555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostup.se\/en\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostup.se\/en\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostup.se\/en\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostup.se\/en\/support\/wp-json\/wp\/v2\/comments?post=555"}],"version-history":[{"count":1,"href":"https:\/\/hostup.se\/en\/support\/wp-json\/wp\/v2\/posts\/555\/revisions"}],"predecessor-version":[{"id":556,"href":"https:\/\/hostup.se\/en\/support\/wp-json\/wp\/v2\/posts\/555\/revisions\/556"}],"wp:attachment":[{"href":"https:\/\/hostup.se\/en\/support\/wp-json\/wp\/v2\/media?parent=555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostup.se\/en\/support\/wp-json\/wp\/v2\/categories?post=555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostup.se\/en\/support\/wp-json\/wp\/v2\/tags?post=555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}