Attention!
Before proceeding, be sure to create a server backup, and also save copies of all important data from the server yourself on your PC or in FTParchive.
Note
Changing the size of partitions may be necessary in case change VPS tariff for a tariff with a larger amount of available disk space.
Partitions can be resized both with the help of specialized programs with a graphical interface, and with the help of console utilities.
To increase the size of a partition using GParted, do the following:
-
Connect the image System Rescue CD latest available version - the server will be automatically rebooted.
-
If the main menu is displayed, select "
Boot SystemRescueCd using default options»:

Launch GUI - enter command
startx
and press
Enter:

Start the GParted application:

Right-click on the section you want to enlarge and select "
Resize/Move»:

Use the arrows to expand the section to all the available space so that in the “
Free space preceding"And"
Free space following"Were zeros, and press"
Resize/Move»:

Click on the button to apply changes and confirm the operation:

Wait for the successful completion of the operation:

-
-
Resize2fs only supports ext2-ext4 file systems. If the server uses a different file system, use
Gparted or in another way.
To increase the size of a partition using console commands, do the following:
-
Connect the image System Rescue CD latest available version - the server will be automatically rebooted.
-
If the main menu is displayed, select "
Boot SystemRescueCd using default options»:

Wait for the command line prompt:

Check the current disk layout:
fdisk -l
Run fdisk interactively:
fdisk /dev/xvda
In fdisk interactive mode, run the commands:
List the current sections:
p
Delete the section you want to enlarge (only markup is removed, the data itself is not affected):
d
3
Instead 3
specify the number of the partition to be deleted. The numbers can be seen in the list of current sections.
Create a new partition instead of the deleted one:
n
p
3
p
- primary section (primary).
Instead 3
specify the number of the partition to be created (it will be the same as that of the deleted one).
To request the start and end sectors, just press Enter.
Important! Answer the request to remove the signature n
.
Check the resulting markup:
p
-
Check the file system of the created partition:
e2fsck -f /dev/xvda3
Instead 3
specify the number of the created section.
Resize the file system of the created partition:
resize2fs /dev/xvda3
Instead 3
specify the number of the created section.
-
-
-