ext4
Cheat sheet · https://pcornel.dk/topic.php?topic=2754
Answer
ext4 is the long-standing default Linux filesystem: journaled, can grow online and shrink offline, with a fixed inode count set at creation and a 5 % root reserve by default.
Remember
Grow with resize2fs (online); shrink only unmounted. tune2fs -l shows settings; reduce the reserve on big data disks (tune2fs -m 1). Repair with e2fsck -f on an unmounted filesystem.
First checks
findmnt— mount tree with optionsdf -hT— usage and filesystem typesfindmnt --verify— check /etc/fstabdmesg -T | grep -iE 'ext4|xfs|btrfs'— filesystem kernel messages
Verify in this order
mkfs.ext4 → mounted → journal protects metadata → resize2fs grows → e2fsck repairs
Where it usually breaks
First mismatch in hardware/block device → kernel driver/mapper/RAID/LVM → filesystem → mount namespace/options → path permissions/MAC → consumer I/O; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2754