-
Grow the disk in your hypervisor (Hyper-V: Edit Disk in Actions panel)
-
Apply the disk size change (you can do
echo 1 | sudo tee /sys/class/block/sda/device/rescaninstead ofpartprobe)$ sudo partprobe /dev/sda $ sudo dmesg | tail ... [4688278.217348] sd 2:0:0:0: Capacity data has changed
[4688278.217583] sd 2:0:0:0: [sda] 83886080 512-byte logical blocks: (42.9 GB/40.0 GiB)