[MOD] SD-EXT Boot MOD for CyanogenMod

devrruti

Senior Member
Jan 23, 2011
681
198
0
I have updated post #2 with new version, BOOT-MOD-PLUS v1.1
I have decided to remove all other versions in post #2 as I think this one is the most suitable mod.
If I update mod, it will be the same format and only improvements unlike previous ones as I am happy now how things are with this version.
Please note as written in post #2 that after flashing mod, you will get a data mount error in recovery, this is ok and expected because recovery doesn't recognize internal data (userdata) formatted as linux swap.
Thanks for such an awesome mod!
So many features and so easy.

Could you please make a list of each partition needed and its filesystem?
It's a bit confusing.

System as ext4
Cache as f2fs
Internal for swap as ___?
Microsd for apps as f2fs
Microsd for storage as fat

You advise to use gparted, is there any special option you use in it?
I mean like cluster size and that kind of stuff. I recently made some tests and partitions made on microsd with gparted were much slower than when making them with twrp. I saw this by using a Linux program to check the microsd called f3 http://oss.digirati.com.br/f3/
(there's something similar for windows called h2testw)

I guess I'll have to do a clean install again to use your new mod instead of plus v2
 
Last edited:

Saakshath

Senior Member
Feb 8, 2012
98
10
0
Mangalore
I have updated post #2 with new version, BOOT-MOD-PLUS v1.1
I have decided to remove all other versions in post #2 as I think this one is the most suitable mod.
If I update mod, it will be the same format and only improvements unlike previous ones as I am happy now how things are with this version.
Please note as written in post #2 that after flashing mod, you will get a data mount error in recovery, this is ok and expected because recovery doesn't recognize internal data (userdata) formatted as linux swap.
U mentioned something about data mount error after flashing. But in my case i never saw that error. Is it is compulsary to get it ? :p
 

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
@hinxnz, you included your multiswap mod as well?

Man, this is really tempting me, just when I finished my Denny setup with boot-mod-v1.1.

Sent from my Sensation using Tapatalk
It's not using multiswap but using your internal data (userdata) as a swap partition instead of using swap file(s).
You can flash it over boot mod v1.x and v2.x & boot mod plus v1 & v2 without wiping all, just wipe cache in recovery and rom always needs to be flashed beforehand as it modifies the boot image.

Thanks for such an awesome mod!
So many features and so easy.

Could you please make a list of each partition needed and its filesystem?
It's a bit confusing.

System as ext4
Cache as f2fs
Internal for swap as ___?
Microsd for apps as f2fs
Microsd for storage as fat

You advise to use gparted, is there any special option you use in it?
I mean like cluster size and that kind of stuff. I recently made some tests and partitions made on microsd with gparted were much slower than when making them with twrp. I saw this by using a Linux program to check the microsd called f3 http://oss.digirati.com.br/f3/
(there's something similar for windows called h2testw)

I guess I'll have to do a clean install again to use your new mod instead of plus v2
Format partitions as normal

System - ext4
Data - doesn't matter either ext4 or f2fs as it gets formatted as swap
Cache - ext4 or f2fs (I prefer ext4 for cache (more free space))
SDcard - Fat32 (Most compatible file system)
SD-ext - ext4 or f2fs (I prefer f2fs for sd-ext (faster write speeds))

I would of thought both twrp and gparted would be very similar on commands for that, if you find twrp better then that's fine. I haven't tried it myself yet but I usually wipe/format sd-ext in twrp anyway. What app/process did you test speeds on sd-ext with? I just create and format in gparted changing nothing.
Thanks for link, I'll check it out sometime.
You can flash over plus v2 but just wipe cache and flash rom beforehand.

U mentioned something about data mount error after flashing. But in my case i never saw that error. Is it is compulsary to get it ? :p
What recovery are you using? Error shows in twrp, is your internal data formatted as swap?
Enter in terminal emulator
Code:
cat /proc/swaps
The output should be like screenshot.
 

Attachments

  • Like
Reactions: devrruti

Saakshath

Senior Member
Feb 8, 2012
98
10
0
Mangalore
It's not using multiswap but using your internal data (userdata) as a swap partition instead of using swap file(s).
You can flash it over boot mod v1.x and v2.x & boot mod plus v1 & v2 without wiping all, just wipe cache in recovery and rom always needs to be flashed beforehand as it modifies the boot image.



Format partitions as normal

System - ext4
Data - doesn't matter either ext4 or f2fs as it gets formatted as swap
Cache - ext4 or f2fs (I prefer ext4 for cache (more free space))
SDcard - Fat32 (Most compatible file system)
SD-ext - ext4 or f2fs (I prefer f2fs for sd-ext (faster write speeds))

I would of thought both twrp and gparted would be very similar on commands for that, if you find twrp better then that's fine. I haven't tried it myself yet but I usually wipe/format sd-ext in twrp anyway. What app/process did you test speeds on sd-ext with? I just create and format in gparted changing nothing.
Thanks for link, I'll check it out sometime.
You can flash over plus v2 but just wipe cache and flash rom beforehand.



What recovery are you using? Error shows in twrp, is your internal data formatted as swap?
Enter in terminal emulator
Code:
cat /proc/swaps
The output should be like screenshot.
twrp 2.8.6 is wat i am using. and ya that screenshot wat u uploaded is wat i am getting.. and also no error while flashing mod.
 

devrruti

Senior Member
Jan 23, 2011
681
198
0
I would have thought both twrp and gparted would be very similar on commands for that, if you find twrp better then that's fine. I haven't tried it myself yet but I usually wipe/format sd-ext in twrp anyway. What app/process did you test speeds on sd-ext with? I just create and format in gparted changing nothing.
I checked write and read speed with that app I linked you, it's really simple

You first write one command that writes 1 GB files to the SD and you can see the write speed there (it also gives you the average speed when it finishes, but this you can extrapolate)

Then there's another command that reads and checks those files' integrity, you can see read speed there too

Speed was significantly slower when I made the partitions with gparted, even with just one full fat32 partition, with twrp was way faster in my case, that why I asked, it was strange to me too.

If someone checks this, let me know.

BTW, do you know if the time needed to press the back button to kill an app can be changed somewhere in some configuration file? Because now it is 2 sec by default and that too much for my liking. I use this feature a lot. In some ROMs I've seen on other devices this can be configured right behind where you activate this. I'll try to find and change this
 

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
I checked write and read speed with that app I linked you, it's really simple

You first write one command that writes 1 GB files to the SD and you can see the write speed there (it also gives you the average speed when it finishes, but this you can extrapolate)

Then there's another command that reads and checks those files' integrity, you can see read speed there too

Speed was significantly slower when I made the partitions with gparted, even with just one full fat32 partition, with twrp was way faster in my case, that why I asked, it was strange to me too.

If someone checks this, let me know.

BTW, do you know if the time needed to press the back button to kill an app can be changed somewhere in some configuration file? Because now it is 2 sec by default and that too much for my liking. I use this feature a lot. In some ROMs I've seen on other devices this can be configured right behind where you activate this. I'll try to find and change this
Well I tried with creating partitions with twrp just to check it out and found speeds similar kinda, well seemed like it was slightly slower but probably a placebo. I didn't have much time to test it really though but I normally just test write speeds by creating a swap file in terminal. Both twrp & gparted format the fat32 with 16kb block size which is to slow for writing so I normally format fat32 with 32 block size but after reformatting with gparted, after trying twrp I can't seem to find the option to do it now and I've done it before :eek:
So I ended up just formatting the fat32 partition in windows to have 64kb allocation size, write speeds have doubled with transferring sdcard contents back.
You can toggle kill app back button in developer options, it's at the bottom of the list but I don't know how to shorten its time.
 
  • Like
Reactions: devrruti

JimboVV

Senior Member
Apr 11, 2012
96
11
0
rather that mod worked very stable. But i have a big problem since today...After a reboot, my phone shows: "Encryption unsuccessful" and it recommend me to reinstall my ROM.

Unfortunately i have no backup (i have reinstalled that Mod because of that mod some days ago with all app etc)

Anyone an idea to solve that encryption problem without reinstall my ROM again.

PS: Im sure that is related to that mod because i had that ROM version before without any bugs on my phone...

Edit: Problem solved. SD-Card was the problem
 
Last edited:

fierah

Member
Jun 28, 2013
47
9
0
Hey guys hope someone can help me. After using this mod for a while my sd-card fails to format itself using windows and I can't delete any data. I tried using recovery and it didn't work. So I was wondering if uninstalling the mod would allow me to format? Any help would be appreciated and thanks for the mod its awesome :)
 

devrruti

Senior Member
Jan 23, 2011
681
198
0
Hey guys hope someone can help me. After using this mod for a while my sd-card fails to format itself using windows and I can't delete any data. I tried using recovery and it didn't work. So I was wondering if uninstalling the mod would allow me to format? Any help would be appreciated and thanks for the mod its awesome :)
Try from twrp, i think it's in advanced or somewhere, there's a menu that says partition SD card

