{"id":602,"date":"2023-11-17T09:45:27","date_gmt":"2023-11-17T09:45:27","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2023\/11\/17\/8600853-vps-emergency-mode-where-to-find-files-at-hostinger\/"},"modified":"2023-11-17T09:45:27","modified_gmt":"2023-11-17T09:45:27","slug":"8600853-vps-emergency-mode-where-to-find-files-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/8600853-vps-emergency-mode-where-to-find-files-at-hostinger\/","title":{"rendered":"VPS Emergency Mode: Where to Find Files at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">While <b><a href=\"\/support\/5726577-how-to-use-emergency-mode-on-your-vps\" target=\"_blank\" class=\"intercom-content-link\">Emergency Mode<\/a><\/b> is active, you can still <b><a href=\"\/support\/5723772-how-to-connect-to-your-vps-via-ssh\" target=\"_blank\" class=\"intercom-content-link\">access your VPS via SSH<\/a><\/b>. The disk for your machine is mounted under the <code>\/mnt<\/code> directory. This folder includes different directories named <code>sda<\/code>, which is the name of your VPS disk. <\/p><p class=\"no-margin\">As multiple partitions exist to ensure your machine loads, you may see several numbered <code>sda<\/code> directories by running the command <code>ls<\/code> while inside the <code>\/mnt<\/code> directory:<\/p><pre><code>root@machine:\/mnt# ls <br>sda sda1 sda14 sda15<\/code><\/pre><p class=\"no-margin\">To identify what directory refers to your main partition, you can use this command:<\/p><pre><code>lsblk<\/code><\/pre><p class=\"no-margin\">The command will output all devices: look for the <code>sda<\/code> device and its partitions. The partition of the&nbsp;<b>largest size<\/b>&nbsp;is your VPS disk&rsquo;s <b>main partition<\/b>.<\/p><p class=\"no-margin\">The table will also include a <b><a href=\"#h_c1af0f83d1\" target=\"_blank\" class=\"intercom-content-link\">MOUNTPOINTS column<\/a><\/b>. That&rsquo;s the directory the partition is mounted to. You can see an example below of what the output for <code>lsblk<\/code> would look like:<\/p><pre><code>root@machine:\/# lsblk <br>NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS <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>                           \/boot\/efi <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 rom<\/code><\/pre><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">The way partitions are organized depends on the <b><a href=\"\/support\/4965922-how-to-change-the-operating-system-for-your-vps\" target=\"_blank\" class=\"intercom-content-link\">operating system of your VPS<\/a><\/b>. Therefore, the output of the <code>lsblk<\/code> command may differ from the example above. The size of the main partition will also depend on your VPS plan &#128161; <\/p>\n<\/div><p class=\"no-margin\">Once you identify the directory where your main partition is mounted, access it and run the <code>ls<\/code> command to see its files. Below is the expected output. Note that the files you see may also differ depending on your operating system:<\/p><pre><code>root@machine:\/mnt\/sda1# ls <br>bin boot dev etc home lib lib32 lib64 libx32 lost+found media mnt opt proc root run sbin snap srv sys tmp usr var<\/code><\/pre><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">If you&rsquo;re not familiar with the <b>Linux Directory Structure<\/b>, check this guide:<b> <a href=\"https:\/\/linuxhandbook.com\/linux-directory-structure\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Linux Directory Structure Explained for Beginners<\/a> &#128161; <\/b><\/p>\n<\/div><p class=\"no-margin\">\n<\/p><h3 id=\"h_c1af0f83d1\">What to do if the MOUNTPOINTS column for the main storage partition is empty?<\/h3><p class=\"no-margin\">If the <b>MOUNTPOINTS<\/b> column is empty for the main partition, that means it isn&rsquo;t mounted. You can easily mount it by using this command:<\/p><pre><code>mount \/dev\/sda1 \/path\/to\/mount<\/code><\/pre><p class=\"no-margin\">The <code>\/path\/to\/mount<\/code> can be anything. We recommend you name it after the partition number, e.g., if the main partition is <code>sda2<\/code>, then use <code>\/mnt\/sda2<\/code>.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Make sure to create the directory that will be used as the mountpoint first!<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Locating the files while the emergency mode is enabled in your VPS<\/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-602","post","type-post","status-publish","format-standard","hentry","category-vps-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/8600853-vps-emergency-mode-where-to-find-files-at-hostinger\/","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/602","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=602"}],"version-history":[{"count":0,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/602\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}