{"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-03-16T12:12:00","modified_gmt":"2026-03-16T12:12:00","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 class=\"no-margin\"><b><a href=\"\/support\/1583229-how-to-upgrade-a-vps-server\" target=\"_blank\" class=\"intercom-content-link\">Upgrading your VPS plan<\/a><\/b> typically comes with an <b>increase in disk space<\/b>. <\/p><p class=\"no-margin\">\n<\/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><p class=\"no-margin\">\n<\/p><h2 id=\"h_43c1b3f18e\">Step 1 &mdash; Log In to Your VPS<\/h2><p class=\"no-margin\">Connect to your VPS <b><a href=\"\/support\/5723772-how-to-connect-to-your-vps-via-ssh\" target=\"_blank\" class=\"intercom-content-link\">via SSH<\/a><\/b> as the root user. Ensure you have a stable internet connection to prevent disconnection during the process.<\/p><p class=\"no-margin\">\n<\/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><p class=\"no-margin\">\n<\/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><p class=\"no-margin\">\n<\/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><p class=\"no-margin\">\n<\/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\">\n<\/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><p class=\"no-margin\">\n<\/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":0,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/558\/revisions"}],"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}]}}