Or you could use gparted, you need to boot up a Linux live CD or USB in a computer, no need to install, you just need the computer to have boot device order configured as you need in the bios, like:
1 CDROM
2 USB
3 hard disk

Use a Linux distribution that has partitioning tools like gparted, Ubuntu has it, and even better, there are specific distributions to mess with hard drives and external, there's one called "gparted live"

You can use a program called liliusb in windows to create a bootable USB

You can check if your SD is faulty with a program called h2testw
 
Last edited:
  • Like
Reactions: hinxnz

JimboVV

Senior Member
Apr 11, 2012
96
11
0
i have some problems with that app. Every ma phone does a random reboot i have the following message: "encryption broken..." So i have to reboot my phone again by pulling the battery. The problem is: if i pull my battery, i have no chance to get the last_kmsg !
 

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
i have some problems with that app. Every ma phone does a random reboot i have the following message: "encryption broken..." So i have to reboot my phone again by pulling the battery. The problem is: if i pull my battery, i have no chance to get the last_kmsg !
What app? SysLog? No problems here with it, if you pull battery, last_kmsg will be greyed out because is not generated. I'd say your file system on sd-ext is corrupt as what I think the encrytion message is about, unless you enabled encryption? Use twrp to repair sd-ext, make a nandroid backup first.
 

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
I have updated Boot Mod Plus to v1.3 in 2nd post

