I just expanded my 1G "homefile" which is mounted to /home/user by another GB using truncate -s +1G homefile, and while it changed the size of homefile shown with df to 2GB, when mounted it is still only 1GB. Am I missing something? I dont have to use mkfs.etx4 again do I?.. as that would wipe the data and defeat the purpose of me using truncate over fallocate, with which I have to use resize2fs after expanding, but doesnt change the data. I tried using resize2fs after truncate, but it had an error on the filesystem type (I'll have to reboot my VM if that is pertinent).
If there is no way for me to expand with truncate, is there another way to mount a dynamically expanding file? I know qcow2 can do that, but it seems a little heavy handed for this. I'm aware of squashfs in things like PuppyOS and PorteuOS, but it had more steps involved to set up when I looked. I like the simplicity of truncate if it will work.