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

geekshow

Member
Jul 11, 2012
18
1
0
Tested a clean install of latest CM12.1 with the BOOT MOD v1.1 you suggested and it was pretty laggy, same as before :(

Sent from my Nexus 7 using XDA Free mobile app
 

geekshow

Member
Jul 11, 2012
18
1
0
Best SD Card

Hi there, what's the best SD card I should get for this mod?

I've been running cm12.1 without the mod, and using link2sd. Quickly running out of internal space though, and this mod would really help!

Keith
 

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
Hi there, what's the best SD card I should get for this mod?

I've been running cm12.1 without the mod, and using link2sd. Quickly running out of internal space though, and this mod would really help!

Keith
Yeah I tested my card too and it had similar speeds to yours, I wouldn't mind a new one too.
You noticed internal was a lot quicker to read than external in your test hence the difference the time difference you notice with opening apps.
I couldn't test internal (userdata) at the time because of the mod installed but my internal (sd-ext) was reading and writing roughly the same as external.
Others have said that Sandisk Extreme and Samsung EVO cards are fast but I've also seen Sandisk Extreme Pro on their site which is SDXC U3 Class10 and on Samsung's site they've got a SDXC U3 Class 10 too called the Samsung PRO+.
I would be interested in knowing read and write speeds on internal using mod (sd-ext) with a fast card though.
 

geekshow

Member
Jul 11, 2012
18
1
0
Okay, so my Lexar class 10 seems to be not that slow. Don't think I've seen SD read speeds beyond 20MB/s across all SD bench results so that won't come close to my internal read speeds of 41MB/s . I'd like to hear if anyone's tried with a really fast card though? Might give us some hope....

Which is more dependant on fast read speeds? Dalvik or apks? Just wondering what would be best to move to sd-ext.
 

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
Okay, so my Lexar class 10 seems to be not that slow. Don't think I've seen SD read speeds beyond 20MB/s across all SD bench results so that won't come close to my internal read speeds of 41MB/s . I'd like to hear if anyone's tried with a really fast card though? Might give us some hope....

Which is more dependant on fast read speeds? Dalvik or apks? Just wondering what would be best to move to sd-ext.
The Samsung one I linked in previous post says its read speed is up to 95MB/s and write up to 90MB/s.
Dalvik is, that why I made the other mod to mount internal data partition for dalvik-cache.
 

Senovsky

Member
Dec 30, 2012
9
0
0
ROM uninstalled BOOT-MOD-PLUS v1.5 after encryption error

Hey man, thanks again for instructing me to flash boot.img via fastboot first when I'm S-ON, I did that and then I've rebooted into recovery to install ivanich's cm-12.1-20150614. I did a complete wipe of everything except fat32 on my 16 GB SD card, flashed the ROM, then BOOT-MOD-PLUS v1.5 and then 5.1 mini gapps. SD-EXT was created using GParted, 4096 MB second primary partition formatted to f2fs, aligned by MB. Then I've rebooted into system and after only some 14 apps or so were optimized, I got the "encryption unsuccessful" error. Interestingly enough, the phone ten rebooted itself into recovery where it ran some script or something and rebooted on its own, I could only watch in amazement :D After the reboot, it optimized the expected 100-ish apps and started the setup wizard. So I was like "huh, maybe it solved the encryption problem by itself." Well, it did, by uninstalling BOOT-MOD-PLUS :D So the ROM works now, with 1.15 GB data partition in internal storage, no swap and without SD-EXT being used. Hence the performance of @ivanich's CM 12.1 is on par with my previous @Flemmard's CM 11 and I'm experiencing the exact same problems (USB tethering doesn't work, timer in Clock app sometimes starts ringing nearly one minute late so my green tea gets over-brewed – first world problems! :D – plus for some reason the calculator widget now cannot do calculations with decimal point because it gets confused by the decimal comma we use here in Czech Republic; works fine when language is set to English US. But these problems are another story). Did this happen to anyone else? And can I kindly ask you for suggestions, @hinxnz? :)
 

hinxnz

Senior Member
Jul 21, 2009
2,821
2,410
193
Hey man, thanks again for instructing me to flash boot.img via fastboot first when I'm S-ON, I did that and then I've rebooted into recovery to install ivanich's cm-12.1-20150614. I did a complete wipe of everything except fat32 on my 16 GB SD card, flashed the ROM, then BOOT-MOD-PLUS v1.5 and then 5.1 mini gapps. SD-EXT was created using GParted, 4096 MB second primary partition formatted to f2fs, aligned by MB. Then I've rebooted into system and after only some 14 apps or so were optimized, I got the "encryption unsuccessful" error. Interestingly enough, the phone ten rebooted itself into recovery where it ran some script or something and rebooted on its own, I could only watch in amazement :D After the reboot, it optimized the expected 100-ish apps and started the setup wizard. So I was like "huh, maybe it solved the encryption problem by itself." Well, it did, by uninstalling BOOT-MOD-PLUS :D So the ROM works now, with 1.15 GB data partition in internal storage, no swap and without SD-EXT being used. Hence the performance of @ivanich's CM 12.1 is on par with my previous @Flemmard's CM 11 and I'm experiencing the exact same problems (USB tethering doesn't work, timer in Clock app sometimes starts ringing nearly one minute late so my green tea gets over-brewed – first world problems! :D – plus for some reason the calculator widget now cannot do calculations with decimal point because it gets confused by the decimal comma we use here in Czech Republic; works fine when language is set to English US. But these problems are another story). Did this happen to anyone else? And can I kindly ask you for suggestions, @hinxnz? :)
Try the repairing option in the advanced wipe menu for sd-ext in TWRP, encryption unsuccessful error is caused by file system errors.
If you flash the plus mod after your setup, your internal data will get wiped.
Yeah I have found that too with the clock, try the google one on playstore.
You could try the cyanogenmod calculator on playstore too.
Also USB tethering works fine, try rebooting your device. I'm using it right now.
 
  • Like
Reactions: Senovsky

Tommyfirebird

Member
Aug 16, 2013
6
1
0
Hi hinxnz,

I think there is mistake in your latest post, shouldn't it be Cache = Cache?

Setup in ROM, looks like this:
•System = System
•Cache = Data
•Data = /data/data
•Sd-ext = /data/dalvik-cache
•Sd-ext2 = /data/app

Why didn't you link dalvik-cache to internal storage? You once said, dalvik-cache should be on the fastest storage :)

Best Regards,
Thomas
 

mladenkata

Member
May 22, 2015
7
1
0
How can I format a partition into f2fs? I initially thought that there would be a certain setting in the TWRP, but unfortunately I could only format it in ext3 and ext4
 

hinxnz

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

I think there is mistake in your latest post, shouldn't it be Cache = Cache?

Setup in ROM, looks like this:
•System = System
•Cache = Data
•Data = /data/data
•Sd-ext = /data/dalvik-cache
•Sd-ext2 = /data/app

Why didn't you link dalvik-cache to internal storage? You once said, dalvik-cache should be on the fastest storage :)

Best Regards,
Thomas
Nar no mistake in that beta version cache was mounted as data ;)
Yes I still feel dalvik-cache is alot faster on internal emmc and hence I'm releasing v2 of the plus mod shortly.

hi guys, how do i install the cm12.1 wififix zip, i forgot to install it before the boot mod
Flash rom and mod again following the wifi fix but I think cm12.1 has the country code options in advanced wifi settings now, so the wifi fix is not needed any longer.

How can I format a partition into f2fs? I initially thought that there would be a certain setting in the TWRP, but unfortunately I could only format it in ext3 and ext4
Select wipe in twrp, then in advanced wipe you can then select a partition to be able to be selected with the change file system option which will give you the option to format it in f2fs.
 
  • Like
Reactions: Donaboi

mladenkata

Member
May 22, 2015
7
1
0
I installed Dalvik-Cache on SD-EXT, but unfortunately my phone did not proceed to Setup Wizard and kept on rebooting the system. I have created SD-EXT partition with file system f2fs, my sd card partition is fat32, the rest are ext4. I use CM12.1, have S-OFF and @ivanich TWRP recovery.
 

mladenkata

Member
May 22, 2015
7
1
0
I don't know what I did wrong, but after I flashed the v2 mod and rebooted my phone got really slow, it barely starts working. I haven't installed previous versions of the mod. Unfortunately, I am not even able to enter the 4EXT recovery. When I choose it in the bootloader, it starts booting it - "Preparing boot.." - and I fall in a loop, where it reaches 1 and then starts again from 0.
 

Sertleris

Member
Nov 5, 2013
30
3
0
Valletta
Can you tell me is big difference in usage, speed and all other parameters between 1,5 vs 2.0 ??
Overall which of all these sd-ext versions actually should be the best in performance?
 