Changed a few things like touch boost timing & frequency
Added larger readahead buffer for sdcard
Disabled UKSM, wasn't doing much on a low setting
Added zipalign apks when flashing mod
Updated F-Droid
Removed MOAAB ad blocking host file and added adaway's one
- was causing adaway to fc and couldn't solve
Removed minfree values but added adj values
Raised readahead buffers for internal & sd-ext
Adjusted some VM values
Added boost.conf
Plus some other minor alterations
2nd post also updated for new version
 

JimboVV

Senior Member
Apr 11, 2012
96
11
0
What app? SysLog? No problems here with it, if you pull battery, last_kmsg will be greyed out because is not generated. I'd say your file system on sd-ext is corrupt as what I think the encrytion message is about, unless you enabled encryption? Use twrp to repair sd-ext, make a nandroid backup first.
Oh sry i mean Mod :D

I have the latest ROM from ivanich. The problem is: my phone randomly reboots and after a reboot i get every time the message: "encryption unsuccessful". After that i have to shut down the phone, (sometimes i plugout and plugin the sc-card) everything works fine.

I have generated a last-kmsg. But im not sure if my random reboot is captured (because i had to reboot my phone manually [without pull the battery] again because of the encryption message). I have attached the file
 

JimboVV

Senior Member
Apr 11, 2012
96
11
0
Oh sry i mean Mod :D

I have the latest ROM from ivanich. The problem is: my phone randomly reboots and after a reboot i get every time the message: "encryption unsuccessful". After that i have to shut down the phone, (sometimes i plugout and plugin the sc-card) everything works fine.

I have generated a last-kmsg. But im not sure if my random reboot is captured (because i had to reboot my phone manually [without pull the battery] again because of the encryption message). I have attached the file
Oh sry my attachment is gone....here it is again!
 

Attachments