{"id":314,"date":"2025-05-30T09:27:26","date_gmt":"2025-05-30T09:27:26","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2025\/05\/30\/11484348-how-to-recover-from-vps-filesystem-corruption-at-hostinger\/"},"modified":"2025-08-27T06:38:32","modified_gmt":"2025-08-27T06:38:32","slug":"11484348-how-to-recover-from-vps-filesystem-corruption-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/11484348-how-to-recover-from-vps-filesystem-corruption-at-hostinger\/","title":{"rendered":"How to Recover from VPS Filesystem Corruption at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">Sometimes, filesystem corruption can cause various VPS issues including Browser Terminal showing a blank screen, SSH connection failures, or websites becoming inaccessible. When your VPS filesystem becomes corrupted, you can use Hostinger&rsquo;s Emergency Mode and fsck (file system check) to detect and repair these issues.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Browser Terminal issues are often the first sign of filesystem corruption, as Browser Terminal provides direct access to your VPS through Hostinger&rsquo;s infrastructure. This guide will walk you through the complete filesystem recovery process using Emergency Mode.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_0fff76f6b0\"><b>Step 1 &ndash; Enable Emergency Mode and connect via SSH<\/b><\/h2><p class=\"no-margin\">Navigate to the VPS section of your hPanel and click on <b>Manage<\/b> next to your chosen server. Next, open the <b>Settings<\/b> page.<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2025\/05\/0f4cf5ed-a356-4a19-96a4-27bea10739a8.jpg\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Once there, go to the <b>Emergency mode<\/b> tab and toggle <b><a href=\"\/support\/5726577-how-to-use-emergency-mode-on-your-vps\" target=\"_blank\" class=\"intercom-content-link\">Turn on Emergency mode<\/a><\/b>.<\/p><p class=\"no-margin\">Wait a few minutes for Emergency Mode to fully activate. <\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2025\/05\/0e6c1fec-a65c-42b6-9f54-01516a0ce4b1.jpg\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Once enabled, you will be able to connect to your VPS via SSH using the provided credentials.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\"><a href=\"\/support\/5723772-how-to-connect-to-your-vps-via-ssh#h_20f76f4550\" target=\"_blank\" class=\"intercom-content-link\">Connect to your VPS using SSH<\/a>:<\/p><p class=\"no-margin\">\n<\/p><pre><code>ssh root@your-server-ip<\/code><\/pre><p class=\"no-margin\">\n<\/p><h2 id=\"h_65ec56eef9\"><b>Step 2 &ndash; Identify your main partition<\/b><\/h2><p class=\"no-margin\">Since the VPS is in Emergency Mode, you need to identify which disk is corrupted to be able to fix it.<\/p><p class=\"no-margin\">In your SSH connection, run the following command:<\/p><p class=\"no-margin\">\n<\/p><pre><code>lsblk<\/code><\/pre><p class=\"no-margin\">To identify where your original OS is stored. The result will show something like:<\/p><p class=\"no-margin\">\n<\/p><pre><code>root@machine:\/# lsblk<br>NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT<br>loop0    7:0    0 63.4M  1 loop \/snap\/core20\/1974<br>loop1    7:1    0 111.9M 1 loop \/snap\/lxd\/24322<br>loop2    7:2    0 53.3M  1 loop \/snap\/snapd\/19457<br>loop3    7:3    0 40.9M  1 loop \/snap\/snapd\/20290<br>loop4    7:4    0 63.5M  1 loop \/snap\/core20\/2015<br>sda      8:0    0   50G  0 disk<br>&#9500;&#9472;sda1   8:1    0 49.9G  0 part \/mnt\/sda1<br>&#9500;&#9472;sda14  8:14   0    4M  0 part<br>&#9492;&#9472;sda15  8:15   0  106M  0 part \/mnt\/sda15<br>sdb      8:16   0  2.2G  0 disk<br>&#9500;&#9472;sdb1   8:17   0  2.1G  0 part \/<br>&#9500;&#9472;sdb14  8:30   0    4M  0 part<br>&#9492;&#9472;sdb15  8:31   0  106M  0 part<br>sr0     11:0    1    4M  0 from<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">The main partition can be identified as the largest in size. In the example above, the largest partition is <b><code>sda1<\/code><\/b>, designated with the mount point <b><code>\/mnt\/sda1<\/code><\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">In Emergency Mode, your original (corrupted) system is automatically mounted under <code>\/mnt<\/code>, while the current emergency environment runs from a separate partition.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_021799c600\"><b>Step 3 &ndash; Repair your VPS<\/b><\/h2><p class=\"no-margin\">Now you have identified your main partition, you can run the filesystem check command. Replace <b><code>sda1<\/code><\/b> with your actual main partition:<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\"><code>fsck \/dev\/sda1<\/code><\/p><p class=\"no-margin\">The output will show the reasons why your VPS was corrupted:<\/p><p class=\"no-margin\">\n<\/p><pre><code>fsck from util-linux 2.37.2<br>e2fsck 1.46.5 (30-Dec-2021)<br>ext2fs_check_desc: Corrupt group descriptor: bad block for block bitmap<br>fsck.ext4: Group descriptors look bad... trying backup blocks...<br>cloudimg-rootfs: recovering journal<br>fsck.ext4: unable to set superblock flags on cloudimg-rootfs<br>cloudimg-rootfs: ***** FILE SYSTEM WAS MODIFIED *****<br>cloudimg-rootfs: ********** WARNING: Filesystem still has errors **********<br>Here, it shows that fsck successfully made some repairs (journal recovery, using backup group descriptors), but not all issues were fixed. The key line is:<br>**cloudimg-rootfs: ********** WARNING: Filesystem still has errors ************<br>This means the file system is still in a bad state.<br>To fix remaining errors, run:<br>fsck -f \/dev\/sda1<\/code><\/pre><p class=\"no-margin\"><b><code>-f<\/code><\/b> means that it will force a full check. You can use <b><code>-fy<\/code><\/b> if you want to auto-confirm all fixes automatically.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_c8dc287c9d\"><b>Step 4 &ndash; Exit Emergency Mode and restart your VPS<\/b><\/h2><p class=\"no-margin\">After repairing the file system on your main partition, return to your hPanel VPS settings and turn off Emergency Mode.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Once Emergency Mode is disabled, <a href=\"\/support\/5726606-how-to-use-the-vps-dashboard-in-hostinger#h_c1d000e6fb\" target=\"_blank\" class=\"intercom-content-link\">restart your VPS server<\/a>. After restarting, your VPS should be fully operational with Browser Terminal access restored.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_469817864d\"><b>Troubleshooting<\/b><\/h2><p class=\"no-margin\">If Browser Terminal still shows a blank screen after following these steps:<\/p><ul>\n<li>\n<p class=\"no-margin\">Try running the repair command with automatic confirmation: <code>fsck -fy \/dev\/sda1<\/code><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Repeat the entire process to ensure all errors were addressed<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">If issues persist, we recommend backing up any recoverable data and recreating the server entirely or <a href=\"\/support\/1583232-how-to-back-up-or-restore-a-vps\" target=\"_blank\" class=\"intercom-content-link\">restoring your VPS from backups.<\/a><\/p>\n<\/li>\n<\/ul><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\"><b>Note:<\/b> This method works for filesystem corruption issues. For database recovery in Emergency Mode, refer to this guide:<a href=\"\/support\/4635603-how-to-recover-mysql-databases-from-mysql-data-files-in-vps\" target=\"_blank\" class=\"intercom-content-link\"> How to Recover MySQL Databases From MySQL Data Files in VPS<\/a>.<\/p>\n<\/div><p class=\"no-margin\">\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tutorial on how to recover from VPS filesystem corruption<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[199],"tags":[],"class_list":["post-314","post","type-post","status-publish","format-standard","hentry","category-vps-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/11484348-how-to-recover-from-vps-filesystem-corruption-at-hostinger\/","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=314"}],"version-history":[{"count":2,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/314\/revisions"}],"predecessor-version":[{"id":6959,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/314\/revisions\/6959"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}