Automatically generated based on tag:
| Title | Type | Summary | Location |
|---|---|---|---|
| Linux - ext4 file system (inodes, timestamps, and journal) | Page | ext4 is the default file system of most Linux distributions. Unlike NTFS, which centralizes file records in the MFT, the ext4 file system information is split across block groups, each composed of (optional) superblock and group descriptor backups, block and inode bitmaps, an inode table, and data blocks. The superblock references information on the file system: creation, last mount, and last write timestamps, last mount point, volume UUID and label, etc. Each file is associated with an inode, which stores its metadata (size, owner UID / GID, permissions, and timestamps) but not its name (stored in the parent directory entries). ext4 inodes record four timestamps, with nanosecond precision: access (atime), modification (mtime), inode change (ctime), and creation / birth (crtime), as well as a deletion time (dtime) for deleted inodes. The atime is usually only partially updated (relatime mount option). The atime and mtime can be arbitrarily set from user space (timestomping with touch), while the ctime and crtime cannot. The ext4 journal (jbd2) records metadata changes and may hold previous versions of inodes and directory blocks, which can be used to recover information on deleted files. |
File system metadata (superblock, group descriptors, inode tables, journal) on ext2 / ext3 / ext4 partitions. Notable inodes: - inode 2: root directory - inode 8: journal - inode 11: lost+found directory (usually) |
View on GitHub