Ext4 Howto

From Ext4
(Difference between revisions)
Jump to: navigation, search
m (git commands revisited)
(forgot the "pu" on the 2nd pull; formatting fixes)
Line 5: Line 5:
 
         $ 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 <font color="red">pu</font>
 
         Switched to a new branch "pu"
 
         Switched to a new branch "pu"
 
         $ git branch  
 
         $ git branch  
 
         master
 
         master
 
         * pu
 
         * pu
         $ git pull git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
+
         $ git pull git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git <font color="red">pu</font>
3. We're still using '<tt>mkfs.ext3 /dev/DEVICE</tt>' to create the filesystem<br>
+
3. We're still using '<tt>mkfs.ext<font color="red">3</font> /dev/DEVICE</tt>' to create the filesystem<br>
 
4. To mount the partition as Ext4:
 
4. To mount the partition as Ext4:
 
   mount -t ext4dev /dev/DEV /wherever
 
   mount -t ext4dev /dev/DEV /wherever
Line 20: Line 20:
  
 
NOTE:
 
NOTE:
* Once mounted with <tt>-o extents</tt>, the partition cannot mounted with <tt>-t ext3</tt> any more!
+
* Once mounted with <tt>-o extents</tt>, the partition '''cannot''' be 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.
 
* 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 23:20, 2 March 2008

  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
       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.
Personal tools