Ext4 Howto
From Ext4
(Difference between revisions)
(git repo added, some notes about e2fsprogs) |
m (git commands revisited) |
||
Line 3: | Line 3: | ||
## Either get it from [ftp://ftp.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs-interim/ kernel.org] or | ## 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]: | ## 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 | + | $ git clone git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git |
− | cd e2fsprogs | + | $ cd e2fsprogs |
− | git checkout -b pu | + | $ 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 | ||
3. We're still using '<tt>mkfs.ext3 /dev/DEVICE</tt>' to create the filesystem<br> | 3. We're still using '<tt>mkfs.ext3 /dev/DEVICE</tt>' to create the filesystem<br> | ||
4. To mount the partition as Ext4: | 4. To mount the partition as Ext4: |
Revision as of 22:58, 6 January 2008
- 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
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.