Nova Launcher Update Brings Lollipop Functionality and Feel

One of the most popular third party launcher on Android, Nova Launcher, has just … more

Check Your I/O Usage with Iotop for Android

Ever needed to check the I/O usage of apps? If so, you probably tried searching for an iotop … more

T-Mobile HTC One M8 Gets Selfie-Friendly Android 4.4.4 OTA

The T-Mobie variant of HTC One (M8) just now received an over-the-air update … more

Android L is for Lockdown

Root is, without a doubt, the (un)holy grail of the Android world. Those wonderful permissions that allow you as … more
Post Reply

ROM Developers: Please switch to ext3 for a2sd!

OP cyanogen

30th May 2009, 04:51 PM   |  #1  
cyanogen's Avatar
OP Retired Recognized Developer
Flag Seattle
Thanks Meter: 5,708
 
2,485 posts
Join Date:Joined: Jan 2009
Donate to Me
More
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, 2814 views)
Last edited by neoobs; 2nd June 2009 at 03:19 PM.
The Following 2 Users Say Thank You to cyanogen For This Useful Post: [ View ]
Joeriginal
30th May 2009, 06:20 PM   |  #2  
Guest
Thanks Meter: 0
 
n/a posts
can we have a noob-friendly guide to this preferably through terminal.
30th May 2009, 06:30 PM   |  #3  
Beast84's Avatar
Senior Member
Flag Albuquerque
Thanks Meter: 22
 
1,000 posts
Join Date:Joined: Oct 2007
Donate to Me
More
Quote:
Originally Posted by cyanogen

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?
30th May 2009, 08:23 PM   |  #4  
sir*mez's Avatar
Senior Member
Flag NYC
Thanks Meter: 199
 
1,170 posts
Join Date:Joined: Nov 2007
Donate to Me
More
Quote:
Originally Posted by Beast84

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.
30th May 2009, 08:26 PM   |  #5  
Senior Member
Flag Sherman oaks
Thanks Meter: 6
 
811 posts
Join Date:Joined: Mar 2007
More
Quote:
Originally Posted by cyanogen


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?
30th May 2009, 08:30 PM   |  #6  
cyanogen's Avatar
OP Retired Recognized Developer
Flag Seattle
Thanks Meter: 5,708
 
2,485 posts
Join Date:Joined: Jan 2009
Donate to Me
More
Quote:
Originally Posted by Henchman

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.
30th May 2009, 08:53 PM   |  #7  
Senior Member
Thanks Meter: 17
 
372 posts
Join Date:Joined: Sep 2007
More
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?
30th May 2009, 08:59 PM   |  #8  
Recognized Developer
Thanks Meter: 3,857
 
7,728 posts
Join Date:Joined: Dec 2008
Quote:
Originally Posted by djdeviance

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" ....
30th May 2009, 09:04 PM   |  #9  
Senior Member
Thanks Meter: 17
 
372 posts
Join Date:Joined: Sep 2007
More
Quote:
Originally Posted by pershoot

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.
30th May 2009, 09:06 PM   |  #10  
arqueware's Avatar
Junior Member
Flag Atlanta
Thanks Meter: 0
 
25 posts
Join Date:Joined: Dec 2008
More
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?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes