Andrew Conway is a user on You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

Fellow Linux users: need to perform surgery on my laptop and first step involves resizing an existing ext4 partition ideally keeping its files. What's the fastest way? Command line methods are fine.

Andrew Conway @mcnalu

@dtluna @arunisaac @lohang thanks all. In the end I discovered that resize2fs can expand (but not shrink) a mounted filesystem, even a root one. So I used cfdisk to enlarge the partition, then rebooted and ran resize2fs on it. Job done. I was fully backed up though as it was a bit risky 😁