在Ubuntu 18.04.4 Live Server中分配可用空间

使用parted和print free命令,我在Ubuntu Server中显示了可用空间:

GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print free
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 53.7GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name  Flags
        17.4kB  1049kB  1031kB  Free Space
 1      1049kB  2097kB  1049kB                     bios_grub
 2      2097kB  21.5GB  21.5GB  ext4
        21.5GB  53.7GB  32.2GB  Free Space

I want to use the 21.5 GB Free Space in my Ubuntu Server. I want to merge it into Partition #2. How shall I do it?