How to extend rootfs before booting
Have you already tried expanding rootfs via sudo raspi-config then first update and at last go for Expand Filesystem ? This is the usual and simplest way of doing so. Edit: I would suggest https://...
Only top scored, non community-wiki answers of a minimum length are eligible