[Q&A] [MOD] SD-EXT Boot MOD - CM12

Q

QA Bot

Guest
Q&A for [MOD] SD-EXT Boot MOD - CM12

Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.

Before posting, please use the forum search and read through the discussion thread for [MOD] SD-EXT Boot MOD - CM12. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.

Thanks for understanding and for helping to keep XDA neat and tidy! :)
 

sillysuliman

Member
Jan 4, 2014
7
1
0
Encryption Unsuccessful Message

I tried both mod1, 2, and 3. Each time I load my rom, load the BOOT-MOD-3.zip, and then my apps (PA Gapps).

I keep getting a Encryption unsuccessful message. Also to note, during the initial boot, it only preps/installs 12-14 apps and not the 70+ that usually need to be done when I don't run the move mod.

Any ideas?
 

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
I do not know how to use this mod who can help me ?
Use google to find how to create a sd-ext, there are many guides.

I tried both mod1, 2, and 3. Each time I load my rom, load the BOOT-MOD-3.zip, and then my apps (PA Gapps).

I keep getting a Encryption unsuccessful message. Also to note, during the initial boot, it only preps/installs 12-14 apps and not the 70+ that usually need to be done when I don't run the move mod.

Any ideas?
You need to wipe all partitions except sdcard in recovery, flash rom, gapps, then mod.
When you update rom, flash rom then mod again, that's it.
SD-ext needs to be a second primary partition formatted in ext4 (or f2fs if using cm12/cm12.1).

Note: New versions uploaded. Now supports all ivanich's ROMs (cm11,cm12,cm12.1).
 
Last edited:

Tommyfirebird

Member
Aug 16, 2013
6
1
0
@hinxnz: great mod, thx!
Working great for me, but I got 2 questions:

1) I flashed the newest cm12.1 two days ago and flashed your mod (all in SD except dalvic) afterwards. Now you uploaded a New Version compatible with all ivanich Roms. Does your update make any differences for me with cm12.1? Should I reflash?

2) You just said that the mod should be flashed after gapps, I did it the other way round. Does it matter? Got no problems so far.

Sent from my Sensation using XDA Free mobile app
 

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
@hinxnz : great mod, thx!
Working great for me, but I got 2 questions:

1) I flashed the newest cm12.1 two days ago and flashed your mod (all in SD except dalvic) afterwards. Now you uploaded a New Version compatible with all ivanich Roms. Does your update make any differences for me with cm12.1? Should I reflash?

2) You just said that the mod should be flashed after gapps, I did it the other way round. Does it matter? Got no problems so far.

Sent from my Sensation using XDA Free mobile app
It doesn't matter in what order, as long as the mod is flashed after ROM because it edits ramdisk in the kernel.
Your fine with the version you have, it will act the same. You can flash the newer version when you update your ROM.
 
  • Like
Reactions: Tommyfirebird

lemandark

New member
Jun 27, 2014
1
0
0
Problem with storage size

Thanks very much for the mod.
I wanted to use "All Data excl. Dalvik-Cache" and ivanichs cm 12.1 with 4ext recovery.
I was using delta-roh method on my previous installation.
I wiped all partitions except SD card. clean install the rom, then pico gapps and then this mod. Then i install my backups with titanium backup and it started to say storage is full.
When I checked the storage it was still showin 1.15gb and it was full. But installed app size was showing 2gb. I wast able to get sms because of the storage was full.
Am I missing something with the installation method?
Thanks is advance for the replies.
 
Last edited:

sicko40

New member
Jul 11, 2011
1
0
0
Same problem

Hey guys, I'm having the same problem than AKAndrew41. It gives me encryption unsuccessful screen after reboot. It keeps loading at bootloop and can't enter recovery neither. Can you help me?

Thank you!
 

Moorff

Member
Jun 19, 2013
15
4
0
Hey guys, I'm having the same problem than AKAndrew41. It gives me encryption unsuccessful screen after reboot. It keeps loading at bootloop and can't enter recovery neither. Can you help me?

Thank you!
Hi, I flashed boot.img (this file I unzipped from ivanich ROM 18.04.2015 ROM) from the computer with adb and flashed ivanich ROM 18.04.2015 from TWRP ivanich. It's helped.

