Afternoon all,
I expanded our virtual ubuntu server as they ran out of space. Now the machine is running like a dog.
According to the fdisk -l i get this:
sudo fdisk -l
Disk /dev/sda: 80 GiB, 85899345920 bytes, 167772160 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x12f1824d
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 92278781 92276734 44G 83 Linux
/dev/sda2 92278782 104855551 12576770 6G 5 Extended
/dev/sda5 92278784 104855551 12576768 6G 82 Linux swap / Solaris
Partition 2 does not start on physical sector boundary.
I'm guessing the drive has not updated it should be 80gb not 44g.
fdisk -l
clearly says the disk is 80 GiB (see the first line), so this is OK. To expand /dev/sda2, you first have to move sda2 to the end of the disk, then increase sda1 and the filesystem it contains. This can all be done viagparted
. – ridgy Jun 30 '17 at 12:29