Resize Linux Partitions Without Data Loss
You can use the command line tool GParted to adjust the size of Linux partitions, and here are the specific steps to do so.
- You can install the GParted tool first, either through a package manager or through the command line.
sudo apt-get install gparted
- Open the GParted tool and enter the following command:
sudo gparted
- Select the partition you want to resize in the GParted tool, right-click on it, and choose the “Resize/Move” option.
- In the pop-up window, the size of the partition can be adjusted by dragging the partition boundaries, or by manually entering a new size.
- Click on the “Resize/Move” button to confirm the resizing of the partition.
- Finally, click the “Apply” button on the toolbar to apply the partition resize.
Please note that it is recommended to back up important data before resizing partitions to avoid accidental loss.