Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ext2 VS ext3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
edcjones
n00b
n00b


Joined: 04 Jul 2002
Posts: 60

PostPosted: Wed Dec 04, 2002 3:12 am    Post subject: ext2 VS ext3 Reply with quote

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
View user's profile Send private message
gfunkmonk
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2002
Posts: 129
Location: Freelandville, IN

PostPosted: Wed Dec 04, 2002 4:31 am    Post subject: Reply with quote

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
View user's profile Send private message
matthead
n00b
n00b


Joined: 04 Dec 2002
Posts: 63

PostPosted: Wed Dec 04, 2002 6:25 am    Post subject: dir_index feature Reply with quote

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
View user's profile Send private message
li1_getoo
l33t
l33t


Joined: 20 Oct 2002
Posts: 661
Location: Queens , NY

PostPosted: Wed Dec 04, 2002 6:51 am    Post subject: Reply with quote

ext3 is a little better ,uses journaling if u use make sure u compile it in ur kernel :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum