Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,785,416 Members 39,001 Now Online
XDA Developers Android and Mobile Development Forum

ROM Developers: Please switch to ext3 for a2sd!

Tip us?
 
cyanogen
Old
(Last edited by neoobs; 2nd June 2009 at 03:19 PM.)
#1  
cyanogen's Avatar
Retired Recognized Developer - OP
Thanks Meter 5,692
Posts: 2,485
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, 2757 views)
The Following User Says Thank You to cyanogen For This Useful Post: [ Click to Expand ]
Joeriginal Old
#2  
Guest
Thanks Meter 0
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 21
Posts: 984
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 3
ROM: Stainless
Recovery: TWRP


Hers
Phone: Galaxy S III
ROM: CM11
Recovery: TWRP


Gtalk: oppositeofh2o

Dropbox - Sign up for free!
 
sir*mez
Old
#4  
sir*mez's Avatar
Senior Member
Thanks Meter 198
Posts: 1,168
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: TMobile
Phone: nexus 5 32gb White
Phone: nexus 5 16gb Black
Tablet: nexus 7 2013 32gb
Phone: nexus 4 16gb
Current
Rom: SlimKat/Mahdi
Kernel: franco.Kernel
Recovery: TWRP
Follow me on: Twitter: SiR_Mez, Google+: Link

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
 
Henchman
Old
#5  
Senior Member
Thanks Meter 6
Posts: 811
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
Retired Recognized Developer - OP
Thanks Meter 5,692
Posts: 2,485
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 17
Posts: 372
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 3,836
Posts: 7,698
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 17
Posts: 372
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"

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes