Jump to content


Photo

UPDATED : Real fix for the "stalling/lagging" problem


  • Please log in to reply
434 replies to this topic

#1
mimocan

mimocan

    Newbie

  • Members
  • Pip
  • 38 posts
I have made a custom kernel to mount an ext3 partition on the sdcard at the boot time.

to be able to use it:

-- you need an external sdcard: partitioned as follows:
- partition 1 (fat32) / for your storage needs
- partition 2 (ext3) / for program database

This implies that instead of making a symlink to the /dbdata directory, you will make a symlink to the ext3 partition on the sdcard.

Advantages:

-- you have the freedom of creating that partition for your needs.It is reported that you have market download problems if you make it too big, ie larger than 2gb. ( mine is 1gb)
-- after applying the lag fix posted on the forum I still had that lagging after a while, but now my phone is flying

If I am allowed to post it here I will do that. Maybe Paul can shine on this.

And here it is:

Prerequisites:

-- an external sd card partitioned in 2
-- the ext3 partition must be the 2nd one, otherwise this won't work, so Partition 1 ishould be fat32, and partition 2 ext3
-- use gparted or paragon hard disk manager to make the partitions and format them (just google how to do this)

How to:

-- download the tar file attached to this post, this includes the modified kernel which supports ext3 and automounts the ext3 partition when you restart your phone
-- put the phone in download mode, just like updating the firmware
-- fire up Odin and attach the phone to the USB

-- choose only the PDA section and put the downloaded tar into there ( do NOT choose repartition or something else otherwise you will use settings)
-- it should finish within 5 seconds and wait till the phone is booted

when booted (assuming you already have busybox)

adb shell
su -
busybox cp -rp /data/data /disk/
busybox mv /data/data /data/data.bak
busybox ln -s /disk/data /data/data

to fix market issues:
busybox mv /system/media /disk/
busybox ln -s /disk/media /system/media
reboot

when booted you should see your 2nd partition of your external sdcard is mounted on /disk and your program database in residing in it.

If you do it like this you won't loose any personal data or settings.

Remember this does not depend on any specific firmware, so you are free to try it to on any firmware

If you want to try out the kernel with ext4 support I have attached it below. The same steps should be taken to mount the 2nd partition as ext4, but create the partition as ext4.

My personal experience and benchmark results are showing ext4 is faster than ext3. But ext3 is there for many years and ext4 is stable stated from kernel versions 2.6.3x.

Download v3:

http://www.multiupload.com/5QAVQBU6GB

Download v4 (ext4) support:

http://www.multiupload.com/Z8TGXRRNCS

gr, Mimo from Holland

Edited by mimocan, 14 July 2010 - 04:08 PM.

  • 0

#2
bratfink

bratfink

    Newbie

  • Members
  • Pip
  • 11 posts
  • Devices:HTC Hero, Pulse, Galaxy S
If you upload it to multi-upload you could just put the link up. I look forward to downloading it. Could you also post instructions of exactly how to do so... damn these things would be so much easier with an decent recovery image on our devices....... anyone care to make one :)?

  • 0

#3
lp1527

lp1527

    Newbie

  • Members
  • Pip
  • 26 posts
  • Devices:Nexus 1
Any further details on this? Would love to try... also, will this work on the T-Mobile US Vibrant variant?

  • 0

#4
Darkstriker

Darkstriker

    Newbie

  • Members
  • Pip
  • 22 posts
  • Devices:Samsung Galaxy S
How about posting this on xda? http://forum.xda-dev...splay.php?f=665

PS: I can host the files you need on my mirror

Edited by Darkstriker, 12 July 2010 - 09:46 PM.

  • 0
Samsung Galaxy S running Doc's V6.1 with Advanced Voodoo v69.2

Samsung Galaxy S GT-I9000 FAQ/Flash HOWTO (on xda)
Samsung Galaxy S GT-I9000 File Mirror

#5
aeo087

aeo087

    Regular

  • Members
  • PipPip
  • 67 posts
  • Location:Oregon
  • Interests:Computer engineering, software, android development
  • Devices:Galaxy S
  • Twitter:@aeo087

I have made a custom kernel to mount an ext3 partition on the sdcard at the boot time.

to be able to use it:

-- you need an external sdcard: partitioned as follows:
- partition 1 (fat32) / for your storage needs
- partition 2 (ext3) / for program database

This implies that instead of making a symlink to the /dbdata directory, you will make a symlink to the ext3 partition on the sdcard.

Advantages:

-- you have the freedom of creating that partition for your needs ( mine is 1gb)
-- after applying the lag fix posted on the forum I still had that lagging after a while, but now my phone is flying

If I am allowed to post it here I will do that. Maybe Paul can shine on this.

gr, Mimo from Holland


This sounds very interesting. Please share when you can so we can test this out; if this is works that means buying a fast SD-card would directly benefit your phone's speed!! :) That would make it worth the investment....
I do have some questions, however:
How is this different to what Samsung did having the data in a partition of the internal SD card?
Aren't the lags more related to access-times than memory speed?

  • 0

#6
Kilack

