Carlos E. R. composed on 2024-10-28 15:18 (UTC+0100):
Felix Miata wrote:
I understand that you would want to upgrade ext2,3 to ext4. But what is not clear is why you use those options on tune2fs. What do they do related to this problem.
I used those options because they are in my notes. They are in my notes because once upon some unknown time I looked up how to upgrade from ext2/3 to ext4. The problem I wish to solve is eliminating those warnings before the rollover date occurs, so that I don't become surprised to find old files to exhibit obviously erroneous dates. I was under the impression that using ext4 was the simple solution. When I started trying, I was unaware that inode size 256 was new in ext4, and neither aware that it is requirement for solving the issue. Unfortunately for me, ext2, ext3, and ext4 filesystems I created were virtually always less than 10,000M, and I was in the habit of specifying -I 128 as an option to mkfs.ext[2,3], and even to mkfs.ext4. That means much of my work I thought was already done needs to be readdressed, and in many cases on 32bit installations, it appears there will be no solution available, except to set the BIOS clock to some old date, and prevent non-supporting installations from networking; or not living until 2038.
I have googled and found a document:
https://linuxtiwary.com/2016/02/04/how-to-convert-ext3-file-system-to-ext4-w...
How to convert ext3 file system to ext4 without any data loss
This tutorial is all about how to convert an ext3 file system in linux to an ext4 file system without having any loss in data.You can also say that this article is about file system upgradation in linux without any data loss. Whenever you need to upgrade your linux file system from ext3 to ext4 you can upgrade it very easily without losing your data.
Here in this article i have mentioned step wise method to convert an ext3 file system to ext4 file system without any loss in data.
And what they do is precissely:
#tune2fs -O extents,uninit_bg,dir_index /dev/sda5 #fsck -pf /dev/sda5 #e2fsck -f /dev/sda5 #mount -t ext4 /dev/sda5 /new
In 15.5's man fsck, no -p option is shown, but I wasn't using it anyway. What I was actually doing was: tune2fs -O extents,uninit_bg,dir_index /dev/sdXY e2fsck -fD /dev/sdXY I don't remember seeing in any search hits I looked at for conversion to ext4 requiring -p.
Still no explanation on how those cryptic options do the conversion from ext3 to ext4.
Same here. I remember looking for a catalog of features supported by the different extX flavors, but never finding one. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata