[FIX][SCRIPT] Fixed zram for franco 2.6.32.x kernels (v18,v19) plus remount speedups

dr.notor

Senior Member
Jul 25, 2011
720
354
0
If you do not know what is this about and do not have any problems, leave the scripts alone and go on with your life.

Attached.

1a. Fixed zram.zip for franco kernels v18/v19

Fixed by removing the 00remount script from /system/etc/init.d, since it messes up with boot on phones with DT's apps2sd (and probably other similar scripts) - a2sd fails to mount sd-ext partition, phone "hangs" on LG logo.

If you are already stuck after flashing franco's original zram.zip due to this issue, then go to recovery, mount /system there, and

Code:
> adb shell
# rm -f /system/etc/init.d/00remount
# exit
> adb reboot
Alternatively, flash remove-zram.zip and reboot. This will remove ZRAM altogether.

There is no ZRAM support on franco's 2.6.35.x (v1) kernels, flashing this there is absolutely useless
1b. remove-zram.zip: Removes ZRAM. Deletes the following files if they exist:

Code:
/system/bin/zramconfig
/system/etc/zram.sh
/system/etc/init.d/00remount
/system/etc/init.d/00zram

2. remount-noatime.zip

Remounts all your filesystems with noatime,nodiratime options (potential I/O speedup). Taken from the original zram.zip and renamed to 98remount so that it comes after all other stuff is done.

3. remount-noatime-nobarrier.zip

Same as above, plus remounts ext4 with barrier=0 option for users with sd-ext on ext4. (potential I/O speedup)

Q: What is zram?! I do not understand what is this about!
A: Read the red warning.

Q: How can I find whether my kernel supports ZRAM?
A: Use the shell.

Code:
# zcat /proc/config.gz | grep ZRAM | grep -v ^#
CONFIG_ZRAM=y
Q: What is noatime, nodiratime, barriers?
A: Google it!

Q: I deleted the 00remount script as advised in recovery, but still have issues with A2SD not mounting my sd-ext!
A: If you are using CM7 ROM, then delete /system/etc/init.d/05mountsd as well. (Rename to _05mountsd or whatever else that does not start with digits should do as well.)
 

Attachments

Last edited:

samcad

Senior Member
Apr 21, 2011
412
17
0
mangalore
Em a newbie.... just asking ... is this improves battery life?



>>Sent from my LG-optimus One™ using XDA Premium App® Rom -void forever with franco kernel v19
 

logo_32

Senior Member
Jul 28, 2011
233
81
0
New Delhi
Em a newbie.... just asking ... is this improves battery life?



>>Sent from my LG-optimus One™ using XDA Premium App® Rom -void forever with franco kernel v19
As the doctor already mentioned... THis script is for those who get issues with boot up of their OS..!! Read the FIRST POST...!!

If your phone is working fine then this is not for you...!!!
 

samcad

Senior Member
Apr 21, 2011
412
17
0
mangalore
As the doctor already mentioned... THis script is for those who get issues with boot up of their OS..!! Read the FIRST POST...!!

If your phone is working fine then this is not for you...!!!
I have read it... but m just knowing anyway in improving in this script :)



>>Sent from my LG-optimus One™ using XDA Premium App® Rom -void forever with franco kernel v19
 

mprou

Senior Member
Mar 23, 2011
417
46
0
Athens
Fresh installed 6.5.7 then fk19 then revised zram then noatime then dt a2sd (rebooting in between ofc:p) and got stuck again after flashing a2sd.

Got in recovery and deleted the 2 scripts from init.d via adb then reboot. It rebooted ok and I thought yeeah we're done. I did another reboot afterwards and it stuck again.
Trying to figure out what to try next. That's a way to spend my vacations lol:p
 

Lawful123

Senior Member
Nov 30, 2010
298
49
0
I'll be the first. Does it make coffee and clean the house for me?

Btw glad your hissy fit is over. Good to have you back. :)
Sent from my LG-P500 using XDA Premium App
 
Last edited:

kutysam

Senior Member
Apr 7, 2010
131
42
0
Is there anyway to remove ZRAM after installing the original ZRAM?

I have been following franco kernel since v16.
Now i'm using V19.1.. and i have installed ZRAM for the first time after flashing 19.1

My phone has random reboots and i guess the sole cause is ZRAM.

Is there anyway to disable ZRAM? THANKS!

NOTE: I have tried to revert back to v19 but same issue.. random reboots.
 

dr.notor

Senior Member
Jul 25, 2011
720
354
0
Is there anyway to remove ZRAM after installing the original ZRAM?
Delete the installed files. See the ZIP for which ones.

Is there anyway to disable ZRAM? THANKS!

NOTE: I have tried to revert back to v19 but same issue.. random reboots.
Delete /system/etc/init.d/00zram

Finally, I very much doubt that zram is causing reboots for you. It is merely a swap.
 

Roqu3

Senior Member
May 9, 2011
256
186
0
dr. I´m using Juwe11 RamScript, as far as I can see theres no duplicate stuff between your last script and his so i can use both, but my question is if its better that your script runs after him, now yours run first because of the files name.