Kilack

    Enthusiast

  • Members
  • PipPipPip
  • 189 posts
  • Devices:nexus 1
What kind of card did you use? class 6? class 10?

and maybe paul can add this into the kitchen if it indeed works :)

Edited by Kilack, 12 July 2010 - 11:23 PM.

  • 0

#7
Kahnmao

Kahnmao

    Newbie

  • Members
  • Pip
  • 6 posts

What kind of card did you use? class 6? class 10?

and maybe paul can add this into the kitchen if it indeed works :)



need edit init.rc when bootting auto mount sdcard\sd\ P2(ext3)

(but it wil restore at next reboot )


so...can't do that

  • 0

#8
mimocan

mimocan

    Newbie

  • Members
  • Pip
  • 38 posts

need edit init.rc when bootting auto mount sdcard\sd\ P2(ext3)

(but it wil restore at next reboot )
so...can't do that


This is why I made my own custom kernel to ensure it gets mounted when you reboot.

  • 0

#9
mimocan

mimocan

    Newbie

  • Members
  • Pip
  • 38 posts

How about posting this on xda? http://forum.xda-dev...splay.php?f=665

PS: I can host the files you need on my mirror


on XDA I am not allowed to post any external links.

I can definitely make use of your mirror, thanks for offering.

  • 0

#10
speedofheat

speedofheat

    Newbie

  • Members
  • Pip
  • 8 posts
  • Gender:Male
  • Devices:Samsung Galaxy S II
Looks very promising. Thanks a ton mimocan.

Too bad I need to root my phone for this. I flashed my first firmware yesterday from that sammy FW site but am still too chicken to try rooting my beauty. :)

  • 0

#11
vaioboy

vaioboy

    Newbie

  • Members
  • Pip
  • 4 posts
  • Devices:Samsung Galaxy S GT-i9000
Hi, what is the command to mount ext3 partition?

  • 0

#12
mimocan

mimocan

    Newbie

  • Members
  • Pip
  • 38 posts

Looks very promising. Thanks a ton mimocan.

Too bad I need to root my phone for this. I flashed my first firmware yesterday from that sammy FW site but am still too chicken to try rooting my beauty. :D


you don't need to root your phone to do this, rooting is already provided in the kernel :) but you need to have the busybox tools...

Edited by mimocan, 13 July 2010 - 06:25 AM.

  • 0

#13
rasp

rasp

    Newbie

  • Members
  • Pip
  • 20 posts
  • Devices:HTC Desire

you don't need to root your phone to do this, rooting is already provided in the kernel :) but you need to have the busybox tools...


a few questions:
1) is this based off first source code or later source code posted recently?
2) planning to expand the work to include custom kernel mods? like OC/UV stuff?
3) can you provide rooted adb?

Edited by rasp, 13 July 2010 - 06:59 AM.

  • 0

#14
torsten2010

torsten2010

    Newbie

  • Members
  • Pip
  • 2 posts
Runs really smooth. But i get when i want to install something from market the error "not enough space for the installation". can reproduce this on 2 mobiles.

  • 0

#15
speedofheat

speedofheat

    Newbie

  • Members
  • Pip
  • 8 posts
  • Gender:Male
  • Devices:Samsung Galaxy S II

you don't need to root your phone to do this, rooting is already provided in the kernel :) but you need to have the busybox tools...

Thanks.

Now to install busybox.

  • 0

#16
Bizzie

Bizzie

    Newbie

  • Members
  • Pip
  • 12 posts
  • Devices:Samsung Galaxy S
Sounds like a great solution, but what will happen when you connect the Galaxy to USB ? Normally the internal and external SD will be dismounted for USB access. Isn't that a problem?

Edited by Bizzie, 13 July 2010 - 07:07 AM.

  • 0

#17
torsten2010

torsten2010

    Newbie

  • Members
  • Pip
  • 2 posts
So testet now on 3 phones. There is definttily a bug with this fix & market-you get a error not enough space for isntallation and it won't install any app.
The Problem i think is the write permision on /disk
if you compare this to the /data/data permissions.

Edited by torsten2010, 13 July 2010 - 07:18 AM.

  • 0

#18
mimocan

mimocan

    Newbie

  • Members
  • Pip
  • 38 posts

So testet now on 3 phones. There is definttily a bug with this fix & market-you get a error not enough space for isntallation and it won't install any app.


Ok.

I think I know what the problem is. There is not enough room in the /system partition.

we will make some room there, here it goes:

adb shell
su -
mount -o remount,rw rootfs /
mv /system/media /disk
ln -s /disk/media /system/media


this should fix the bug.

  • 0

#19
rasp

rasp

    Newbie

  • Members
  • Pip
  • 20 posts
  • Devices:HTC Desire

So testet now on 3 phones. There is definttily a bug with this fix & market-you get a error not enough space for isntallation and it won't install any app.

did you try to move /data/data/com.android.vending out from ext3 to mmcblkp02?

  • 0

#20
oxylos

oxylos

    Newbie

  • Members
  • Pip
  • 11 posts
  • Devices:Galaxy S
What firmware version is the kernel based on or it is independent?

Do you have to rebuild the kernel every new firmware is released?

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users