
Extend root partition, Ubuntu 24.04 LTS, LVM
This applies to different scenarios but perhaps most common is a virtual machine which needs more disk space. This guide assumes you have extended the disk in your hypervisor. Check disk by listing them with: fdisk -l Partition size by running: df -h If the new size isn’t listed/shown, we have to scan for changes: ls /sys/class/scsi_device/ Example output could be: 2:0:0:0 3:0:0:0 32:0:0:0 The scan all devices individually: echo 1 > /sys/class/scsi_device/2\:0\:0\:0/device/rescan echo 1 > /sys/class/scsi_device/3\:0\:0\:0/device/rescan echo 1 > /sys/class/scsi_device/32\:0\:0\:0/device/rescan ...