Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
cyanogen
Old
(Last edited by neoobs; 2nd June 2009 at 03:19 PM.)
#1  
cyanogen's Avatar
Recognized Developer - OP
Thanks Meter 5461
Posts: 2,486
Join Date: Jan 2009
Location: Seattle

 
DONATE TO ME
Default ROM Developers: Please switch to ext3 for a2sd!

99% of the problems users are having with Apps2SD are caused by the unclean shutdown of the ext2 filesystem, because Android does not unmount it when rebooting or shutting down the system, and there are no tools on the device to fsck the filesystem on boot. Ext3 is journaled and this isn't an issue because the journal will simply replay on boot.

I'd like to put an end to this.

Attached is e2fsprogs (tune2fs, e2fsck, resize2fs, and mke2fs) built for Android/ARM. You should also use the "-t auto" mount option so that it's still backwards compatible with ext2.

To convert your ext2 to ext3, you can simply run "tune2fs -j /dev/block/mmcblk0p2" after you have these tools on your device, and reboot (assuming your ramdisk allows for mounting as "auto"). You should unmount and e2fsck the partition first, if it's not been checked for errors.

Step by step by neoobs
Attached Files
File Type: zip e2fsprogs.zip - [Click for QR Code] (197.3 KB, 2342 views)
The Following User Says Thank You to cyanogen For This Useful Post: [ Click to Expand ]
Joeriginal Old
#2  
Guest
Thanks Meter
Posts: n/a
can we have a noob-friendly guide to this preferably through terminal.
 
Beast84
Old
#3  
Beast84's Avatar
Senior Member
Thanks Meter 16
Posts: 917
Join Date: Oct 2007
Location: Albuquerque

 
DONATE TO ME
Quote:
Originally Posted by cyanogen View Post
99% of the problems users are having with Apps2SD are caused by the unclean shutdown of the ext2 filesystem, because Android does not unmount it when rebooting or shutting down the system, and there are no tools on the device to fsck the filesystem on boot. Ext3 is journaled and this isn't an issue because the journal will simply replay on boot.

I'd like to put an end to this.

Attached is e2fsprogs (tune2fs, e2fsck, resize2fs, and mke2fs) built for Android/ARM. You should also use the "-t auto" mount option so that it's still backwards compatible with ext2.

To convert your ext2 to ext3, you can simply run "tune2fs -j /dev/block/mmcblk0p2" after you have these tools on your device, and reboot (assuming your ramdisk allows for mounting as "auto"). You should unmount and e2fsck the partition first, if it's not been checked for errors.
Will this work with ADP JF1.5?

Before I try it, let me get a few things straing. I have to put these files in the corresponding folders, reflash, then type type the commands from terminal on the phone? Or does this have to be done with adb?
His
Phone: Galaxy Note II
ROM: CM10.1
Recovery: TWRP


Hers
Phone: Galaxy S III
ROM: Stock Rooted
Recovery: TWRP


Gtalk: oppositeofh2o

Dropbox - Sign up for free!
 
sir*mez
Old
#4  
sir*mez's Avatar
Senior Member
Thanks Meter 106
Posts: 1,066
Join Date: Nov 2007
Location: NYC

 
DONATE TO ME
Quote:
Originally Posted by Beast84 View Post
Will this work with ADP JF1.5?

Before I try it, let me get a few things straing. I have to put these files in the corresponding folders, reflash, then type type the commands from terminal on the phone? Or does this have to be done with adb?
its already working for ADP. I have both my phones running on EXT3 and I havent found a problem. Its more reliable and I have gotten a Force Close or Wait screen with all the speed his build has.
Provider: •T•••Mobile
Phone: Google neXus 4
Rom: Cyanogenmod
Recovery: TWRP
Kernel: franco.Kernel
My Previous Work
Old G1: Click here to ENABLE HOME AUTO ROTATE
Old G1: Click here for M_Blend Theme
Old G1: Click here for PrOdigal_SuN Theme
Follow me on: Twitter: SiR_Mez, Google+: Link
Android OG, Android Mafia, #teamandroid
 
