Often Linux developers and system administrators need to resize their hard disk without data loss. You can easily do this using third-party tools like GParted. In this article, we will learn how to resize Linux partition without data loss. You can use these tools in almost every Linux.
How to Resize Linux Partition without Data Loss
Here are the steps to resize Linux partition without data loss.
1. Install Gparted
Open terminal and run the following command to install GParted.
$ sudo apt-get install gparted
2. Resize Linux Partition
Open Gparted from dashboard.

You will see a list of Disk partitions on your system.

Please note, you cannot resize partition that is still in use. So right click on partition, click Unmount from dropdown menu. If it is a swap partition, select swap off option.

Next, right click on the partition you want to resize and click resize/move option.

You will see a window that allows you to resize partition by entering new partition values or by clicking and dragging the partitions. When you are done, click resize/move to save changes.

These changes will enqueued in GParted and not applied immediately.

3. Apply Changes
Click green tick mark shown below to apply changes. This will take some time. Do not Switch off your computer. In case of issues, it will show error messages.

In this article, we have learnt how to reconfigure Linux partition without data loss.
Originally published at https://techosha.com/how-to-resize-linux-partition-without-data-loss/