Sent from my Sensation using XDA Free mobile app
 
Last edited:

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
How can I check free/used space on idata?

Sent from my Sensation using XDA Free mobile app
You could use a root file explorer and check the properties of /idata or just enter code below into a terminal emulator. To enable terminal in cm12, goto developer options and enable local terminal.
Code:
df /idata
Hey guys, I'm having the same problem than AKAndrew41. It gives me encryption unsuccessful screen after reboot. It keeps loading at bootloop and can't enter recovery neither. Can you help me?

Thank you!
To enter recovery pull battery out, then reinsert it. Hold down volume down button while powering up device and it will enter bootloader, which then you can enter recovery by selecting recovery.
You must have a second primary partition (sd-ext) of your sdcard formatted as ext4 (or you can choose to use f2fs if using cm12 or cm12.1).
If your formatting your whole sdcard instead of shrinking your fat32 partition, then you need to create the first partition (fat32) first and then the second (ext4 or f2fs), otherwise they will be labelled wrong.
CM11 doesn't support f2fs, so if you format it as f2fs on CM11, you will get an encryption error and same goes I guess if you format a partition in ext2 or ext3 because it's not configured in fstab.
Did you try flashing ROM and then mod again, maybe it was a bad flash, it can happen.
 
  • Like
Reactions: Tommyfirebird

Tommyfirebird

Member
Aug 16, 2013
6
1
0
I'm using your MOD Plus V3 with 2 f2fs partitions at the moment, which I created with GParted.
What does TWRP do when wiping sd-ext in recovery? If I need to wipe both is there any posibility without using GParted?

And similar, what is backuped by TWRP when doing a backup of sd-ext?
 
Last edited:

geekshow

Member
Jul 11, 2012
18
1
0
Multi swap

Hi there,

I love the work you've been doing on the sensation and I'm glad to still be using it 4 years on with the latest CM12.1. I have a problem with lagginess after multiple attempts to install CM12.1 and your boot mod v1.2. It seems to be an issue relating to the memory and swap, and I noticed running the cat /proc/swaps shows BOTH /dev/block/zram0 AND the data partition. Removing the zram0 by using the swapoff command speeds the phone up loads. Is there a permanent fix though to persist after reboots?

Thanks,
Keith
 
  • Like
Reactions: hinxnz

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
Hi there,

I love the work you've been doing on the sensation and I'm glad to still be using it 4 years on with the latest CM12.1. I have a problem with lagginess after multiple attempts to install CM12.1 and your boot mod v1.2. It seems to be an issue relating to the memory and swap, and I noticed running the cat /proc/swaps shows BOTH /dev/block/zram0 AND the data partition. Removing the zram0 by using the swapoff command speeds the phone up loads. Is there a permanent fix though to persist after reboots?

Thanks,
Keith
Hi Keith, zram shouldn't be active, my mod disables it in fstab.pyramid, found in the root directory.
I don't know why it's activated on your side, maybe an app or init.d script.
To disable it, you could use an init.d script.
Code:
#!/sbin/sh

# Disable ZRAM
swapoff /dev/block/zram0
 

geekshow

Member
Jul 11, 2012
18
1
0
ZRAM sorted

Thanks for the reply mate. I installed TWRP (from 4ext) and used it to reformat everything and start from scratch which sorted out the ZRAM0 issue. :)

After reinstalling ivanich's CM12.1 and your boot mod v1.2 it was much better. I'm still having intermittent lag and slow network speeds so I reverted to CM11 this morning (with your boot mod) to see if it was any quicker. Seems to be much quicker but the lag persists. Weirdly I get the lag most in the settings, and it bombs out sometimes. I'm wondering if it could be to do with my SD card partitions which were created in GParted, not TWRP.

If you've got any ideas of things to check I'm all ears.

Thanks for the kind support!
 

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
Thanks for the reply mate. I installed TWRP (from 4ext) and used it to reformat everything and start from scratch which sorted out the ZRAM0 issue. :)

