{"id":558,"date":"2024-02-02T14:28:52","date_gmt":"2024-02-02T14:28:52","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2024\/02\/02\/8899490-how-to-increase-vps-partition-size-at-hostinger\/"},"modified":"2026-10-09T08:56:52","modified_gmt":"2026-10-09T08:56:52","slug":"8899490-how-to-increase-vps-partition-size-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/8899490-how-to-increase-vps-partition-size-at-hostinger\/","title":{"rendered":"How to increase VPS partition size at Hostinger"},"content":{"rendered":"<p>To increase the VPS partition size at Hostinger, connect via SSH, check the current disk usage with lsblk, resize the partition with parted, resize the filesystem, and verify the change. Resizing is needed when your disk is full at the time of a plan upgrade, because the new space may not be allocated to your partitions automatically.<\/p><p class=\"no-margin\"><b><a data-click-id=\"hgr-post-content-link-upgrading-your-vps-plan\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/1583229-how-to-upgrade-a-vps-server-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">Upgrading your VPS plan<\/a><\/b> typically comes with an <b>increase in disk space<\/b>.<\/p><p class=\"no-margin\">However, if your disk is full at the time of the upgrade,<b> the new space may not be automatically allocated <\/b>to your partitions. This guide will walk you through the process of manually increasing your VPS partition size, specifically <b><code>\/dev\/sda1<\/code><\/b>, using the <b><code>parted<\/code><\/b> command.<\/p><h2 id=\"h_43c1b3f18e\">Step 1 &mdash; Log in to your VPS<\/h2><p class=\"no-margin\">Connect to your VPS <b><a data-click-id=\"hgr-post-content-link-via-ssh\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/5723772-how-to-connect-to-your-vps-via-ssh-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">via SSH<\/a><\/b> as the root user. Ensure you have a stable internet connection to prevent disconnection during the process.<\/p><h2 id=\"h_4aa904fbb3\">Step 2 &mdash; Check the current disk usage<\/h2><p class=\"no-margin\">Before making any changes, check the current disk usage using this command:<\/p><pre><code>lsblk<\/code><\/pre><p class=\"no-margin\">This command shows the size and usage of your file systems. Note the usage of <b><code>\/dev\/sda1<\/code><\/b> to confirm the need for expansion.<\/p><h2 id=\"h_885b44dddb\">Step 3 &mdash; Resize the partition<\/h2><p class=\"no-margin\">Start <b><code>parted<\/code><\/b> on your disk:<\/p><pre><code>parted \/dev\/sda<\/code><\/pre><p class=\"no-margin\">Once in <b><code>parted<\/code><\/b>, resize the partition. First, print the current partition table to identify the partition number:<\/p><pre><code>print<\/code><\/pre><p class=\"no-margin\">Assuming <b><code>\/dev\/sda1<\/code><\/b> is the partition you&rsquo;re expanding and it&rsquo;s the first partition, resize it with this command:<\/p><pre><code>resizepart 1<\/code><\/pre><p class=\"no-margin\">When prompted, enter the new size you wish to allocate to the partition or enter <b><code>End<\/code><\/b> to use the maximum available space.<\/p><h2 id=\"h_67ace6bed7\">Step 4 &mdash; Resize the filesystem<\/h2><p class=\"no-margin\">After resizing the partition, you&rsquo;ll need to resize the filesystem to make use of the additional space. For <b><code>ext4 filesystems<\/code><\/b>, use:<\/p><pre><code>resize2fs \/dev\/sda1<\/code><\/pre><p class=\"no-margin\">For other filesystems, such as <b><code>xfs<\/code><\/b>, use the appropriate tool (e.g., <b><code>xfs_growfs<\/code><\/b> for XFS filesystems).<\/p><h2 id=\"h_001f5727ab\">Step 5 &mdash; Verify the changes<\/h2><p class=\"no-margin\">Use<b> <\/b>the <b><code>lsblk<\/code> <\/b>command again to verify that the filesystem has been successfully resized and now reflects the new size.<\/p><p class=\"no-margin\">Manually increasing your VPS&rsquo;s partition size after a plan upgrade ensures that you can utilize the full extent of the resources you&rsquo;re paying for. This process, while technical, can be completed efficiently with the <b><code>parted<\/code><\/b> command and careful execution of each step. Always remember to back up your data before proceeding with any disk operation to safeguard against data loss.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">See <a data-click-id=\"hgr-post-content-link-how-to-check-vps-resources-usage-at-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/4725768-how-to-check-vps-resources-usage-at-hostinger\/\">How to check VPS resources usage at Hostinger<\/a> for other details about checking disk usage in the dashboard.<\/div><p>Your VPS partition and filesystem now use the full disk space of your plan.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Maintaining a properly sized 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-558","post","type-post","status-publish","format-standard","hentry","category-vps-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/8899490-how-to-increase-vps-partition-size-at-hostinger","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/558","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=558"}],"version-history":[{"count":3,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/558\/revisions"}],"predecessor-version":[{"id":20182,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/558\/revisions\/20182"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}