Andrew Conway is a user on mastodon.me.uk. 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.

@mcnalu Be careful that it still may damage your files. I'd suggest doing a backup of your important shit
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 😁