Expand Ubuntu Partition: Step-by-Step Guide

  1. Use the GParted tool to expand:
  1. First, install the GParted tool in the terminal by using the command: sudo apt-get install gparted.
  2. Open the GParted tool and select the partition you want to resize.
  3. Right-click on the partition and select “Resize/Move”.
  4. Drag the partition boundary in the pop-up window to adjust the partition size.
  5. After confirming the operation, click on the “Apply” button to expand.
  1. Expand using command line tools.
  1. Firstly, use the lsblk command to view the current disk partition information.
  2. Open the disk partition editor using the command “sudo fdisk /dev/sdX” (where “sdX” is the disk to be resized).
  3. Type “p” to view current partition information and make a note of the starting sector of the partition.
  4. Enter “d” to delete the partition, then enter “n” to create a new extended partition.
  5. Adjust the partition sizes according to the prompts and save the changes by using “w”.
  6. Use the command resize2fs /dev/sdX# (where “sdX#” is the partition to be expanded) to resize the file system.

No matter which method you choose to expand, it is recommended to back up important data before operation to prevent accidents.

bannerAds