Learn More About Linux with Linux Man Pages

Linux is quite a powerful and very configurable operating system. Thanks to some user-friendly … more

Detect, Avoid IMSI-Catcher Attacks with Android IMSI-Catcher Detector

Privacy is always an important topic, as well as a delicate one to … more

Materialized LeanDroid Fights Your Poor Battery Life

Battery life has always been one of the biggest problems facing most Android devices. … more

Bump! Workaround for the LG G3 Locked Bootloader – XDA TV

The LG G3 is a power house device. It’s been a favorite of many people. … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

ROM Developers: Please switch to ext3 for a2sd!

OP cyanogen

30th May 2009, 05:51 PM   |  #1  
cyanogen's Avatar
OP Retired Recognized Developer
Flag Seattle
Thanks Meter: 5,712
 
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, 2858 views)
Last edited by neoobs; 2nd June 2009 at 04:19 PM.
The Following 3 Users Say Thank You to cyanogen For This Useful Post: [ View ]
Joeriginal
30th May 2009, 07: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, 07:30 PM   |  #3  
Beast84's Avatar
Senior Member
Flag Albuquerque
Thanks Meter: 23
 
1,002 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, 09:23 PM   |  #4  
sir*mez's Avatar
Senior Member
Flag NYC
Thanks Meter: 200
 
1,174 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, 09: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, 09:30 PM   |  #6  
cyanogen's Avatar
OP Retired Recognized Developer
Flag Seattle
Thanks Meter: 5,712
 
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, 09: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, 09:59 PM   |  #8  
Recognized Developer
Thanks Meter: 3,873
 
7,739 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, 10: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, 10: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