This is a framework to help "boot" Android from the external SD card.
[size=+3]Motivation:[/size]
I started this because I would like to have Xposed Framework installed in my STS, but I do not want to take ANY risks of bootloop modifying internal system partition. This way I made this framework to allow me to "boot" a copy of Android resident in the external SD card, so that in case of bootloop, I simple eject the SD card and boot from internal Android.
[size=+3]News:[/size]
{new} - 2014/07/29 - New Sys2sdManager V2, supporting ROM ramdisks (custom ROMs), and some bugfixes. Please install, "unhook" and then "hook" again the sys2sd framework for the changes to take effect. There is a new recovery too, so choose the menu option to install the recovery package.
{new} - 2014/07/29 - First CM9 ROM for the STS (alpha stage). Please read the #2 topic for details.
{new} - 2014/07/28 - I am working on a port of CM9 for the Sony Tablet S using the sys2sd framework.
[size=+3]How it works[/size]
First, you must partition your external SD card, and then clone system and data from internal to external sdcard.
Next, during the normal boot process, the framework intercepts the process, test for the existence of the previously prepared external SD card, and if found it pauses the internal boot process, mounts /data and /system partition from the SD card, and then resumes the boot process.
[size=+3]Features[/size]
- Boot Android from external SD card (mount SYSTEM and DATA from external SD card).
- Functional recovery framework, using adapted TWRP from Motorola Xoom tablet.
- The recovery package can reside in internal or external storage.
- Recovery wait time with LED notification and triggering via hardware keypress.
- Can boot other versions of Android compatible with the stock STS ramdisk (custom ROMs).
- (work in progress): can boot other versions of Android with alternative ramdisk.
[size=+3]Bootloop Safety[/size]
- Only hook into 1 internal system script: /system/etc/install-recovery.sh (or install-recovery2.sh if present)
- With no external SD card present, the internal boot process takes precedence unmodified.
- /data and /system residing in external SD card, so if one mess the external /data ou /system directory, the bootloop will be limited to booting from the external sdcard.
- Working recovery: you can apply zip or backup and restore (tested!) your external SD card data and system partion. All modifications in data and system will be limited to the external SD card.
[size=+3]Limitations[/size]
- All modifications must work with the stock STS kernel. No custom kernels until kexec or unlocked bootloader.
- Write speed of the SD card.
[size=+3]Requisites[/size]
- Rooted Android 4.0.3 Sony Tablet S.
- busybox installed in /system/xbin, containing the functions: mount, tar, gzip, awk, sed. I recommend Stericson Busybox Installer on the Play Store. {new} If you do not have buysybox, the installer will install one for you.
- External SD card of size 8Gb or more, SD or Microsd. See the Drawbacks section for speed class information.
- Partitioning software to partition the external SD card. I recommend Mini Tool Partition Wizard for Windows, or GParted for Linux.
[size=+3]Drawbacks[/size]
[size=+2]Speed[/size]
Because the STS will be running Android from the external SD card (system and data), this framework heavly depends on the SD card read and write speed for disk IO.
I have tested the framework with the following SD card classes:
App loading, closing, and file IO:
Microsd class 4: damn slow browsing
Microsd class 6: slow
Microsd class 10: fast, like internal storage
Gaming:
Microsd class 4: slow loading times, gaming normal
Microsd class 6: slow loading times, gaming normal
Microsd class 10: normal
Boot process:
+20 to 40 seconds delay
[size=+3]How it works - Technical details[/size]
[size=+1]The framework executes the following steps during the boot from sd process[/size]
- Intercepts the internal Android boot process via the /system/etc/install_recovery script, then looks for the special partitioned external sdcard, and if not found resumes the normal Android boot process. Otherwise, keep executing.
- Stops the normal Android boot process, stopping all init services.
- Try to soft boot into recovery (explained bellow) if got user keypress. If the recovery process was not started, the framework resumes execution.
- Umount /data and /system from the internal flash storage.
- Mount /data and /system from the external SD card partitions.
- Restart all services and resume boot
[size=+1]The framework executes the following steps during the recovery start process[/size]
- Searches for a recovery package (recovery.tgz), in the external and internal storage system partition. If not found, cancels the recovery start process.
- If recovery package found, blinks the notification LED (blue color) and waits for user keypress to enter recovery. The recovery can also be triggered by a special recovery file present in the /cache/recovey directory (boot, command or extendedcommand files).
- If the user press some key in the wait interval or any special file are found then the recovery process continues. Otherwise, cancels the process.
- Stop all init services
- Decompress the recovery package, like a recovery ramdisk
- Umount all file systems, including internal and external storage, DM and Vold volumes.
- Soft boot the recovery Ramdisk using CHROOT busybox command
- Note: if you want to build your own alternative recovery package, special care must be taken for the /system and /data partitions in the /etc/recovery.fstab recovery file.
[size=+1]External SD card partitioning[/size]
- I recommend that the partitions in the external SD card be aligned to 4MB boundaries (8192 blocks).
- The internal /data and /system can be mirrored manualy using the following commands:
Code:
#### mount external /system in /mnt/newsys
#### mount external /data in /mnt/newdat
busybox mount -o remount,rw /
busybox mkdir -p /mnt/newsys
busybox mkdir -p /mnt/newdat
busybox mount /dev/block/mmcblk1p2 /mnt/newsys
busybox mount /dev/block/mmcblk1p3 /mnt/newdat
#### copy files
cd /system ; busybox cp -a * /mnt/newsys
cd /data ; busybox cp -a * /mnt/newdat
busybox umount /mnt/newsys
busybox umount /mnt/newdat
[size=+3]Getting started[/size]
1) Get an external SD Card and partition/format it
2) Install sys2sd into STS
3) Clone internal data and system to external SD card
4) Boot STS with external SD card inserted
5) Identify the internal and external system (important)
6) Install recovery in external SD card
[size=+1]1) Get an external SD Card and partition/format it[/size]
You must parition your external SD card before using this framework. I recommend you to use "Mini Tool Partition Wizard" for Windows, or "GParted" for Linux. I like to use fdisk for Linux, too.
I recommend that the partitions in the external SD card be aligned to 4MB boundaries (8192 blocks) for maximal write speed.
All partitions must be primary partitions. You must create 3 partitions:
- 1: Type fat32/vfat. This will be your "external sdcard" by the point of view of the Android or Recovery. The "internal sdcard" will stay the same, at the internal flash storage.
- 2: Type ext4 (without journal if you have the option). This will be your "/system" partition (system apps and Android core). For your information, the internal system for 4.0.3 Sony firmware takes about 300Mb, so this must be somewhat bigger, like 400Mb or more. I use 1Gb, in preparation for custom ROMs.
- 3: Type ext4 (without journal if possible). This will be your "/data" partition (user apps and data). Mine is 4Gb larger.
Do not forget to format the partitions after partitioning. Do not forget to save modifications in the Partitioning software (press the apply button).
Performance tips:
- If your Partitioning software has the option, use partitions starting/aligned in 4Mb boundaries (multiple of 8192 blocks), for maximal write speeds. In the Mini Tool Wizard, use MB alignment.
Code:
Disk /dev/block/mmcblk1: 15.9 GB, 15931539456 bytes
Device Boot Start End Blocks Id System
/dev/block/mmcblk1p1 8192 2105344 1048576+ 83 Linux
/dev/block/mmcblk1p2 2113536 10510336 4198400+ 83 Linux
/dev/block/mmcblk1p3 10518528 12615680 1048576+ 83 Linux
- Avoid to use ext2, because it was so damn slow in my tests.
- If your Partitioning software has the option, disable ext4 journaling, because it makes the external SD card wears fast.
- If possible, mark the ext4 partitions with stripe-write=1024 blocks and stride=256 blocks.
In linux, you can use:
Code:
mkfs.ext4 -E stride=256,stripe-width=1024 -O ^has_journal /dev/mmcblk0p2
[size=+1]2) Install sys2sd into STS[/size]
Get the Sys2sd Manager, decompress it in a folder, put the partitioned SD Card in the tablet, and then run run_windows.bat (run_linux.sh is work in progress).
In the menu, choose:
- Install / Install Sys2sd and busybox
- Install / Unhook sys2sd (if previusly hooked)
- Install / Hook sys2sd into System
[size=+1]3) Clone internal data and system to external SD card[/size]
With the partioned SD Card inserted into the Tablet, enter the Sys2sd Manager, and choose:
- Clone / Clone System and Data
[size=+1]4) Boot STS with external SD card inserted[/size]
In the Sys2sd Manager, choose:
- Advanced / Reboot device
[size=+1]5) Identify the internal and external system[/size]
- If you successfuly cloned the internal Android to external SD card, it will be hard to guess if you are running the internal or external Android, because it will apear the same.
- The best way to avoid this is to change something (wallpaper, icons disposition, etc) to help identify internal and external SD card boot
- Boot into internal Android and take note of the changes (icons, wallpaper)
- Boot into external Android and compare the changes
- Take care to uniquely identify booth systems, to help prevent unwanted changes to the internal system
[size=+1]6) Install recovery in external SD card[/size]
Boot into the external Android, and in the Sys2sd Manager, choose:
- Recovery / Install Recovery
[size=+3]FAQ - Frequently Asked Questions[/size]
(Q) What is this?
(A) This is a framework to help soft boot Android from the external SD card on the Sony Tablet S (STS)?
(Q) What is soft boot?
(A) It means that it is a hook in the booting process of the internal Android, using the same Kernel e RAMDRIVE. It is not a "boot from the SD card" like supported on some devices.
(Q) How to unninstall?
(A) Remove /system/xbin/sys2sd file.
(Q) Can I boot a custom Kernel?
(A) No, until we have kexec, unlocked bootloader, or other way of executing/flashing a custom kernel.
(Q) Can I boot a custom ROM?
(A) Yes, but the ROM must be made compatible to the STS hardware, and use the stock Kernel. Simply flash the ROM into the external SD card system partition using recovery.
(Q) How secure is the Recovery module?
(A) Totaly secure. It is bounded to the external data and system partitions presents in the external SD card, so it is impossible to make changes to the internal data and system partitions. The cache, primary SD card and secondary SD card partitions will be shared between the Android versions.
(Q) How about the "Android SD card"?
(A) The "Android SD card" (do not confuse this with the internal or external storage), also know as /sdcard directory, will be the same for the internal and SD card Android versions. You can keep your books, music, videos and other data here, like you do now. Also you can place your Recovery backups here.
(Q) How about the "Android second SD card"?
(A) The "Android second SD card" will be stored on the first partition of the external SD card, and it will be visible to booth internal and SD card Android versions, depending of the Apps support for a secondary SD card. You can place your Recovery backups here also.
(Q) On Android, will apps transfered to SD card work?
(A) Probably not, because you will have two Android versions running on the same device using a shared "Android SD card". Keep the apps installed on the data partition of each Android version.
(Q) How about the Sony extra partitions?
(A) All the /configs, /dataapp, /vendor and other Sony partitions are necessary to boot the Internal stock Android. DO NOT wipe, format, clean, exclude none of the internal partitions, on the risk of a bootloop and device brick.
(Q) Can I copy the contents of the data and system in the external SD card back to the internal storage?
(A) No. It is too risk.
(Q) The Android running from the SD card is too slow.
(A) Take a faster, or class 10 SD card. Mine is running fine.
(Q) Your recovery sucks. Can I create an alternative recovery?
(A) Take my Recovery as a template.
(Q) Can I start recovery from the command line?
(A)
Code:
sys2sd recoveryctl start /path/to/recovery.tgz
(Q) Can I make a dual recovery?
(A) Yes.
Code:
File: /system/recovery/start_recovery
-----
#!/system/bin/sh
# $1 can be: vol_down, vol_up, power, internal
if [ "$1" = "vol_down" ] ; then
/system/xbin/sys2sd recoveryctl start /system/recovery/twrp.tgz
exit $?
fi
if [ "$1" = "vol_up" ] ; then
/system/xbin/sys2sd recoveryctl start /system/recovery/cwm.tgz
exit $?
fi
/system/xbin/sys2sd recoveryctl start /system/recovery/default.tgz
exit $?
(Q) How to enter Recovery?
(A) See the next question.
(Q) What is the blinking blue LED during boot?
(A) It is the notification to enter Recovery. During the blue LED blinking, press a key (volume or power) to enter Recovery - after this, the LED will pulse green to indicate it will enter Recovery, or pulse red to indicate it will NOT enter Recovery.
(Q) The clone command fails with a message of "target device not found"?
(A) Is the SD Card inserted into the tablet, partitioned and formated? Are the partitions primary partitions? Have you pressed the apply button on the partitioning software?
[size=+3]TODO[/size]
- run_linux.sh in the Sys2sd Manager
- Guide on how to make custom recovery module
- Guide on how to make custom ROM ramdisk and entry points
- (done) Guide on how to make a dual recovery
[size=+3]Introduction[/size]
This is an Unofficial CyanogenMod 9.0 port for the Sony Tablet S.
[size=+3]Working[/size]
- Display (hw accelerated)
- Touch screen
- Lock screen
- Power button
- Adjustable display brightness
- Settings App (some parts are not working)
- ADB
[size=+3]Not working[/size]
- Front camera
- Rear camera
- Volume buttons
- Audio
- GPS
- Sensors
- Wifi
- Internal SD Card
- External SD Card
- USB mtp / storage
- USB host
[size=+3]How to install[/size]
1) Install the latest sys2sd framework and get it working on an SD Card
2) Install the recovery on sys2sd
3) Download the latest flashable zip on this thread and put it on the Internal or External SD Card on the Sony Tablet S
4) Reboot into recovery (sys2sd Recovery, NOT Stock recovery)
5) {optional} Make a backup of system and data
6) Flash the downloaded zip
7) Wipe data
8) Reboot system
Please note that the changes will be limited to the Android present on the external SD Card. No changes will be made to the internal Android. Reboot and eject the SD Card to boot into internal Android.
[size=+3]Downloads[/size]
This is the flashable zip for the CM9 version:
{latest} cm9-20140729T212846.zip, 144MB
http://www.mediafire.com/download/9wha2vgie4cbqro/cm9-20140729T212846.zip
[size=+3]Warnings[/size]
DO NOT flash any of this zip using the Stock Recovery, on the risk of a device brick.
Use always the sys2sd recovery (press a key during the flashing blue LED).
RESERVED for future use 2
RESERVED for future use 3
RESERVED for future use 4
What does a blue flashing light mean?
I'm not sure but in apps it means Facebook notifications
KnightOdin said:
I'm not sure but in apps it means Facebook notifications
Click to expand...
Click to collapse
No its not even booted yet. the boot animation gets stuck, then this blue light apears
Jure220 said:
What does a blue flashing light mean?
Click to expand...
Click to collapse
The flashing blue light is the notification to press a key to enter Recovery.
Anyway, I am actually working on a port of CyanogenMod 9 using this framework.
Bazoocaze said:
Anyway, I am actually working on a port of CyanogenMod 9 using this framework.
Click to expand...
Click to collapse
Tell me if you need any help, I would be glad to help you I think we have the same goal we follow.
Edit: Check the PM
Sent from my Xperia Z2 using Tapatalk
Wow :good: This is great! Thank you so much
It really is slow with a class 4 sd card??
limax182 said:
...
Click to expand...
Click to collapse
Hi,
I am glad you are trying to use the framework.
1) "without journal" is only available if you format ext4 using the command line mkfs.ext4 on a Linux system. I am working on a way to format from the Sys2sdManager, so do not worry about this option for now.
2) Same problem. For now, choose to align to MB in the Mini Tool Parition Wizard and you will be ok.
Clone System:
Sorry for the incomplete instructions. The clone option expects the SD card to be inserted into the tablet sdcard slot.
ERROR: Target device /dev/block/mmcblk1p2 not found
Click to expand...
Click to collapse
- Is the SD Card inserted into the tablet?
- Is the SD Card really partitioned? Have you pressed the "apply" button in Mini Tool Partition Wizard?
Bazoocaze said:
Hi,
I am glad you are trying to use the framework....
Click to expand...
Click to collapse
Finally installed the external Android. The problem was I made all the 3 partitions as Logical but today I made them Primary and it worked!
Now when I tried to install Xposed it gives me this message:
View attachment 2874253
Thanks for your help!
Sorry for bad english
Oh, my. I completely forgot to say that the partitions need to be primary. I will update the first post. Thank you.
About the fault in the Xposed installer, that is a know issue in the Xposed FAQ.
This post have the workaround for that:
http://forum.xda-developers.com/showpost.php?p=52292102&postcount=7
limax182 said:
Finally installed the external Android. The problem was I made all the 3 partitions as Logical but today I made them Primary and it worked!
Now when I tried to install Xposed it gives me this message:
View attachment 2874253
Thanks for your help!
Sorry for bad english
Click to expand...
Click to collapse
Bazoocaze said:
Oh, my. I completely forgot to say that the partitions need to be primary. I will update the first post. Thank you.
About the fault in the Xposed installer, that is a know issue in the Xposed FAQ.
This post have the workaround for that:
http://forum.xda-developers.com/showpost.php?p=52292102&postcount=7
Click to expand...
Click to collapse
Totally awesome work, working on kexec to support your work.
Sent from my Sony Tablet S using Tapatalk
smgdev said:
Totally awesome work, working on kexec to support your work.
Sent from my Sony Tablet S using Tapatalk
Click to expand...
Click to collapse
Wow, man! Nice to know that.
Do you think it will soon be possible to put CM9 on the internal storage after getting kexec worked on with a few fixes? This is just way too awesome to handle and we're finally going somewhere.
Funny enough, this isn't in the development thread.
I've tried this framework but I seem to be getting issues.
I've got around some errors regarding mounting but it seems that the recovery can touch the /cache partition causing it to have the wrong permissions or something, I had to factory reset to get the /cache partition to be reformatted.
Anyway, after all of the things after and before, I've finally got this thing working, the only problem now is that the ROM is stuck in a bootloop or something (staying in the boot animation, I think it did dim slightly after 10-20 minutes).
I'm using an 8GB class 4 SD card.
@Bazoocaze let me know if anything has to be done. And also let me know if you have knowledge about kernels, I am already working on kexec.
Sent from my Sony Tablet S using Tapatalk
Related
Well i'm wondering about a2sd and apps2sd and have a few questions that maybe someone more experienced than me can answer.
1. What is the difference between a2sd and apps2sd? Or are they the same program?
2. How do i get it enabled on my phone, I'm currently switching between WhiteWidow Rom and Aloysious Rom, I have seen the option for it but it is grayed out and I cannot access it.
3. Maybe someone could explain the benefits or using these programs vs not using them.
Thanks in advance for any answers.
I'm sure you could have searched this honestly.
1. Same thing.
2. There should be instructions if it's possible on those roms.
3. Extra space so you can use more apps. They may be slower, I suggest upgrading your card to at least class 4.
sorry wasn't trying to just ask questions without searching for it. I was just trying to find a decent walktrhough. I'll do some more research. Thanks for the response.
darkside86 said:
2. How do i get it enabled on my phone, I'm currently switching between WhiteWidow Rom and Aloysious Rom, I have seen the option for it but it is grayed out and I cannot access it.
Click to expand...
Click to collapse
In my experience of experimenting with different ROMs, the option (in the "Settings" menu) won't even show up unless the ROM/kernel supports the option. Since you see it and the threads for both of those ROMs say it supports, I will guess that it will remain grayed out until your SD card is set up (partitioned) properly in order to use A2SD. That involves adding an EXT3 partition to the card.
1. No difference...they are the same program (i.e. Darktremor A2SD and Darktremor Apps2SD are the same program).
2. Your SD card has to be partitioned for it (it must contain an EXT2 or EXT3 partition on it. EXT4 doesn't always work if the kernel the rom is using doesn't support it). Your rom must be able to launch apps2sd either directly or via Busybox run-parts. Your rom also must have apps2sd installed (doesn't matter which Apps2sd).
Once you have those, the apps2sd should activate automatically on startup (unless it is being prevented via a flag file (Darktremor) or a property value (DamageControl)).
3. Using apps2sd will free up internal storage by moving your applications to the SD card. Some more advanced apps2sd will also have the option of moving the dalvik-cache to the SD card, freeing more internal storage. This will allow you to run more programs without worrying about running out of internal storage (Android tends to act flaky when there's not enough storage for it to work with).
darkside86 said:
Well i'm wondering about a2sd and apps2sd and have a few questions that maybe someone more experienced than me can answer.
1. What is the difference between a2sd and apps2sd? Or are they the same program?
2. How do i get it enabled on my phone, I'm currently switching between WhiteWidow Rom and Aloysious Rom, I have seen the option for it but it is grayed out and I cannot access it.
3. Maybe someone could explain the benefits or using these programs vs not using them.
Thanks in advance for any answers.
Click to expand...
Click to collapse
Thank you guys for the informative responses, now I have a pretty good idea what it does,i would like to give it a try, do I need to back my sd card on my pc before trying? Because it sounds like formatting my card will delete everything, am I right on this?
Yes...back everything up (do a nandroid backup before you backup your SD card...this way you'll make a copy of the nandroid backup). Repartitioning will wipe the data from the card.
darkside86 said:
Thank you guys for the informative responses, now I have a pretty good idea what it does,i would like to give it a try, do I need to back my sd card on my pc before trying? Because it sounds like formatting my card will delete everything, am I right on this?
Click to expand...
Click to collapse
tkirton said:
Yes...back everything up (do a nandroid backup before you backup your SD card...this way you'll make a copy of the nandroid backup). Repartitioning will wipe the data from the card.
Click to expand...
Click to collapse
Thanks, I'll give it a try.
additoinal questions
Hello
I have a few additional questions:
1) how can I access the ext2 partion on my sd card in windows through adb?
I want to be able to do this because I want to confirm that the apps are indeed being installed to the sdcard because I notice the internal storage continues to decrease (now this may be due to the apps cache since I am not putting the cache on the sd card...yet)
I would also like to be able to pull apps.
2) I kind of address my next question with the last statement of question 1, can you still pull apps and if so how?
3) I have DConfig on my phone which acts as a gui for app2sd (i think) but when I ran it for the first time I noticed that it did not move any of the apps that came with the rom (all the htc stuff, youtube, facebook, wireless teathering, etc), can these apps be moved and if so how?
dsMA said:
Hello
I have a few additional questions:
1) how can I access the ext2 partion on my sd card in windows through adb?
I want to be able to do this because I want to confirm that the apps are indeed being installed to the sdcard because I notice the internal storage continues to decrease (now this may be due to the apps cache since I am not putting the cache on the sd card...yet)
I would also like to be able to pull apps.
2) I kind of address my next question with the last statement of question 1, can you still pull apps and if so how?
3) I have DConfig on my phone which acts as a gui for app2sd (i think) but when I ran it for the first time I noticed that it did not move any of the apps that came with the rom (all the htc stuff, youtube, facebook, wireless teathering, etc), can these apps be moved and if so how?
Click to expand...
Click to collapse
1) You really can't. Windows doesn't support ext2-3 partitions. There is software out there that will allow it, but most of it is buggy at best. You can see them if it's mounted in Linux though.
2) Do some googling on this one. I'm inclined not to instruct on such things, as "pulled apps" usually end up floating around torrent sites and screwing honest devs out of their $1.99.
3) I don't believe system apps themselves are generally moved, but I may be wrong on that. (it happens sometimes ) If you move the cache, then their cache will be moved, but that's all.
dsMA said:
Hello
I have a few additional questions:
1) how can I access the ext2 partion on my sd card in windows through adb?
I want to be able to do this because I want to confirm that the apps are indeed being installed to the sdcard because I notice the internal storage continues to decrease (now this may be due to the apps cache since I am not putting the cache on the sd card...yet)
I would also like to be able to pull apps.
2) I kind of address my next question with the last statement of question 1, can you still pull apps and if so how?
3) I have DConfig on my phone which acts as a gui for app2sd (i think) but when I ran it for the first time I noticed that it did not move any of the apps that came with the rom (all the htc stuff, youtube, facebook, wireless teathering, etc), can these apps be moved and if so how?
Click to expand...
Click to collapse
I use the app Root Explorer, and you can check your ext on there to see what's in it. Also you can move apps around using that app.
I'll ask this here as it seems to be on topic.
The info below was a real help in getting me straightened out on this thanks.
tkirton said:
1. No difference...they are the same program (i.e. Darktremor A2SD and Darktremor Apps2SD are the same program).
2. Your SD card has to be partitioned for it (it must contain an EXT2 or EXT3 partition on it. EXT4 doesn't always work if the kernel the rom is using doesn't support it). Your rom must be able to launch apps2sd either directly or via Busybox run-parts. Your rom also must have apps2sd installed (doesn't matter which Apps2sd).
Once you have those, the apps2sd should activate automatically on startup (unless it is being prevented via a flag file (Darktremor) or a property value (DamageControl)).
3. Using apps2sd will free up internal storage by moving your applications to the SD card. Some more advanced apps2sd will also have the option of moving the dalvik-cache to the SD card, freeing more internal storage. This will allow you to run more programs without worrying about running out of internal storage (Android tends to act flaky when there's not enough storage for it to work with).
Click to expand...
Click to collapse
OK, so I have wiped the phone and partioned the SD card but A2SD still not working, my ROM says it will work, when I do a ADB check of A2sd app I get this...
C:\AndroidSDK\android-sdk-windows\tools>adb shell
# a2sd check
a2sd check
----------------------------------------------------------------------------
Starting xtr init scripts for a2sd and memory at 07-28-2010 01:38:45
setting variables from default init.apps2sd.conf file in /system/etc/
varialbe capture - xtr.a2sd.data.active false
varialbe capture - xtr.a2sd.apps.active true
varialbe capture - xtr.a2sd.dalvikcache.active true
varialbe capture - xtr.swap.active false
varialbe capture - xtr.swap.swpto swppart
varialbe capture - xtr.swap.swappiness 30
[*] Check for ext partition and move files between /data/ and /system/sd/ as per init.apps2sd.conf s
ettings
[ ] Searching for Mount Point...
[ ] Mount point found..no further action required.
[!] Ext partition found.
[ ] Checking Ext partition...
e2fsck 1.40.8 (13-Mar-2008)
/system/bin/e2fsck: Device or resource busy while trying to open /dev/block/mmcblk0p2
Filesystem mounted or opened exclusively by another program?
8
[!] Mounting ext partitions as ext3.
mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: Device or resource busy
[!!] Mounting ext partition as ext3 failed.
[!] Mounting ext partition as ext2.
mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: Device or resource busy
[!!] Mounting ext partition as ext2 failed.
[!!] Can't use Apps2sd....
#
Any idea what I'm doing wrong? I would really like to move some of this to the large SD card and free up the phone for phone stuff.
Also How dose this effect phone memory use if at all? I would like to maximize usable memory for apps to run in as well as allow the phone to run as fast and reliably as possible.
Still looking for an answer. I can not get a2sd working.
With xtr you have to wipe then flash the rom then boot up and set up your phone but don't download any apps....then go back to recovery and flash the rest like stock apps then reboot and let the phone do its thing then back to recovery and then flash a2sd on then reboot and finish setting up your phone....I encountered that too after flashing then flashed the other modules before turning phone on. Does that make sense?
Do everything one at a time with a restart in between, correct?
indie1138 said:
I'll ask this here as it seems to be on topic.
The info below was a real help in getting me straightened out on this thanks.
OK, so I have wiped the phone and partioned the SD card but A2SD still not working, my ROM says it will work, when I do a ADB check of A2sd app I get this...
C:\AndroidSDK\android-sdk-windows\tools>adb shell
# a2sd check
a2sd check
----------------------------------------------------------------------------
Starting xtr init scripts for a2sd and memory at 07-28-2010 01:38:45
setting variables from default init.apps2sd.conf file in /system/etc/
varialbe capture - xtr.a2sd.data.active false
varialbe capture - xtr.a2sd.apps.active true
varialbe capture - xtr.a2sd.dalvikcache.active true
varialbe capture - xtr.swap.active false
varialbe capture - xtr.swap.swpto swppart
varialbe capture - xtr.swap.swappiness 30
[*] Check for ext partition and move files between /data/ and /system/sd/ as per init.apps2sd.conf s
ettings
[ ] Searching for Mount Point...
[ ] Mount point found..no further action required.
[!] Ext partition found.
[ ] Checking Ext partition...
e2fsck 1.40.8 (13-Mar-2008)
/system/bin/e2fsck: Device or resource busy while trying to open /dev/block/mmcblk0p2
Filesystem mounted or opened exclusively by another program?
8
[!] Mounting ext partitions as ext3.
mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: Device or resource busy
[!!] Mounting ext partition as ext3 failed.
[!] Mounting ext partition as ext2.
mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: Device or resource busy
[!!] Mounting ext partition as ext2 failed.
[!!] Can't use Apps2sd....
#
Any idea what I'm doing wrong? I would really like to move some of this to the large SD card and free up the phone for phone stuff.
Also How dose this effect phone memory use if at all? I would like to maximize usable memory for apps to run in as well as allow the phone to run as fast and reliably as possible.
Click to expand...
Click to collapse
Did you move ext 2 to ext 3? What allocations did you make? 512 mb for apps? It's been a while since I've done this so it's no longer fresh on my mind.
Why not install one of the Froyo roms? You don't have to format the sd (or do anything special with it) for apps2sd to work. In fact, if your sd is partitioned now, the rom will ask you if you'd like to reformat it at the first boot (which removes the partition for you). The only catch with these roms (or at least KaosFroyo) is you can't move system apps to the sd card (yet) and any app that you use widgets with or apps such as home launchers, texting, etc should be saved in internal memory or you'll have errors each time you usb mount or reboot. I've got a lot of apps installed (many on my internal for the reason listed above) and I'm only at about 35% internal storage. It's a quick rom too.
Sent from my FroyoEris using XDA App
I am using DamageR Rom and it has DamagedConfig but I can't get any of the apps to my sd. I don't know what to do. I've been looking around for the answer and I just can't figure it out. The creator said to look for it on one of the a2sd threads but I just can't get it right.
indie1138 said:
I'll ask this here as it seems to be on topic.
The info below was a real help in getting me straightened out on this thanks.
OK, so I have wiped the phone and partioned the SD card but A2SD still not working, my ROM says it will work, when I do a ADB check of A2sd app I get this...
C:\AndroidSDK\android-sdk-windows\tools>adb shell
# a2sd check
a2sd check
----------------------------------------------------------------------------
Starting xtr init scripts for a2sd and memory at 07-28-2010 01:38:45
setting variables from default init.apps2sd.conf file in /system/etc/
varialbe capture - xtr.a2sd.data.active false
varialbe capture - xtr.a2sd.apps.active true
varialbe capture - xtr.a2sd.dalvikcache.active true
varialbe capture - xtr.swap.active false
varialbe capture - xtr.swap.swpto swppart
varialbe capture - xtr.swap.swappiness 30
[*] Check for ext partition and move files between /data/ and /system/sd/ as per init.apps2sd.conf s
ettings
[ ] Searching for Mount Point...
[ ] Mount point found..no further action required.
[!] Ext partition found.
[ ] Checking Ext partition...
e2fsck 1.40.8 (13-Mar-2008)
/system/bin/e2fsck: Device or resource busy while trying to open /dev/block/mmcblk0p2
Filesystem mounted or opened exclusively by another program?
8
[!] Mounting ext partitions as ext3.
mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: Device or resource busy
[!!] Mounting ext partition as ext3 failed.
[!] Mounting ext partition as ext2.
mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: Device or resource busy
[!!] Mounting ext partition as ext2 failed.
[!!] Can't use Apps2sd....
#
Any idea what I'm doing wrong? I would really like to move some of this to the large SD card and free up the phone for phone stuff.
Also How dose this effect phone memory use if at all? I would like to maximize usable memory for apps to run in as well as allow the phone to run as fast and reliably as possible.
Click to expand...
Click to collapse
Looks like you are on one of my ROMs in which case there is a good write up in the 1st post of both my ROM threads that should get you going
Sent from my ERIS using XDA App
Can someone please explain to me how to correct is problem? I'm new to installing roms and rooting. I'm using clockwork.
No app2sd partition found. Skipping format of /sd-ext.
Get rom manager app from market and flash clockwork recovery, then partition your sd card to get an ext.
Or do this with amon ra recovery.
Sent from my HTC
Thanks for the advice. I been trying to install cyanogenmod 6 on my evo. Are there any specific setting of an 8g sdcard and do i still need to install a ENGbootloader if i partition my card?
No app2sd partition found. Skipping format of /sd-ext.
--Installing: SDCARD: /clockworkmod/download/mirror.kanged.net/cm/stable/supersonic/update-cm-6.0.0-supersonic-signed.zip
Finding update package...
Opening update package...
Installing update...
Welcome to Cyanogenmod-6.0.0-Supersonic!
assert failed: getprop("ro.bootloader") =="0.76.2000"
getprop("ro.bootloader")=="0.79.0000"
E: Error in /sdcard/clockworkmod/download/mirror.kanged.net/cm/stable/supersonic/update-cm-6.0.0-Supersonic-signed.zip
(status 7)
Installation aborted.
/tmp/recovery.log was copied to /sdcard/clockworkmod/recovery.log. Please open ROM Manager to report the issue
im having the same time of problem! help
Solution for No app2sd partition found. Skipping format of /sd-ext
Hi,
Background:
I have a beloved ZTE BLADE.
Had a new 8 GB Class6 microSD card.
I don't have external SD card reader!
Goal: To partition SD card with FAT32 and ext2 partition to use app2sd feature.
Problem: ClockWork 3.0.1.4 (CW) can't do partitioning. (Exactly it say it is done, but after it can't find ext partition.)
Message is: No app2sd partition found. Skipping format of /sd-ext
Solution:
1. adb shell - (There are some guide for beginner how to do this.)
2. umount /dev/block/mmcblk0p1 (or else parted will crash. Also fdisk can't write partition table because of used partition on same device!)
3. fdisk /dev/block/mmcblk0 partition to fat+ext2 Don't forget to write it at end!
4 Manually make ext2 fs:
#mkfs.ext2 /dev/block/mmcblk0p1
5. Manual mount of ext2 partition. ( Or else you will faced with error message later. CW will not se the EXT2 partition !!! )
Error message if you skip this step:
No app2sd partition found. Skipping format of /sd-ext.
# mount /dev/block/mmcblk0p2 /sd-ext
6. Umount ext.
# umount /dev/block/mmcblk0p2
Tadamm! Voala...
CW will be able to format EXT partition and mount it.
The trick was manual umount FAT partition + manual mount ext2.
Regards,
Robert Szabo
No known solution (so far) for Nook Color
This weird problem is showing up when I am using Clockwork to prepare my Nook Color for installing an Android installation. It is appearing pretty consistently right now.
I have looked at various solutions:
1. Creating an ext partition on the SD card
This involves going to the Advanced selection on Clockwork and partitioning the SD card. This is a bad idea, because it (obviously) wipes the SD card completely, removing Clockwork and making the SD card un- bootable. As a result, you cannot do anything else with Clockwork (including, of course, any flashing!).
2. Attempting to create an app2sd partition on the Clockwork SD
I noticed that the Clockwork image, when placed on an 8 GB SD card, leaves about 380 Mb of unallocated space. Using EASUS I attempted to allocate some space for a partition called "app2sd". I do not know if this would have solved the problem, because ASUS is unable to create the partition. When you do the Apply in EASUS, it acts like it is creating the new partition, but then it reverts everything back to unallocated.
3. Searching for solutions on the Net
This is a waste of time, because most of the solutions people have given are either not for SD cards with Clockwork on them, or they presume that you already have a flashed and running installation and suggest using an installed Clockwork in order to create the partition. Since I am trying to get it to work properly on a Clockwork SD, these solutions do not help.
What is needed is either a Clockwork installation procedure that places an app3sd partition on the SD card when the image is put on, or a way to place an app2sd partition on the card after the Clocwork image is put on it.
This of course assumes that the app2sd partition is even needed on the Clockwork SD. If it isn't, then could somene please tell me so that I ccan forget about this problem?
Otherwise, does anyone know of a way to get this partition on a Clockwork SD card?
Thanks in advance for any information...
before putting the ROM preferred to do this: put the original CWM / + volume buttons and power / do 2 wipe / replace the modified CWM / do the other 2 in advanced wipe / format system / install the ROM favorite / and you're ok .
* doing so I have solved this problem.
I AM NOT RESPONSIBLE IF YOU DAMAGED YOUR SDCARD OR NOOK TABLET
WHAT IS THIS?
It's a flashable file (a file that you can install from recovery) that will create a bootable SDCard for your Nook Tablet.
What it does is creates 4 partitions on your SDCard.
100MB for partition 1 (BOOT)
400MB for partition 2 (SYSTEM1)
Size for partition 3 (DATA1) and partition 4 (SDCARD) vary.
It'll also copy over boot files to your SDCard, making the SDCard bootable on your Nook Tablet.
INSTRUCTIONS:
This will only work with the provided CWM 6.0.2.9 because it contains fdisk with advanced options.
Format your SDCard with SDFormatter if you are on Windows and OSX. Linux? GParted.
Copy CWM 6.0.2.9 recovery (renamed the internal recovery img to recovery.img) to your SDCard.
Copy flashable_create_bootable_sdcard.zip to your internal storage.
if [ Stock_Rom ]; then
# If you are still on Stock Rom, you need to be rooted and have terminal installed.
# Open up terminal.
# Backup stock recovery
su
dd if=/dev/block/mmcblk0p3 of=/sdcard/stock_recovery.img
# Store the stock_recovery.img on your computer for future need.
# Install CWM 6.0.2.9 recovery
dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p3
# Boot to recovery. Power up device by holding Power + Home keys.
else
# If you already have previous CWM version of recovery installed, just flash the new one.
reboot recovery
fi
Insert formatted SDCard.
Make sure the USB cable is not plugged into your computer.
1) Install zip from sdcard
- choose zip from internal sdcard
- flashable_create_bootable_sdcard.zip
Ignored the "can't unmount /dev/block/mmcblk1p1".
Be patient with the loading bar. It's not frozen, just wait.
The larger the data1 size, the longer the process take.
Power off device and turn it on again.
If successful, it will boot into Cyanoboot.
Then you can install *SDC Rom.
The default data1 (Partition 3) size is 600MB in flashable_create_bootable_sdcard.zip.
My recommendation.
600MB is for 2GB SDCard
1000MB is for 4GB SDCard
2000MB is for 8GB SDCard
3000MB is for 16GB-64GB SDCard
To make data1 size larger, just rename the file 'createsd_*.sh' to 'createsd.sh' inside flashable_create_bootable_sdcard.zip.
createsd_600MB.sh
createsd_1000MB.sh
createsd_2000MB.sh
createsd_3000MB.sh
*added 4000MB and 5000MB scripts. Rename createsd_X000MB.sh.txt to createsd.sh.
Do test and tell. I've only tested on 2GB, 4GB, and 32GB sdcard.
I'm curious how I go about installing a rom onto the sd card after i have this?
Koneesha said:
I'm curious how I go about installing a rom onto the sd card after i have this?
Click to expand...
Click to collapse
There should be a guide on how to flash ROMs to SD somewhere in the forum...it was intended for making a triple boot Nook...although the scripts may not work for CM10/10.1 as they were for CM7/9
If you find it (back 1-2 pages) you could use it, if I find it I'll link you...
http://forum.xda-developers.com/nook-hd?nocache=1&z=7773671285249293
If you indeed have a Nook HDplus, then you are posting in the wrong forum. Try posting in a HD+ forum and perhaps someone might be willing to help, in spite of your rather abrasive attitude.
SD-based CM11 ROMs for HD+:
http://forum.xda-developers.com/showthread.php?t=2583952
http://forum.xda-developers.com/showthread.php?t=2600572
http://iamafanof.wordpress.com/2013/12/20/cm11-0-kitkat-android-4-4-2-for-nook-hd-xx-20dec2013/
Hello
The following guide will explain how to free your File System root partition by moving most of your apps/games to a new partition on your external SD Card.
I recommend to use at least a Class-10 SD-HC SD Card.
I've checked the following on my ZTE Nubia Z7 Mini, but AFAIK it should be working with all Z7's versions.
(please report if you can... )
IMPORTANT!
NEVER use custom TWRP recovery ver 2.8.1 (maybe 2.8.0.... latest 2.8.3) for re-partition microSD card in this phone!
When you try to perform this operation will be erase INTERNAL phone memory instead mircoSD, GPT partition table will be damaged and your's device turn into a Hard brick.
If you have not made a backup EFS+NV of your device, it may happen that it is impossible to recover and it will turn into iPods
Thank you @Harwest
1. Backup your 64gb SD card to PC.
2. Via PC - use MiniTool Partition Wizard to create 2 partitions on your SD card.
one partition should be formatted as exFat and will be your data partition (and so will be the largest!)
second directory should be EXT4 and will be your new system partition (all apps will be installed to this partition-will see that later)
my settings are - 54gb for exFAT partition 1, and the rest for the EXT4 partition.
3. after you've done all partitioning etc, insert the SD card to your phone.
4. go to Settings --> About Phone --> Storage --> Choose Primary Storage --> SD CARD
5. restart your phone.
6. Install "Link2SD" from Google Play.
7. when you first open the App, it will ask you which type of 2nd partition you have, choose EXT4, afterwards restart phone (it will ask you to do so).
8. open Link2SD and filter the list by "ON INTERNAL" and start moving applications by choosing the app you want to move and choose "Create Link". now make sure you check all 3 checkboxes (or 4 if you have the paid version on L2SD).
you'll see that your original system partition is getting bigger! that's all
Enjoy!
Thank for this info
tnx for the info.
i used a slightly different approach:
1. repartion the internal sdcard. (enlarged the 'userdata' partition to 11.7GB, shrunk the 'grow' (internal storage) partition to 1GB).
2. go to Settings --> About Phone --> Storage --> Choose Primary Storage --> SD CARD (== external sdcard)
so apps have 11.7GB, external storage is the full size of de sdcard (here 64GB).
done.
---
Per request a tutorial:
WARNING: DANGEROUS.
you can brick your device!
I do not know if this tutorial works with a rom other than stock (or stock based; i.e.: cuoco92). Because of the built in option to set external sd as primary storage. The partition tool should work on all z7 mini and z7 max.
What will this tutorial do?
Repartition tool:
it will :
backup your partitions (in a backup folder).
change the 'userdata' partition size to the given value
change the 'storage' (called: 'grow') partition (internal sd / sdcard0) to the size left on the internal sd.
i.e.: default 'userdata' = 2GB, 'storage' = 10GB, total 12GB. When giving 11GB to the repartition tool the new layout will be: 'userdata' 11GB, 'storage' 1GB, total 12GB.
Change primary storage in ROM:
The setting 'change primary storage to SD card will change symlinks in the rom from /storage/sdcard0 to /storage/sdcard1. Result is that every app in the rom thinks sdcard1 is sdcard0.
I do not know if other roms (i.e.: Mokee / CM11) have this built in option.
The tutorial:
Preparations:
MAKE A BACKUP OF EVERYTHING AND COPY TO A COMPUTER (or external SD).
Internal storage will be backuped by the tool (and restored). But for performance empty it.
external storage will not be emptied (make a backup to be safe).
clean install is highly recommended, but not necessary.
installed rom will NOT be wiped. You can boot normally after the procedure.
CWM recovery mandatory.
adb access to the phone (so install drivers etc).
Step1: Using the resize tool (resizeZ7_1024.Rayures.v01.zip):
Repartition Internal SD (z7 Mini and z7 Max):
reboot phone to recovery
i.e.: "adb reboot recovery"
unzip the zip
run RUN.bat
or: open 'command window' in the folder and run RUN.bat
select 1 (backup - delete - rebuild)
give size for 'userdata' partition
(Z7 mini: max = 11GB). 12GB gives no usable partition. 1GB internal data partition left, which i think is needed
done
notes:
just always use the 1 option and MAKE SURE the backup has been created! When the backup is missing or broken you WILL brick.
this thread also has a lot about the partition tool, use the search.
Step2: Set external SD as primary
Boot phone.
Go to: Settings --> About Phone --> Storage --> Choose Primary Storage --> SD CARD
reboot phone
done
The tool: resizeZ7_1024.Rayures.v01.zip (5.48 MB):
original from official nubia forum:
http://bbs.nubia.cn/
my changes:
-translated to English
-enhanced recognition of phone model
-added a 'partition info' option (to see the current partition layout)
tnx to:
-all the xda people who already used the tool in: <thread>
-original dev of the tool
Have an addition to this tutorial ? please do so via PM.
rayures said:
tnx for the info.
i used a slightly different approach:
1. repartion the internal sdcard. (enlarged the 'userdata' partition to 11.7GB, shrunk the 'grow' (internal storage) partition to 1GB).
2. go to Settings --> About Phone --> Storage --> Choose Primary Storage --> SD CARD (== external sdcard)
so apps have 11.7GB, external storage is the full size of de sdcard (here 64GB).
done.
Click to expand...
Click to collapse
Yea, I know that way , but I think it's more risky than my method...
repartitioning your internal memory can cause some trouble later on upgrades etc...
but thanks anyway, If you can, post a detailed guide so people can use your method also. :good:
Hi guys!
NEVER use custom TWRP recovery ver 2.8.1 (maybe 2.8.0.... latest 2.8.3) for re-partition microSD card in this phone!
When you try to perform this operation will be erase INTERNAL phone memory instead mircoSD, GPT partition table will be damaged and your's device turn into a Hard brick.
If you have not made a backup EFS+NV of your device, it may happen that it is impossible to recover and it will turn into iPods
Best way for repartitioning Nubia Z7 mini?
OK, but which is the best and most save way for repartitioning Nubia Z7 mini? Which custom ROMs are compatible with this mod and advisable? Thanks for your help!
tie-fighter said:
OK, but which is the best and most save way for repartitioning Nubia Z7 mini? Which custom ROMs are compatible with this mod and advisable? Thanks for your help!
Click to expand...
Click to collapse
Best & safe method for repartition microSD card:
Use a laptop/computer with a card reader and software like as "MiniTool Partition Wizard Home Edition" (freeware) http://www.partitionwizard.com/free-partition-manager.html
Insert to cardreader with your's sdcard, run "Partition Wizard", select existing partition on sdcard and press "Resize/Move".
Resize partition so that the end is left free space volume approx 1....2....3Gb (as you wish).
After that select free space and press "Create", create new primary partition, format EXT2 or EXT3.
Press "Apply" for start all process.
Resize procedure of existing partition is safe, nothing is lost. But just in case you can pray, drink or smoke:laugh:
Im struggling with this, although seems easier, i think I am doing something wrong.
fbloise said:
Im struggling with this, although seems easier, i think I am doing something wrong.
Click to expand...
Click to collapse
you don't need to struggle..
Just do the safe method on post #1, follow exactly the steps I wrote and you'll be OK.
if you have any specific question please post it here. :good:
I've used the ripartition method wit an EXT4 and a exFat on my 32 gb memory.
Link2SD goes very well also with the CM12 rom.
Just few questions ...
1 - Should I format the entire system for a clean reinstall of the ROM, what would happened to the programs in ext4 partition? Should I've to re-install them or they remain stored or should I do some other action?
2 - If I'll change memory ... I've to copy the program with linux, right?
lelepanz said:
I've used the ripartition method wit an EXT4 and a exFat on my 32 gb memory.
Link2SD goes very well also with the CM12 rom.
Just few questions ...
1 - Should I format the entire system for a clean reinstall of the ROM, what would happened to the programs in ext4 partition? Should I've to re-install them or they remain stored or should I do some other action?
2 - If I'll change memory ... I've to copy the program with linux, right?
Click to expand...
Click to collapse
1. I think the best way is to use MODACO titanium backup and after rom is replaced, to restore the apps.
other method is to use Link2SD to move the apps back to phone memory (not all of them..) and then use TB same as above...
2. you can just use any partition manager software in order to copy the partitions as it. try to use Gparted live, I think it's the most clean way..
please report back what was working best for you
thanks!
HEY GUYS!
Today I am going to explain how to Increase Internal memory or link app data to secondary storage of sdcard.
Before getting into the process
REQUIREMENTS:good:
1)Rooted device
2)sdcard with parted as FAT32 and EXT2 or EXT3
3)Link2sd APP
4)Root Explorer APP
5)patience and a little knowledge in android
Your Android device should be rooted and sdcard should be parted as FAT32 and EXT2 or EXT3.
Now install Link2sd app and and open it you get popup that to select secondary sdcard format you have to select EXT2 or EXT3 which you have created.Then you will get a message mount scripts created then reboot the device.
After reboot install Root Explorer app and open it and press mount R/W at top and give root permissions
now,it will look like mount R/O
go to /data
you will see folders app,app-private,dalvik-cache
move them to /data/sdext2
after moving completes select one of the folder
and long press it or at bottom right side of the page press that dotted button then a big options list opens now press link to this folder
Now,go to /data and press create link
you notice folder linked
repeat this for app-private,dalvik-cache.
Let's create link for data of apps for that create folder in /data/sdext2 and name it data
select a file from /data/data and move it to /data/sdext2/data and create link where you brought the file
But be carefull do not move superuser data so that superuser will forcestop due to lack of data and you need to reboot to get back superuser function back
If everything was done correctly then your internal memory will increase after rebooting device:laugh:.
There are so many forums based on this method in xda but i made some changes in here . Be carefull I doesnt take any responsibility caused to your device.
THIS WAS MY FIRST THREAD SO THERE MAY BE MISTAKES IN SCRIPT SORRY FOR THAT
Sorry guys?
In the above post:good: we have learned how to mount secondary sd-card partition and link data files.
But the main point is that the method works upto ANDROID 5.1.1 LOLLIPOP only this method is not working with ANDROID 6.0 MARSHMALLOW.
In android 6.0 system itself asks us to set sd-card as internal or portable.
*portable:sd-card will mounted for just storage for photos,music not for apps data but you can connect to pc and send files in mtp mode and no need to be formated to mount.
*internal:sd-card will be mounted for apps data but not shown in mtp mode to transfer files from pc and aslo need to be formated for mounting if we insert partitioned sd-card then the partition will be erased.
*If we insert a partitioned sd-card the system says as corrupted sd-card but after reboot the primary,secondry sd-card partitions will be mounted as portable sd-cards and if you select for internal type the partition will be erased.
After all this Link2sd cant mount the secondary partition.
Solution is in the post #3
FINALLY HERE IS THE SOLUTION FOR MARSHMALLOW
1)Download "Apps2SD" free app or pro app from playstore.
2)Open the app and grant root access for it.
3)Now in the menu press "Partition Tool (Adoptable)" and create partitions of sdcard as you wish and then reboot and again from app menu press "Link apps to SD card" and choose the secondary sd-card partition you have created.
4)Then finally the mount script has been created for sd-card.
5)Now you can access link2sd also without creating mount script again
PRESS THUMBS-UP BUTTON IF THIS HELPED