For Virtual Machine I'm using with VMware, and for OS the Ubuntu 20.04.
I create the 500Mb for /boot, 30GB for root /, 8192MB for /swap and others for /home partition.
When I installed the Ubuntu, I create the partitions disks. It was like:
/boot = 500MB
/ = 30GB
/swap = 8192MB
/home = 15GB
The output after installation by using parted command it likes:
dev@ops:~$ sudo parted -l
Model: VMware Virtual NVMe Disk (nvme)
Disk /dev/nvme0n1: 53.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 500MB 499MB primary ext2 boot
2 501MB 53.7GB 53.2GB extended
5 501MB 30.5GB 30.0GB logical ext4
6 30.5GB 38.7GB 8191MB logical linux-swap(v1)
7 38.7GB 53.7GB 15.0GB logical ext4
Now I want to resize the partitions of 15GB and 30GB.
I want to take the 5GB from partition Number 7: and move it to the partition Number 5 (30GB) and merge it with a 30GB. After the process, it would be shows:
Number Start End Size Type File system Flags 1 1049kB 500MB 499MB primary ext2 boot 2 501MB 53.7GB 53.2GB extended 5 501MB 30.5GB 35.0GB logical ext4 6 30.5GB 38.7GB 8191MB logical linux-swap(v1) 7 38.7GB 53.7GB 10.0GB logical ext4
I don't use with the LVM methodologies, simple partitioning only.
Thank you in advance!
