I’m in a situation where I want to enlarge the default size of an ext4 filesystem used by the firmware.
The problem is
resize2fs is doing extra things like clearing some filesystems features and relocating the journal to the beginning of the device’s partition (as a result my device keep crashing before mounting anything and as I don’t know how to access the kernel console before
adb can be launched, I‘ve no ideas how to access it or tune the
console= kernel parameter for having the console printed on the device’s display).
As this is for enlarging, normally no relocation is needed. So how to use
debugfs to change the size along with (maybe if needed) the number of free inodes? I mean which field of
set_super_value I should set and which numbers to pick?
More importantly, how do I set the group descriptor checksums?