Senovsky

Member
Dec 30, 2012
9
0
0
Possible HW problem?

Try the repairing option in the advanced wipe menu for sd-ext in TWRP, encryption unsuccessful error is caused by file system errors.
If you flash the plus mod after your setup, your internal data will get wiped.
Yeah I have found that too with the clock, try the google one on playstore.
You could try the cyanogenmod calculator on playstore too.
Also USB tethering works fine, try rebooting your device. I'm using it right now.
Well, I've tried the repairing option in the advanced wipe menu for sd-ext in TWRP, to no avail unfortunately. So I cleaned the SD card completely with the "clean all" command in Windows 7's diskpart utility. Then I partitioned the SD card in TWRP-2.8.6.0-r10 (4096 MB sd-ext, 0 MB swap), tried letting the filesystem be ext4 and also tried changing it to f2fs, encryption still unsuccessful with boot-mod-plus 1.5. Weird thing (which wasn't documented here on the forum yet as far as I'm concerned) is that it always restarts into recovery and runs some OpenRecoveryScript that always fails, I took a photo of it here (recovery logs can also be found at the link). When the script finishes, it always restarts the phone into system automatically and everything works fine but without any boot-mod.
Then the boot-mod-plus 2.0 was made available so I booted live Ubuntu and split the 4096 MB ext4 partition into two 2048 MB ext4 partitions in GParted (their sizes are actually 1953 MB since the sd-ext partition created by TWRP was 3906 MB in size). Again, wiped everything except MicroSD card in Advanced wipe menu, flashed latest CM 12.1, zero gapps and then the boot-mod-plus 2.0. This time, it already gave me an error right after the flashing procedure: "E:Unable to mount '/cache'". That never happened with version 1.5. Stuck on boot animation after restart. So I tried flashing it again, still stuck on boot animation (boot.img from CM12.1 was flashed via fastboot).
So is it possible that I'm unable to install either boot-mod because the 16 GB Kingston SD card is not made for linux filesystems or is straight damaged and I should opt for replacement?
 

Sertleris

Member
Nov 5, 2013
30
3
0
Valletta
And another question. I have sandisk ultra 32 And with boot mod 1,5 phone feels really slower. Will be better if I figure out how to make work v2.0? Or better just flash one of sdext versions? Which one actually will be best?
 

Donaboi

New member
Jul 4, 2015
3
1
0
Can you tell me is big difference in usage, speed and all other parameters between 1,5 vs 2.0 ??
Overall which of all these sd-ext versions actually should be the best in performance?
v2.0 is very very stable, it works perfect for me i'm using cm12.1 and I think the sd-ext2 really helped a lot cause now my phone practically doesn't freeze. The only problem i have though is installing the Facebook app, everything else is perfect
 
  • Like
Reactions: Sertleris

Sertleris

Member
Nov 5, 2013
30
3
0
Valletta
Thanks @Donaboi looks like v2.0 work for CM12.1. So I have v1,5 and sd-ext-f2fs. I would like to flash v2.0. How to create partition correctly?
  1. I will flash 4ext
  2. Then will create partitions. (Start from strach or sdext(skip) sdext2(size) swap(skip) ????
  3. Then I will flash twrp
  4. Flash rom
  5. Flash gapps
  6. Flash sdext mod
  7. reboot
  8. done??????

I just can't get what I did wrong when I was trying?
 

persiatic

New member
Jul 23, 2015
0
1
0
Internalflash using for cache

I must say Great job keep it up,
Now my question is about the possibility to write the script so that the internal memory is used as cache, but everything else is shifted to sdcard.
TNX
 
Last edited:
  • Like
Reactions: Donaboi

Donaboi

New member
Jul 4, 2015
3
1
0
Thanks @Donaboi looks like v2.0 work for CM12.1. So I have v1,5 and sd-ext-f2fs. I would like to flash v2.0. How to create partition correctly?
  1. I will flash 4ext
  2. Then will create partitions. (Start from strach or sdext(skip) sdext2(size) swap(skip) ????
  3. Then I will flash twrp
  4. Flash rom
  5. Flash gapps
  6. Flash sdext mod
  7. reboot
  8. done??????

I just can't get what I did wrong when I was trying?
i created my partions using mini tool partition wizard both 4ext and then flashed rom in your order