I'm running Ubuntu 8.04 in a VM in VMware Fusion 3.0. I understand how to resize the hard disk (Fusion makes that easy with a GUI). But how do I resize the partition in Ubuntu?
mount -l
tells me: "/dev/sda1 on / type ext3 (rw,relatime,errors=remount-ro) []".
I found Ubuntu: Resize the root LVM(2?) partition, which led me to read the man page for resize2fs, which says I should use lvextend to expand the size of the underlying partition. But Ubuntu: Resize the root LVM(2?) partition talks about pvresize and lvresize. Which should I use? Any other advice?
Boot the VM from the live CD, use the partition editor to expand the partition, disconnect the CD and reboot.