Ubuntu – Extender partição sem reiniciar

# echo 1 > /sys/class/block/sda/device/rescan
Expand your partition ( Works with ansible )

# parted —pretend-input-tty /dev/sda resizepart F 2 Yes 100%
– F for Fix
– 2 for partition
– Yes to confirm
– 100% for whole partition
Resize it

# resiz2fs /dev/sda2