Storage · Linux Storage
ext4
Cheat sheet · https://pcornel.dk/topic.php?topic=4005
Answer
ext4 is the long-standing default Linux journaling file system: stable, fast to check and able to grow and shrink offline. It supports volumes up to 1 EiB and files up to 16 TiB.
Remember
- ext4 can grow online and shrink offline.
- Reserved blocks (5 %) are for root.
- Inode count is fixed at creation.
First checks
tune2fs -l /dev/<dev> | grep -E 'state|Mount count|Reserved block'— ext4 infoe2fsck -fn /dev/<dev>— check (unmounted)resize2fs /dev/<dev>— grow
Commands
df -i
Verify in this order
files → ext4 → block device
Where it usually breaks
First mismatch in provider/pool → virtual/logical disk → host/guest mapping → partition/filesystem → mount/drive → workload; preserve identity/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=4005