Hi All, I have a Linux VM for which I have added an extra 20GB to and trying to extend the drive, see below for setup;


root@ubuntuVM:~# fdisk -l
Disk /dev/sda: 80 GiB, 85899345920 bytes, 167772160 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x29b6b4c4

Device     Boot    Start       End  Sectors  Size Id Type
/dev/sda1  *        2048   1499135  1497088  731M 83 Linux
/dev/sda2        1501182  83884031 82382850 39.3G  5 Extended
/dev/sda3        1499136   1501181     2046 1023K 8e Linux LVM
/dev/sda4       83884032 125829119 41945088   20G 83 Linux
/dev/sda5        1501184  83884031 82382848 39.3G 8e Linux LVM

Partition table entries are not in disk order.


Disk /dev/mapper/ubuntu--VM--vg-root: 58.3 GiB, 62625153024 bytes, 122314752 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/ubuntu--VM--vg-swap_1: 980 MiB, 1027604480 bytes, 2007040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Currently it shows I have 80GB but only assigned 60GB. The extra 20GB looks like is in /dev/sda4

Any ideas, thanks