4 Convert an Ext2 or Ext3 File System to Ext4 In-Place
Convert an existing Ext2 or Ext3 file system to Ext4 without losing data.
Ext4 is an extension to Ext3, which in turn builds on features in Ext2. You can convert an
earlier file system to a later version by enabling the features that are required for that
version and then mounting it using the correct version type. The primary tool used for these
changes is the tune2fs
command.
Note:
The preferred method for upgrading an Ext2 file system to Ext4 is to back up the entire volume, reformat the storage device with Ext4, and restore the entire volume onto the newly formatted file system.
Always back up data before making file system modifications.
This procedure describes the steps to advance the file system from Ext2 to Ext4. If the file system that you're converting is an Ext3 file system, you can skip the intermediate step that converts the Ext2 file system to Ext3.