Welcome to the Android Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 21 of 21
Like Tree1Likes
  • 1 Post By Joeseph Mother
  1. Thread Author  Thread Author    #1  

    Default Converting filesystem to ext4

    Hey guys. I was just reading about how Gingerbread is now using ext4 as the filesystem instead of yaffs2. I also just read about some devs getting FroYo to work with ext4 as the filesystem... So, wouldn't it be cool to have our phones using ext4 instead of yaffs2?

    Benefits/more details about this: Yaffs Vs Ext4 | The Android Phone

    Anyone want to join in on this? Note I won't be trying this out until I get AOSP/CyanogenMod working first.
  2. #2  
    hamagc's Avatar

    Posts
    583 Posts
    Global Posts
    608 Global Posts
    ROM
    Stock - Maybe OC Kernel

    Default

    well thats interesting.

    once you get aosp working i'll be glad to help however i can.
  3. #3  

    Default

    Didn't Ksmith or beezy do this? I remember they posted a pic of a "friends"phone lol

    Sent from my LS670 using Tapatalk
  4. #4  
    Nick7's Avatar
    Brick Master

    Posts
    1,039 Posts
    ROM
    CM7

    Default

    I was working on converting to ext2
    [/URL]
  5. Thread Author  Thread Author    #5  

    Default

    Quote Originally Posted by Nick7 View Post
    I was working on converting to ext2
    Eh, ext2 wouldn't be such a good idea (imo). If you don't do ext4, then ext3 would be better. I only say that because ext2 lacks journaling support, so in the case of a sudden, improper shutdown, the ROM (as well as anything else that is formatted ext2) might get fubar'd. ext3 adds journaling support, and ext4 just supports larger directory trees, as well as a slight performance boost. I'm kind of thinking a JFS filesystem would be good, since it handles smaller files (like what is in Android) more efficiently.
  6. #6  
    Nick7's Avatar
    Brick Master

    Posts
    1,039 Posts
    ROM
    CM7

    Default

    Quote Originally Posted by mrinehart93 View Post
    Eh, ext2 wouldn't be such a good idea (imo). If you don't do ext4, then ext3 would be better. I only say that because ext2 lacks journaling support, so in the case of a sudden, improper shutdown, the ROM (as well as anything else that is formatted ext2) might get fubar'd. ext3 adds journaling support, and ext4 just supports larger directory trees, as well as a slight performance boost. I'm kind of thinking a JFS filesystem would be good, since it handles smaller files (like what is in Android) more efficiently.
    There are scripts that can check at boot time. Worked well on the Samsung Moment.
    [/URL]
  7. Thread Author  Thread Author    #7  

    Default

    Quote Originally Posted by Nick7 View Post
    There are scripts that can check at boot time. Worked well on the Samsung Moment.
    Even though the scripts can check for corruption, they wouldn't be able to repair the corrupted files would they?
  8. #8  
    beezy's Avatar

    Posts
    2,457 Posts
    Global Posts
    2,458 Global Posts
    ROM
    Extra Crispy

    Default

    Ive been messing around with this since day one.Here's how i think about it. Ext 2 is nice and everything should work but you have to much of a chance lossing data or corrupting the sdcard. Ext 3 is okay but the journaling just seems to bog down to much. Ext 4 works great for this IF the sdcard is higher class,maily something like class 10,class6 is the lowest i would go at all.
  9. Thread Author  Thread Author    #9  

    Default

    Quote Originally Posted by beezy View Post
    Ive been messing around with this since day one.Here's how i think about it. Ext 2 is nice and everything should work but you have to much of a chance lossing data or corrupting the sdcard. Ext 3 is okay but the journaling just seems to bog down to much. Ext 4 works great for this IF the sdcard is higher class,maily something like class 10,class6 is the lowest i would go at all.
    ... Why would the sdcard matter lol? We're talking about (or at least I am) about changing the internal flash memory filesystem to ext2/3/4, not the sdcard.
  10. #10  
    beezy's Avatar

    Posts
    2,457 Posts
    Global Posts
    2,458 Global Posts
    ROM
    Extra Crispy

    Default

    Quote Originally Posted by mrinehart93 View Post
    ... Why would the sdcard matter lol? We're talking about (or at least I am) about changing the internal flash memory filesystem to ext2/3/4, not the sdcard.
    Oops,call my last reply a blonde moment.lol Then yes i agree with you 100% if i were to use any it would be ext4.
  11. Thread Author  Thread Author    #11  

    Default

    Quote Originally Posted by beezy View Post
    Oops,call my last reply a blonde moment.lol Then yes i agree with you 100% if i were to use any it would be ext4.
    Haha. So what do you think we could do with this? Is it possible? I'm sure we could implement it sort of like the firerat MTD partition mod.
  12. #12  

    Default

    Beezy can you explain how you do that?

    Sent from my LS670 using Tapatalk
  13. #13  
    beezy's Avatar

    Posts
    2,457 Posts
    Global Posts
    2,458 Global Posts
    ROM
    Extra Crispy

    Default

    Quote Originally Posted by mrinehart93 View Post
    Haha. So what do you think we could do with this? Is it possible? I'm sure we could implement it sort of like the firerat MTD partition mod.
    Anything is possible with android,you know that from messing with the hero. That phone did things people only dreamed it could do.I bet there is away to do it along the lines of how firerat is done.I haven't messed around with it as much lately as i was cause i had so many things going that i thought i would never get caught up.lol Im going to start focusing more on it now and see what all we can come up with.

    Quote Originally Posted by olmos.lalo View Post
    Beezy can you explain how you do that?

    Sent from my LS670 using Tapatalk
    That's more of a hack done with a sdcard which is being worked on and getting fine toned, this will require the high class sdcard like i was talking about earlier.It's not to far from being out in the wild
  14. #14  
    Nick7's Avatar
    Brick Master

    Posts
    1,039 Posts
    ROM
    CM7

    Default

    Quote Originally Posted by mrinehart93 View Post
    Even though the scripts can check for corruption, they wouldn't be able to repair the corrupted files would they?
    Well I'm sure they could. On the Moment we had kernel level checks at boot that checked for consistency and then repaired if necessary. I don't see why a script couldn't do that.
    [/URL]
  15. #15  

    Default

    I just set up the kernels & recoveries for the samsung intercept & acclaim to convert from rfs, on both of those what I've recommended & people have liked is going to ext2 for system, and ext4 for data and cache. Ext2 is only volatile on writing, and system is read-only 95% of the time, so the chances of corruption that way are low. The problem we may run into is the same problem I had trying to resize the partitions, the bootloader on the hero, evo, & others that allow resizing is unlocked, I'm not sure if ours has been.
    Thanked by:
    ikeywatson likes this.
  16. #16  

    Default

    Definitely a cool project. I know I'd personally like seeing system at ext3 at a minimum but preferably ext4. Either way this would be cool to see happen.
    [CENTER][URL="https://plus.google.com/u/0/+KPSmith/posts"]Follow me on Google +
  17. #17  
    HKM
    HKM is offline
    HKM's Avatar
    Banned

    Posts
    95 Posts
    Global Posts
    94 Global Posts

    Default

    Take it from someone who been using *nix for ages ext2/ext3/ext4. I am not sure where you folks are getting your infos from as I have managed and operated 28.1TB NSS at home. All channeled from JFS2 > XFS > ZFS and then later converted to ext3 (now ext4). Never came across anything other few PNG based files which was originally compressed with tar when ran xvfz came out corrupted could be also due to using it in flash media :O which was using hardware based MG2 encryption on shadow slice.
  18. #18  
    simon.ponder's Avatar

    Posts
    442 Posts
    Global Posts
    443 Global Posts
    ROM
    Bugless Beast Nightly

    Default Corruption

    Quote Originally Posted by HKM View Post
    Take it from someone who been using *nix for ages ext2/ext3/ext4. I am not sure where you folks are getting your infos from as I have managed and operated 28.1TB NSS at home. All channeled from JFS2 > XFS > ZFS and then later converted to ext3 (now ext4). Never came across anything other few PNG based files which was originally compressed with tar when ran xvfz came out corrupted could be also due to using it in flash media :O which was using hardware based MG2 encryption on shadow slice.
    So in English not 'Unish', you are saying that most corruption came from image files that were compressed?
    "I love talking about nothing. It is the only thing I know anything about." - Oscar Wilde
  19. #19  
    chinochino360's Avatar

    Posts
    13 Posts
    ROM
    Lost track(rom junkie)

    Default

    And i was starting to feel bad cause this device wasn't getting enough development, like with my old hero. But alas I was wrong... This my friends
    will be a fun and interesting journey.
  20. #20  
    trekkie1701c's Avatar

    Posts
    275 Posts
    ROM
    CM10

    Default

    Would be interesting to see how much of a performance boost it would give. :P Kinda been curious as to how to do it myself. Figure you'd lose all data in doing so, but a wipe every now and then usually doesn't hurt.
  21. Thread Author  Thread Author    #21  

    Default

    Quote Originally Posted by Joeseph Mother View Post
    I just set up the kernels & recoveries for the samsung intercept & acclaim to convert from rfs, on both of those what I've recommended & people have liked is going to ext2 for system, and ext4 for data and cache. Ext2 is only volatile on writing, and system is read-only 95% of the time, so the chances of corruption that way are low. The problem we may run into is the same problem I had trying to resize the partitions, the bootloader on the hero, evo, & others that allow resizing is unlocked, I'm not sure if ours has been.
    Can you tell us how you did that then? I know how to enable different filesystem support in the kernel, but I'm not sure how to get the recovery to convert the filesystems.

Posting Permissions