| View previous topic :: View next topic |
| Author |
Message |
edcjones n00b

Joined: 04 Jul 2002 Posts: 60
|
Posted: Wed Dec 04, 2002 3:12 am Post subject: ext2 VS ext3 |
|
|
I am trying to change my ext3 partitions to ext2. According to dumpe2fs, the ext3 partitions have features "dir_index" and "has_journal". The ext2 partitions have neither. "tune2fs -O ^has_journal /dev/hdxx" got rid of the "has_journal". What are the differences between the ext2 and ext3 filesystems? How do I convert _completely_ to ext2? How to get rid of the "dir_index". Do I need to? _________________ Python, Swig & computer vision |
|
| Back to top |
|
 |
gfunkmonk Tux's lil' helper


Joined: 10 Jul 2002 Posts: 129 Location: Freelandville, IN
|
Posted: Wed Dec 04, 2002 4:31 am Post subject: |
|
|
I think all you have to do is the:
tune2fs -O ^has_journal /dev/hdxx
then change your FSTAB from ext3 to ext2. _________________ Slackware is Gentoo's bitch. |
|
| Back to top |
|
 |
matthead n00b

Joined: 04 Dec 2002 Posts: 63
|
Posted: Wed Dec 04, 2002 6:25 am Post subject: dir_index feature |
|
|
You get rid of dir_index the same way you removed has_journal:
| Code: | | tune2fs "-O^dir_index" |
You should run e2fsck on the filesystems you change, too.
ext3 is ext2 plus journalling. That's it. The dir_index feature tells the kernel to use htree directories if they are enabled in-kernel. Unless you specifically patched your kernel to include them it won't - the htree support is still too new for anyone to be including it by default. The reason your filesystems have the feature is that a few versions of mke2fs (1.29 is one of them, I think) set the feature by default on new filesystems. If you're not using htree, you should remove the dir_index.
Edit:
Looking at another thread I see that Gentoo's kernel might include buggy htree code. In that case, I'd say you should definitely remove the dir_index feature and run e2fsck -f, unless you want to play with patching your kernel and test the htree code.
--
-Matt |
|
| Back to top |
|
 |
li1_getoo l33t


Joined: 20 Oct 2002 Posts: 661 Location: Queens , NY
|
Posted: Wed Dec 04, 2002 6:51 am Post subject: |
|
|
ext3 is a little better ,uses journaling if u use make sure u compile it in ur kernel  |
|
| Back to top |
|
 |
|