This question already has an answer here:
- How can I resize an ext root partition at runtime? 10 answers
- How to resize partitions? 4 answers
I would like to extend a partition without booting from a LiveCD and also from the command line, because I'm writing a bash script.
I want to extend the
/dev/sda5 partition. I already tried
sudo resize2fs /dev/sda5 1G which didn't work.