[MOD] SD-EXT Boot MOD for CyanogenMod

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
@hinxnz
Actually I screwed up my son's senny by formatting /data and /cache to f2fs with TWRP r8.
Did the same with my phone with no problems.
On my son's phone /data and /cache is no more formatable/mountable.
How should I edit the modboot.sh to bind /data and /cache to sdext1 and sdext2?
I understand that I have to delete the idata stuff.
Thanx in advance!
Yeah that's a bummer, I've formatted mine so many times without an issue.
I'll modify it very soon for you and upload it.
Edit: https://mega.nz/#!bFciSRpS!TQBARq7hgEdT0AfjEZyVcmDMfvh3qmTFSjiPtvcQi_o
Edit: Also, first sd-ext is data and second sd-ext is cache.
Edit: Just seen your other post, cache now mounting :)

hi guys!
bought samsung pro card and want to move all that is possible to sd, including the swap (hard swap)
can I find here some clear instructions?
I should make first sd ext partition for swap (withought file system type), second sd ext for /data, and third partition fat32 for everything else and then install boot mod plus, is it correct?
The easiest way would be to partition sdcard with twrp recovery, otherwise first partition needs to be fat32, second your sd-ext and third partition is for swap.

How can i enable zram and swap? I cant find boot.conf file anywhere...
I have 3 partitions on sd, fat32, sd-ext and linux swap.
What's the rom and mod version? If your using cm12 and plus mod v3 then it uses an init.d script instead.
Code:
/system/etc/init.d/99z_kernel
 
Last edited:

mcfouch

Senior Member
Apr 8, 2013
287
101
68
49
PARIS
hi guys!
bought samsung pro card and want to move all that is possible to sd, including the swap (hard swap)
can I find here some clear instructions?
I should make first sd ext partition for swap (withought file system type), second sd ext for /data, and third partition fat32 for everything else and then install boot mod plus, is it correct?
No
1 - fat32
2 - sdext as /data
3 - swap
 
  • Like
Reactions: fufinoid

tom0769

Senior Member
Dec 15, 2010
1,232
460
103
@hinxnz
Yes, with trying some recoveries an some of the binaries in adb shell, at least cache partition got mounted again. Now I use your mod without idata (removed some lines in your script).
Thanks a lot for that!

Sent from my Sensation using XDA Free mobile app
 

fufinoid

Senior Member
Apr 23, 2012
202
32
0
Porto
@hinxnz @mcfouch
thank you, I've found some extra links here in this topic, but did exactly like you said, everything seems to be working, including swap. but one more question: should I edit the meta-inf/com/boot/system file to activate hard swap? because I did it.
 

mcfouch

Senior Member
Apr 8, 2013
287
101
68
49
PARIS
Cm-12.1-20151206, and v4. Can i go to v3 without full wipe?
There is no 99z_kernel file.
With cm12.1 you must use v3.14, not v4.
I let hinxnz answer you how to downgrade without full wipe. If you use sd-ext as /data I think that formatting /system, /data, cache and dalvik but not sdext could do the trick.
 
  • Like
Reactions: hinxnz

Iperzampem0

Senior Member
Aug 4, 2008
788
404
0
Venezia
I'm installing the latest CM 12.1 build of January 2016 and I really want to know if I can install Boot-Mod-Plus v4.03, or is it just for CM13 and I need to install 3.14 instead?
Further, which of those types of installations would you guys suggest for the Sensation to be smooth enough and capable of installing some apps without worrying about the low internal space?
Thanks a lot for any answer!
 

ktxgio

Senior Member
Apr 1, 2015
60
3
28
Florence
Thanks for the info, I wasn't aware of that :eek: I have removed all the links in first post until I fix them, hopefully tomorrow.

Edit: Ok I fixed all mods in first post as they might of all have had unexpecting results depending on there use.
What I did is replaced "version" with "ro.cm.version".
This possibly also may explain what @ktxgio experienced with a newer version.
Also updated the modified one for those who have a bad data partition - https://mega.nz/#!PYtAxKbR!0GEdXSbUim45Bmq1s67npa3r27O203lIsfW4Ne3R0eY
Hi, i have tested and i can confirm that with new 2.4 release problem is solved and work fine. Thanks!
 
  • Like
Reactions: hinxnz

andy hall

Senior Member
Mar 3, 2011
959
276
83
I tried cant... Pc could read but cant format...... I mean even you press format the files is still there.
I did set up an sd card using windows and gparted, have you tried using a ubuntu boot disk, you don't need to install for it to work.
Also, try rolling twrp back a few version.
are you sure the SD carrier in the pc is not write protected in any way
 
  • Like
Reactions: hinxnz

The5thSurvivor

Senior Member
Feb 2, 2016
74
2
0
New York
Is it possible to have data partition on the sdcard with any other custom ROM? I'd like to have a mod like this with a ROM that looks like stock. I've only come across this thread and the Turbo Data thread when it comes to having the data partition on the sdcard.
 
Last edited:

redoano

Senior Member
Jun 15, 2008
357
126
0
Ankara
Installed bootmod-plus-14 on the latest CM12.1 build by ivanich. But phone is not usable as it is extremely laggy. All the partitions are ext4, have 4 gb sd-ext. What if I install only dalvik on sd-card method, will it work for cm12.1. And what the installation procedure should be in this case?

edit: after unsuccessful tries, I wanted to revert back to pure installation of cm12.1 as I used to use before. but this time the problem is, I get "android is starting, optimizing app..." error at each boot. The last mod I tried to use was dalvik on sdext, which did not give me acceptable performances, possibly because of my old 16gb kingston card. Flashed card to fat32 single partition without ext, then wiping everything, flashing the rom and the google apps, but having this annoying android is starting thing whatever I do. Why can it be?

edit 2: After fighting with it all day, finally solved the problem, but not being being able to use the mod successfully. Continuing the CM12.1 without any mod for now, I guess the problem was my slow sdcard for laggy results. I better buy a better sd and try again.

Thanks for the mod, though.
 
Last edited:
  • Like
Reactions: hinxnz

RayeR

Member
Jul 28, 2008
43
3
0
Hi hinxnz, I want to thank you for the Boot mod plus 4.03 that saved my ass on HTC Sensation XE with corrupted eMMC yesterday. My story begins
here down the page. I's my second HTC with eMMC problem. The 1st one I belive had a HW error probably in BGA soldering as it randomly died/ressurect without data corruption. Then I got a replacement HTC which I used to swap the CPU board to my 1st one and I found eMMC has some unrecoverable bad sectors on data, cache and log partitions. This lead to TWRP/mkfs was unable to format the data partition because once it touched a bad sector the eMMC blocked itself. I don't know how to map this bad sectors to prevent OS touch them or how to resize/move insternal partitions. So as a last resort I tried to move data to external SD and then it finally works. I know it's not clean and eMMC may die later but better than a brick :) I beware others from getting older HTCs it seems eMMC errors are quite often as I read so many threads about it...

EDIT: Dammit, the eMMC died again during CM reflash, I send this HTC to hell. I give up the repair as probably every Sensation will die soon on eMMC bug... :(
 
Last edited: