Converting a Non Root Ext File System to a Later Version
Caution:
Before performing a file system conversion, make a backup of the file system from which you can restore its state.
-
Unmount the current file system:
sudo umount filesystem
-
Check the system by running the fsck command appropriate to the file system. For example, if the file system is
ext2
, you would use fsck.ext2 as follows:sudo fsck.ext2 -f device
-
Use the following command with the block device corresponding to the file system:
sudo tune2fs -j device
This command adds an
ext3
journal inode to the file system. -
Check the file system by using the fsck command appropriate to the higher version. For example, if the new file system is
ext3
, you would use fsck.ext3 as follows:sudo fsck.ext3 -f device
-
Correct any entry for the file system in the
/etc/fstab
file so that its type is defined as the later file system version, for example,ext3
instead ofext2
. -
Remount the file system.
sudo mount filesystem
For more information, see the tune2fs(8)
manual
page.