{"id":601,"date":"2023-11-21T08:32:39","date_gmt":"2023-11-21T08:32:39","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2023\/11\/21\/8611503-vps-emergency-mode-how-to-change-apparent-root-on-your-disk-at-hostinger\/"},"modified":"2023-11-21T08:32:39","modified_gmt":"2023-11-21T08:32:39","slug":"8611503-vps-emergency-mode-how-to-change-apparent-root-on-your-disk-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/8611503-vps-emergency-mode-how-to-change-apparent-root-on-your-disk-at-hostinger\/","title":{"rendered":"VPS Emergency Mode: How to Change Apparent Root on Your Disk at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">In an emergency mode SSH session, you can change the apparent root to your VPS-mounted disk to simulate a typical login scenario. This enables you to <b>execute commands and perform actions<\/b> on your VPS, offering a way to address issues or manage resources directly within the disk environment.<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Some commands or actions are not accessible within a <code>chroot<\/code> environment. While <code>chroot<\/code> is a potent tool for <b>executing commands from your VPS disk<\/b>, it may not resolve all resource-related issues.<\/p>\n<\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">To <b>change <\/b>the apparent root, use the command below:<\/p><p class=\"no-margin\">\n<\/p><pre><code>chroot \/path\/to\/mainpartition<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Make sure to replace <b>\/path\/to\/mainpartition<\/b> with your VPS disk main partition mounted directory. You can locate the directory by referring to this guide: <b><a href=\"\/support\/8600853-vps-emergency-mode-where-to-find-files\" target=\"_blank\" class=\"intercom-content-link\">VPS Emergency Mode: Where to Find Files<\/a><\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">A successful execution of the command won&rsquo;t display any error messages. Your terminal window will display the <b>prompt <\/b>for entering a new command:<\/p><p class=\"no-margin\">\n<\/p><pre><code>root@server:\/#<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">To <b>verify<\/b> the change was applied, run the following command:<\/p><p class=\"no-margin\">\n<\/p><pre><code>unshare -U true<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">If you encounter an <code>unshare: unshare failed: Operation not permitted error<\/code>, it indicates the apparent root <b>was successfully changed<\/b>, and subsequent commands will utilize the resources from your mounted VPS disk.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Changing the apparent root when 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-601","post","type-post","status-publish","format-standard","hentry","category-vps-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/8611503-vps-emergency-mode-how-to-change-apparent-root-on-your-disk-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/8611503-vps-modo-de-emergencia-como-cambiar-la-raiz-aparente-en-tu-disco-en-hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/601","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=601"}],"version-history":[{"count":0,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/601\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}