{"id":13716,"date":"2024-08-12T12:52:40","date_gmt":"2024-08-12T12:52:40","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=docs&#038;p=13716"},"modified":"2024-08-28T12:00:09","modified_gmt":"2024-08-28T12:00:09","password":"","slug":"how-to-activate-and-use-rescue-mode-on-a-vps","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-activate-and-use-rescue-mode-on-a-vps\/","title":{"rendered":"How to Activate and use rescue mode on a VPS"},"content":{"rendered":"\n<p>Rescue mode is a tool provided by Truehost Cloud for you to boot your VPS into a temporary operating system. You can then access your system in order to run diagnostic tasks and resolve various issues such as:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Resetting your user password to regain access<\/li>\n\n\n\n<li>Diagnosing network problems<\/li>\n\n\n\n<li>Repairing a broken operating system or kernel related issues.<\/li>\n\n\n\n<li>Fixing a misconfigured software firewall<\/li>\n\n\n\n<li>Testing disk performance<\/li>\n\n\n\n<li>Perform data backup.<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n\n\n\n<p>Access  your Truehost Client Area Portal<br><\/p>\n\n\n\n<p>1 Go to Services -> Click on Your VPS server -> <\/p>\n\n\n\n<p>2. Click on the Rescue mode Icon<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"455\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-18.png\" alt=\"\" class=\"wp-image-13821\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-18.png 750w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-18-300x182.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-18-240x145.png 240w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/figure>\n\n\n\n<p>3. Enter your desired root password and click enable rescue.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"477\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-19.png\" alt=\"\" class=\"wp-image-13822\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-19.png 722w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-19-300x198.png 300w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/figure>\n\n\n\n<p>Login to the server using the set details <\/p>\n\n\n\n<p><code>root@11.22.33.44 <\/code><\/p>\n\n\n\n<p>Once you are connected, you will notice you are now logged in to the server in rescue mode as below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"224\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-20.png\" alt=\"\" class=\"wp-image-13823\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-20.png 730w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-20-300x92.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<p><code>root@rescue <\/code><\/p>\n\n\n\n<p>Next, verify the attached disks with this command:<\/p>\n\n\n\n<p><code><strong>lsblk<\/strong><\/code><\/p>\n\n\n\n<p>The result will look similar to the following example output:<\/p>\n\n\n\n<p><code>root@rescue:~# lsblk<\/code><br>NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT<br><code>vda 254:0 0 2G 0 disk<br>\u2514\u2500vda1 254:1 0 2G 0 part \/<br>vdb 254:16 0 30G 0 disk<br>\u251c\u2500vdb1 254:17 0 29G 0 part<br>\u2514\u2500vdb2 254:18 0 999M 0 part<\/code><\/p>\n\n\n\n<p>In rescue mode above, <strong>vda<\/strong> is the rescue mode disk and <strong>vda1<\/strong> is the primary rescue partition mounted on \/ partition.<\/p>\n\n\n\n<p>In this example, the primary disk of the VPS is <strong>vdb<\/strong> and the system partition is<strong> vdb1<\/strong> (indicated by the size).<\/p>\n\n\n\n<p>Mount this partition with the following command:<\/p>\n\n\n\n<p><strong><code>mount \/dev\/vdb1 \/mnt\/<\/code><\/strong><\/p>\n\n\n\n<p>Your files are now accessible from the mount point \/mnt:<\/p>\n\n\n\n<p><strong><code>cd \/mnt<\/code><\/strong><\/p>\n\n\n\n<p><code><strong>ls<\/strong><\/code><\/p>\n\n\n\n<p>You should then see your file system displayed:<\/p>\n\n\n\n<p><code>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><\/p>\n\n\n\n<p>Navigate to home folder for your files<\/p>\n\n\n\n<p>Navigate to \/var\/lib\/yourdatabases<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"193\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-21-1024x193.png\" alt=\"\" class=\"wp-image-13824\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-21-1024x193.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-21-300x56.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-21-768x144.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-21.png 1319w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Before you can manipulate this partition however, you need to open it for write access which you can do with the following command:<\/p>\n\n\n\n<p><strong><code>chroot \/mnt<\/code><\/strong><\/p>\n\n\n\n<p>In our case, I&#8217;ll generate a backup of lint_whmcs database. <\/p>\n\n\n\n<p><code>tar -cvzf lint_whmcs_backup.tar.gz lint_whmcs\/<\/code><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Move it to home or a remote server.<\/p>\n\n\n\n<p><code>mv lint_whmcs_backup.tar.gz \/mnt\/home\/<\/code><\/p>\n\n\n\n<p>Once you have completed your actions in rescue mode, reboot the VPS again in the regular mode<\/p>\n\n\n\n<p><strong><em>NOTE: For most changes you make to your server via SSH while in rescue mode, you will need to mount the system partition.<\/em><\/strong><\/p>\n\n\n\n<p><strong>IMPORTANT : <\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><\/td><td>Do not confuse the&nbsp;<code>\/<\/code>&nbsp;directory with the&nbsp;<code>\/root<\/code>&nbsp;directory. The&nbsp;<code>\/root<\/code>&nbsp;directory is the home directory of the root user. The&nbsp;<code>\/root<\/code>&nbsp;directory is sometimes referred to as&nbsp;<em>slash root<\/em>&nbsp;to distinguish it from the root directory.<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Rescue mode is a tool provided by Truehost Cloud for you to boot your VPS into a temporary operating system. You can then access your system in order to run diagnostic tasks and resolve various issues such as: Access your Truehost Client Area Portal 1 Go to Services -> Click on Your VPS server -> [&hellip;]<\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[1879],"doc_tag":[],"class_list":["post-13716","docs","type-docs","status-publish","hentry","doc_category-servers"],"year_month":"2026-06","word_count":431,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Kibera","author_nicename":"dan-k","author_url":"https:\/\/truehost.com\/support\/author\/dan-k\/"},"doc_category_info":[{"term_name":"Servers","term_url":"https:\/\/truehost.com\/support\/docs-category\/servers\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Activate and use rescue mode on a VPS -<\/title>\n<meta name=\"description\" content=\"Rescue mode is a tool provided by Truehost Cloud for you to boot your VPS into a temporary operating system so as to fix any issues.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-activate-and-use-rescue-mode-on-a-vps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Activate and use rescue mode on a VPS -\" \/>\n<meta property=\"og:description\" content=\"Rescue mode is a tool provided by Truehost Cloud for you to boot your VPS into a temporary operating system so as to fix any issues.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-activate-and-use-rescue-mode-on-a-vps\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-28T12:00:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-18.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-activate-and-use-rescue-mode-on-a-vps\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-activate-and-use-rescue-mode-on-a-vps\\\/\",\"name\":\"How to Activate and use rescue mode on a VPS -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-activate-and-use-rescue-mode-on-a-vps\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-activate-and-use-rescue-mode-on-a-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/image-18.png\",\"datePublished\":\"2024-08-12T12:52:40+00:00\",\"dateModified\":\"2024-08-28T12:00:09+00:00\",\"description\":\"Rescue mode is a tool provided by Truehost Cloud for you to boot your VPS into a temporary operating system so as to fix any issues.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-activate-and-use-rescue-mode-on-a-vps\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-activate-and-use-rescue-mode-on-a-vps\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-activate-and-use-rescue-mode-on-a-vps\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/image-18.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/image-18.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/how-to-activate-and-use-rescue-mode-on-a-vps\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Activate and use rescue mode on a VPS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Activate and use rescue mode on a VPS -","description":"Rescue mode is a tool provided by Truehost Cloud for you to boot your VPS into a temporary operating system so as to fix any issues.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-activate-and-use-rescue-mode-on-a-vps\/","og_locale":"en_US","og_type":"article","og_title":"How to Activate and use rescue mode on a VPS -","og_description":"Rescue mode is a tool provided by Truehost Cloud for you to boot your VPS into a temporary operating system so as to fix any issues.","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-activate-and-use-rescue-mode-on-a-vps\/","article_modified_time":"2024-08-28T12:00:09+00:00","og_image":[{"url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-18.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-activate-and-use-rescue-mode-on-a-vps\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-activate-and-use-rescue-mode-on-a-vps\/","name":"How to Activate and use rescue mode on a VPS -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-activate-and-use-rescue-mode-on-a-vps\/#primaryimage"},"image":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-activate-and-use-rescue-mode-on-a-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-18.png","datePublished":"2024-08-12T12:52:40+00:00","dateModified":"2024-08-28T12:00:09+00:00","description":"Rescue mode is a tool provided by Truehost Cloud for you to boot your VPS into a temporary operating system so as to fix any issues.","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-activate-and-use-rescue-mode-on-a-vps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/how-to-activate-and-use-rescue-mode-on-a-vps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-activate-and-use-rescue-mode-on-a-vps\/#primaryimage","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-18.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2024\/08\/image-18.png"},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/how-to-activate-and-use-rescue-mode-on-a-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Activate and use rescue mode on a VPS"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/13716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=13716"}],"version-history":[{"count":7,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/13716\/revisions"}],"predecessor-version":[{"id":13825,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/13716\/revisions\/13825"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=13716"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=13716"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=13716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}