Henchman
Old
#5  
Senior Member
Thanks Meter 6
Posts: 801
Join Date: Mar 2007
Location: Sherman oaks
Quote:
Originally Posted by cyanogen View Post

To convert your ext2 to ext3, you can simply run "tune2fs -j /dev/block/mmcblk0p2" after you have these tools on your device, and reboot (assuming your ramdisk allows for mounting as "auto"). You should unmount and e2fsck the partition first, if it's not been checked for errors.
Huh?
Can you explain this in English please?
 
cyanogen
Old
#6  
cyanogen's Avatar
Recognized Developer - OP
Thanks Meter 5461
Posts: 2,486
Join Date: Jan 2009
Location: Seattle

 
DONATE TO ME
Quote:
Originally Posted by Henchman View Post
Huh?
Can you explain this in English please?
I mainly intended this for other ROM makers, so they can incorporate these features into cooked ROMs.
 
djdeviance
Old
#7  
Senior Member
Thanks Meter 15
Posts: 366
Join Date: Sep 2007
So this basically means all of us with ext2 partitions will have to get a new card or is there anyways for us to convert to ext3?
Rocking the Amaze 4g S-Off ICS and Sidekick 4g

N1 ICS

Unrooted myTouch 3G Slide black [Lost]

[Deceased]T-Mobile Black myTouch 32b CM6 (Sons playphone lol)
[Deceased]T-Mobile Wing running ttran's OTP 7.7 Manilla 2D
Overclocked @ 286
[Deceased]T-Mobile G1 Bronze and Silver running Twisteds Evolution's
[Deceased]T-Mobile G1 Black - Cyanogen 4.2.15.1
 
pershoot
Old
#8  
Recognized Developer
Thanks Meter 3338
Posts: 7,291
Join Date: Dec 2008
Quote:
Originally Posted by djdeviance View Post
So this basically means all of us with ext2 partitions will have to get a new card or is there anyways for us to convert to ext3?
please re-read the first post.

"To convert your ext2 to ext3, you can simply run "tune2fs -j /dev/block/mmcblk0p2" ....
 
djdeviance
Old
#9  
Senior Member
Thanks Meter 15
Posts: 366
Join Date: Sep 2007
Quote:
Originally Posted by pershoot View Post
please re-read the first post.

"To convert your ext2 to ext3, you can simply run "tune2fs -j /dev/block/mmcblk0p2" ....
Yes I did read that and tried as well. Was unsuccessful that why I asked.
Rocking the Amaze 4g S-Off ICS and Sidekick 4g

N1 ICS

Unrooted myTouch 3G Slide black [Lost]

[Deceased]T-Mobile Black myTouch 32b CM6 (Sons playphone lol)
[Deceased]T-Mobile Wing running ttran's OTP 7.7 Manilla 2D
Overclocked @ 286
[Deceased]T-Mobile G1 Bronze and Silver running Twisteds Evolution's
[Deceased]T-Mobile G1 Black - Cyanogen 4.2.15.1
 
arqueware
Old
#10  
arqueware's Avatar
Junior Member
Thanks Meter 0
Posts: 23
Join Date: Dec 2008
Location: A-town
Default Premature SD failure from frequent journal commits?

I wondered why this solution wasn't inplemented from the beginning. However, In one of the threads on A2SD, I read that moving /DATA/DATA to SD would negatively affect the longevity of the SD cards because of the frequent write/re-write cycles of files in that directory, particularly sqlite database commits . One contributor suggested that a using a journalled filesystem in this context would have a similar effect in that there would be repeated writes to the specific area of the SD where the journal is stored.

Any thoughts on this?

Devices:

HTC Vision; Gingerbread (2.3.7), S-Off
Archos 8" G9; Honeycomb (3.2.1), SDE

--
"You's a penguin-lookin' muthaphukka

--Dr. Dre, "The Chronic"

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Auto Test Your Android Apps with Robotium

You’ve just finished coding your very first app, but before you release it to the wild, you … more

Open Source CPU Info App for Windows

So you’re playing with your shiny new Windows 8 tablet PC, when one of your like-minded geeky … more

Guide to Using Adobe Air on Android

When writing an app with performance in mind, you most likely want to write it native code using the … more