Ext4 Howto
From Ext4
- Enable EXT4DEV_FS (along with EXT4DEV_FS_XATTR and EXT4DEV_FS_POSIX_ACL if you like) in your kernel .config
- Get & compile a patched version of e2fsprogs
- Either get it from kernel.org or
- 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 Switched to a new branch "pu" $ git branch master * pu $ git pull git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git 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 be 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.