If I have a linux partition that I'd like to change the size of (either expand or shrink), how would I go about doing that without using a Live CD/USB stick or gparted (or something similar like lextend)? I'm particularly interested in how to change the size of a partition of a filesystem that I'm working from (i.e. booting in Mint and changing the partition size of the Mint partition).
I'd prefer to do all of the work from the terminal.