Ext4 Howto

From Ext4
Revision as of 15:07, 20 November 2007 by Ckujau (Talk | contribs)

Jump to: navigation, search
  1. Enable EXT4DEV_FS (along with EXT4DEV_FS_XATTR and EXT4DEV_FS_POSIX_ACL if you like) in your kernel .config
  2. Get & compile a patched version of e2fsprogs
    1. Either get it from kernel.org or
    2. use the "pu" branch from the git repository:
       git clone git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
       cd e2fsprogs
       git checkout -b pu

3. We're still using 'mkfs.ext3 /dev/DEVICE' to create the filesystem
4. To mount the partition as Ext4:

 mount -t ext4dev /dev/DEV /wherever

To enable extents, use:

 mount -t ext4dev -o extents /dev/DEVICE /wherever

Some (most? all?) of the ext3 mountoptions are still supported: nobh, user_xattr, acl.


NOTE:

  • Once mounted with -o extents, the partition cannot mounted with -t ext3 any more!
  • The version of e2fsprogs mentioned above is NOT meant to be used for production system. Development of these tools wrt Ext4 support is still in high flux and the tools don't get much testing atm.
Personal tools