It is possible to mount both ext3 (and ext2, in kernels 2.6.28 and later) filesystems directly using the ext4 filesystem driver. This will allow you to use many of the in-core performance enhancements such as delayed allocation (delalloc) and multi-block allocation (mballoc), and large inodes if your ext3 filesystem have been formatted with large inodes as is the default with newer versions of e2fsprogs. Simply mounting an ext3 (or ext2) filesystem with a modern (2.6.27+) version of ext4 will not change the on-disk structures, and it is possible to revert to the ext3 (or ext2) driver should there be any problem with ext4. If you plan to use the ext4 driver to boot from an ext2/3 partition, and you compile your kernel without the ext2/3 drivers, you may need to add rootfstype=ext4 to the kernel command line. In addition to the in-core performance enhancements, there are additional features which modify the on-disk format from what ext3 understands, such as extents, which can significantly improve the ext4 filesystem performance, but mean the filesystem cannot be mounted by kernels that do not support ext4. There are additional ext4 features, such as flex_bg and > 16TB filesystem support that can only be enabled at format time via mke2fs. To change an ext2 filesystem (should you still have one) to ext3 (enabling the journal feature), use the command: To enable the ext4 features on an existing ext3 filesystem, use the command: WARNING: Once you run this command, the filesystem will no longer be mountable using the ext3 filesystem! After running this command, you MUST run fsck to fix up some on-disk structures that tune2fs has modified: Notes:# tune2fs -j /dev/DEV
# tune2fs -O extents,uninit_bg,dir_index /dev/DEV
# e2fsck -fpDC0 /dev/DEV
Sunday, July 12, 2009
Converting ext3 to ext4
Courtesy: wiki
Posted by PNA Prasanna at 4:49 PM
Labels: Linux Articles
Subscribe to:
Post Comments (Atom)
0 Comments:
Post a Comment