Ext4 Howto
From Ext4
(Difference between revisions)
(from http://www.bullopensource.org/ext4/ and other places) |
(git repo added, some notes about e2fsprogs) |
||
Line 1: | Line 1: | ||
# Enable <tt>EXT4DEV_FS</tt> (along with <tt>EXT4DEV_FS_XATTR</tt> and <tt>EXT4DEV_FS_POSIX_ACL</tt> if you like) in your kernel <tt>.config</tt> | # Enable <tt>EXT4DEV_FS</tt> (along with <tt>EXT4DEV_FS_XATTR</tt> and <tt>EXT4DEV_FS_POSIX_ACL</tt> if you like) in your kernel <tt>.config</tt> | ||
− | # Get & compile a [ftp://ftp.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs-interim/ | + | # Get & compile a patched version of e2fsprogs |
− | # We're still using '<tt>mkfs.ext3 /dev/DEVICE</tt>' to create the filesystem | + | ## Either get it from [ftp://ftp.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs-interim/ kernel.org] or |
− | + | ## use the <tt>"pu"</tt> branch from the [http://git.kernel.org/?p=fs/ext2/e2fsprogs.git;a=summary 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 '<tt>mkfs.ext3 /dev/DEVICE</tt>' to create the filesystem<br> | ||
+ | 4. To mount the partition as Ext4: | ||
mount -t ext4dev /dev/DEV /wherever | mount -t ext4dev /dev/DEV /wherever | ||
To enable [http://lwn.net/Articles/194869/ extents], use: | To enable [http://lwn.net/Articles/194869/ extents], use: | ||
mount -t ext4dev -o extents /dev/DEVICE /wherever | mount -t ext4dev -o extents /dev/DEVICE /wherever | ||
− | |||
− | |||
Some (most? all?) of the ext3 mountoptions are still supported: <tt>nobh, user_xattr, acl</tt>. | Some (most? all?) of the ext3 mountoptions are still supported: <tt>nobh, user_xattr, acl</tt>. | ||
+ | |||
+ | |||
+ | NOTE: | ||
+ | * Once mounted with <tt>-o extents</tt>, the partition cannot mounted with <tt>-t ext3</tt> 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 [http://www.mail-archive.com/linux-ext4@vger.kernel.org/msg04136.html the tools don't get much testing] atm. |
Revision as of 15:07, 20 November 2007
- 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
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.