After reinstalling ivanich's CM12.1 and your boot mod v1.2 it was much better. I'm still having intermittent lag and slow network speeds so I reverted to CM11 this morning (with your boot mod) to see if it was any quicker. Seems to be much quicker but the lag persists. Weirdly I get the lag most in the settings, and it bombs out sometimes. I'm wondering if it could be to do with my SD card partitions which were created in GParted, not TWRP.

If you've got any ideas of things to check I'm all ears.

Thanks for the kind support!
No worries, first try a lower swappiness value by lowering value in /cache/swap.conf, save it and then reboot.
Try 30 or 40, default is 60. See how it goes.
If you still have lag then your memory could be running very low, use an app or init.d script to raise minfree values slighty higher.
I don't think it has to do with your sd partitions, could be your sdcard is a little slow maybe.
You could probably check the partitions in twrp or gparted though.
If you sort it, post what you did :good:
 

geekshow

Member
Jul 11, 2012
18
1
0
No worries, first try a lower swappiness value by lowering value in /cache/swap.conf, save it and then reboot.
Try 30 or 40, default is 60. See how it goes.
If you still have lag then your memory could be running very low, use an app or init.d script to raise minfree values slighty higher.
I don't think it has to do with your sd partitions, could be your sdcard is a little slow maybe.
You could probably check the partitions in twrp or gparted though.
If you sort it, post what you did :good:
Update: Blew everything away again and installed cm12.1 fresh without the SD-EXT mod and it runs fast and lag-free. Installed the sd-ext and lagginess came back. :-/

I had previously tried a fresh install with another SD partitioned by TWRP, made no difference to lagginess. Lower swappiness values seemed to have a minor difference but still laggy.

The lagginess seemed to be mostly when loading from disk. Applications in RAM seemed to run fine until they needed to load something. Downloads very slow on WiFi or 3g, titanium backup very slow too. Strange...

It would be nice to get it working but this is a tad baffling. Thanks for your kind support!

Keith
 

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
Update: Blew everything away again and installed cm12.1 fresh without the SD-EXT mod and it runs fast and lag-free. Installed the sd-ext and lagginess came back. :-/

I had previously tried a fresh install with another SD partitioned by TWRP, made no difference to lagginess. Lower swappiness values seemed to have a minor difference but still laggy.

The lagginess seemed to be mostly when loading from disk. Applications in RAM seemed to run fine until they needed to load something. Downloads very slow on WiFi or 3g, titanium backup very slow too. Strange...

It would be nice to get it working but this is a tad baffling. Thanks for your kind support!

Keith
Seems to me that your sdcard is not fast enough, what make and kind of card do you have?
SDHC or SDXC and UHS-I or UHS-II
I have a Sandisk Ultra SDHC UHS-I and it's only just fast enough for this mod, I need a faster one really.
I have no issues with download speeds with wifi, not really related to mod though, could be slow at writing to sdcard.
Titanium could be slow due to slower writing speeds on sdcard too as it has to build dalvik-caches on sdcard when restoring apps.

Edit: Can you try BOOT-MOD-1.1.zip, it's the non-plus version. It would be good to know if you still experience lags with it, if you do, then sdcard is not fast enough, otherwise could be something to do with the plus version, cheers.
 
Last edited:

geekshow

Member
Jul 11, 2012
18
1
0
Seems to me that your sdcard is not fast enough, what make and kind of card do you have?
SDHC or SDXC and UHS-I or UHS-II
I have a Sandisk Ultra SDHC UHS-I and it's only just fast enough for this mod, I need a faster one really.
I have no issues with download speeds with wifi, not really related to mod though, could be slow at writing to sdcard.
Titanium could be slow due to slower writing speeds on sdcard too as it has to build dalvik-caches on sdcard when restoring apps.

Edit: Can you try BOOT-MOD-1.1.zip, it's the non-plus version. It would be good to know if you still experience lags with it, if you do, then sdcard is not fast enough, otherwise could be something to do with the plus version, cheers.
I'm using a Lexar 32GB class 10 SDHC, had no issues with it. I ran the A1 SD card benchmarking tool and it measured reads of 17 and writes of 11 MB/s. The internal flash reported speeds of 25MB/s read and 7MB/s write by comparison.

I'll try the BOOT-MOD v1.1 and report back...