In the code base on which the Linux 6.9 kernel is formed, accepted changetranslating the driver with the file system implementation Ext2 from the supported category to the deprecated category. As a reason mentioned Driver support only for 32-bit inode time counters, which will overflow on January 19, 2038.
To work with existing partitions, instead of the ext2 driver, it is proposed to use the ext4 driver, which supports working with the Ext2 file system and is fully compatible with it, but can use timestamps in ext2 partitions that are not subject to the 2038 problem if the file system is created with an inode, larger than 255 bytes (in the ext2 driver, 32 time counters were used regardless of the inode size).
Ext2 users are advised to check the inode size being used. The mkfs.ext2 utility was moved to use 256-byte inodes by default as of version 1.46.5 (shipped with Ubuntu 22.04), prior to which the command “mkfs.ext2 -I 256” could be used to increase the inode size. If 128-byte inodes are used, they should be converted to 256-byte ones:
$ sudo tune2fs -l /dev/sda1 | grep "Inode size" Inode size: 128 $ sudo e2fsck -f /dev/sda1 $ sudo tune2fs -I 256 /dev/sda1
By words Theodore Ts'o, creator of the Ext2/3/4 file systems, if someone misses the ext2 driver due to its simplicity (for example, the driver may be in demand to save resources on embedded systems), it is not too late to transfer it to It supports 64-bit time counters, which is not difficult.
Thanks for reading: