Link2sd mount lost after rebooting

Oct 26, 2015
22
6
0
hello,

currently I am reinstalling my now around one year old honor 5x.
Since I bought it, it was on b130 and could not update because of a custom TWRP recovery and root access.
So now I sat down, installed a stock b140, updated to b330 (android 6) and then installed CyanogenMod (Nightly). Many problems occurred on the way but until now I found all my questions answered in old threads.

Now the system runs smoothly and I can start configuring it. This includes Link2sd in order to be able to force move large apps to my sd card and linking them to the system. But this time I have quite a lot problems with this.

I started by doing the exact same thing like last time:
  1. shut down the phone, take SD Card out of the phone and plug into computer
  2. create around 80% primary partition fat32 and 19% primary partition ext4 (also tested ext2) (the 1% is unused space)
  3. Then plug the sd card back in and start the phone
  4. ES Datei Explorer now shows three "spaces": the internal space, the large fat32 sd partition and the small ext4 sd partition (all three can be written and read on)
  5. Now start Link2SD. It recognices the second partition and askes what filesystem there is. I choose "ext4" and press OK
Here is my main problem: The app gives me an error:
Code:
[B]Error in mount script[/B]
Could not create mount script.

mount: '/dev/block/vold/public:179_66'->'/data/sdext2': Invalid argument
So the mount script could not be created and in the threads on xda there are some possible "solutions":
  • trying different filesystems: ext2, ext3, ext4 -> I tried all of them
  • clearing dalvik-cache -> I also tried that
  • formatting the sd card inside the phone with a app called "AParted" -> no help at all
  • Make Link2sd to a system app -> I did this by moving the folder from Link2sd from /app/data/ to /app/system/ (I hope this is enouph to be a system app, but Link2sd is starting normal after a reboot and is also not listed anymore under "user apps", instead now I can find it unter "system apps" ... so I think this worked fine)
  • ...

The interesting part now is, that I can go in my system settings of android -> Spaceusage (don't know how it is exactly called in english) -> and then unmount only the ext4 partition of the sd card (the fat32 is still mounted).
After I do that, Link2SD can create the mount script !!!
The dialog after creating the mount script says, that I have to reboot the system in order to finish the process. But when I do so, after the reboot the "normal" mount of the system is there again and Link2sd is asking for the filesystem again. So no "special" mount for linking possible.

So now my question:
How can I fix this issue? Can I
  • force android to stop mounting the ext4 on booting and let Link2sd's script do the mounting?
  • do I have to set special permissions to the created mounting script?
  • Is there a other way to make Link2sd work properly? Do I missed something? (last time it worked this way, but maybe something changed due the time?)
  • is Link2sd maybe incompatible with android 6.0?

Thanks for any help and any suggestion.

greetings
Chriss
 

Romiui

Senior Member
Mar 4, 2012
1,060
673
143
33
Doha
OH MY GOD .. That long to read ,

Install Cm Nightly Last Version with Recovery .
Format Ur SD Card throw ur laptop \PC
When u boot to New CM go Settings > Storage > Format SD Card after that u will be asked to use it as internal or external , use it as internal so it will be added to ur internal 10GB without using app2sd any more =) ..

*Recommendation : use Class 10 SD card only otherwise ur phone will become slow ! .
GD luck ! =)
 
  • Like
Reactions: christopher2007
Oct 26, 2015
22
6
0
thanks very much. At first, this did not work. But after reinstalling CM I could use your method.
But two questions:
  1. The App ES File Explorer just shows one internal storage. Correct so far, bu I have 10GB intern and 60GB extern SD, so there should be 70GB internal storage shown. But ES FIle Explorer just shows 60GB internal storage. Is this a bug? Do I have to worrie?
  2. Under the system settings -> storage I can see the internal 10GB and the external 60GB seperately. Does the system take care of the "migrate files" it self in order to lower the usage of the real internal storage? Or do I have to go the the settings time to time in order to click the "migrate files" manually?

greetings and thanks for any help so far :)
Chriss
 

thilak devraj

Senior Member
Jun 12, 2016
2,036
651
0
bangalore
i wouldnt recomend doing a partition, as cm always did it for me, it recognizes only the ext4 partition and says cant mount as link2sd, so if you want link to sd, then try not patitioning the card, worked fine on mine once..
 

Romiui

Senior Member
Mar 4, 2012
1,060
673
143
33
Doha
thanks very much. At first, this did not work. But after reinstalling CM I could use your method.
But two questions:
  1. The App ES File Explorer just shows one internal storage. Correct so far, bu I have 10GB intern and 60GB extern SD, so there should be 70GB internal storage shown. But ES FIle Explorer just shows 60GB internal storage. Is this a bug? Do I have to worrie?
  2. Under the system settings -> storage I can see the internal 10GB and the external 60GB seperately. Does the system take care of the "migrate files" it self in order to lower the usage of the real internal storage? Or do I have to go the the settings time to time in order to click the "migrate files" manually?

greetings and thanks for any help so far :)
Chriss
use the phone as it is and dont look @ how many gb throw EFS manager , u have 70 GB and u have huge amount of saving , just keep ur sd card backup 60gb is large but hope u dont save much on it without backup , much data saved = much tears if lost !. GD luck .
 
  • Like
Reactions: christopher2007
Oct 26, 2015
22
6
0
use the phone as it is and dont look @ how many gb throw EFS manager , u have 70 GB and u have huge amount of saving , just keep ur sd card backup 60gb is large but hope u dont save much on it without backup , much data saved = much tears if lost !. GD luck .
ok, thanks a lot. The system is working fine now, but I now wanted to create a backup from the fully furnished phone and TWRP is not able to do so. On the internal memory TWRP says "not enouph space" and on the external (/external_sd/) it saysy out of memory. So how can I now create a backup?
Before the new external sd extension for the internal memory i was able to create backups, but with the new setting it seems impossible.

greetings
Chriss
 

Romiui

Senior Member
Mar 4, 2012
1,060
673
143
33
Doha
ok, thanks a lot. The system is working fine now, but I now wanted to create a backup from the fully furnished phone and TWRP is not able to do so. On the internal memory TWRP says "not enouph space" and on the external (/external_sd/) it saysy out of memory. So how can I now create a backup?
Before the new external sd extension for the internal memory i was able to create backups, but with the new setting it seems impossible.

greetings
Chriss
u can make ur SD card 2 partitions , backup ur sd then Format it then throw TWRP just partition the Sd Card 2 partitions . Will work :) .. GD Luck !
 
  • Like
Reactions: christopher2007

jkccl9

Senior Member
Feb 15, 2015
1,033
340
103
ok, thanks a lot. The system is working fine now, but I now wanted to create a backup from the fully furnished phone and TWRP is not able to do so. On the internal memory TWRP says "not enouph space" and on the external (/external_sd/) it saysy out of memory. So how can I now create a backup?
Before the new external sd extension for the internal memory i was able to create backups, but with the new setting it seems impossible.

greetings
Chriss
move stuff off your phone to free up space
 
  • Like
Reactions: jon98
Oct 26, 2015
22
6
0
u can make ur SD card 2 partitions , backup ur sd then Format it then throw TWRP just partition the Sd Card 2 partitions . Will work :) .. GD Luck !
ok, in theory there must be two partitions on the sd card:
  • most of the memory as extention for the internal android storage
  • a little free space as fat32 for backups and as "external sd card"

But I am not able to achieve this. I tried this:
  • first idea: formatting on computer, then put it in phone and select "extend for internal storage" for the first partition. but then the phone formats the whole sd card and the second fat32 partition disappears
  • second idea: backup the extended partition, then formatting and creating the two partitions and restore the backup to the first partition. but the "android extended partition" can not be read by my programs. So how can I achieve this? Or is there an other way?

greetings
Chriss
 
Oct 26, 2015
22
6
0
Your life will be easier if you use MiniTool Partition Wizard. Fully wipe your card, then repartition with EXT4 through that.
I already used this program. It is a very useful tool, but it didn't work.
I did it like the following:
  1. put sd out of phone into computer
  2. start MiniTool and wipe
  3. delete all partitions
  4. create two new partitions: first a primary fat32 at the beginning of the sd card (10GB) and on the rest at the end create a second primary ext4 partition (50GB)
  5. wait until finish, unplug from pc and back into phone
  6. reboot phone
  7. in the android menu under "storage" klick on the 50GB ext4 partition
  8. over the menu klick on "use as internal storage extention", but then he warns that the fully sd card will be formatted. when I klick no, he returns to the previews menu. If I klick yes, he creates a 60GB unreadable "android_extended" partition and adds this to the internal storage. So my little fat32 partition will get lost :(

What am I doing wrong?

greetings
Chriss
 

gopinaidu77

Senior Member
Jan 23, 2015
6,948
4,613
0
I already used this program. It is a very useful tool, but it didn't work.
I did it like the following:
  1. put sd out of phone into computer
  2. start MiniTool and wipe
  3. delete all partitions
  4. create two new partitions: first a primary fat32 at the beginning of the sd card (10GB) and on the rest at the end create a second primary ext4 partition (50GB)
  5. wait until finish, unplug from pc and back into phone
  6. reboot phone
  7. in the android menu under "storage" klick on the 50GB ext4 partition
  8. over the menu klick on "use as internal storage extention", but then he warns that the fully sd card will be formatted. when I klick no, he returns to the previews menu. If I klick yes, he creates a 60GB unreadable "android_extended" partition and adds this to the internal storage. So my little fat32 partition will get lost :(

What am I doing wrong?

greetings
Chriss
Don't click yes , just click No and reboot .

Sent from my KIW-L22 using Tapatalk
 

Romiui

Senior Member
Mar 4, 2012
1,060
673
143
33
Doha
ok, in theory there must be two partitions on the sd card:
  • most of the memory as extention for the internal android storage
  • a little free space as fat32 for backups and as "external sd card"

But I am not able to achieve this. I tried this:
  • first idea: formatting on computer, then put it in phone and select "extend for internal storage" for the first partition. but then the phone formats the whole sd card and the second fat32 partition disappears
  • second idea: backup the extended partition, then formatting and creating the two partitions and restore the backup to the first partition. but the "android extended partition" can not be read by my programs. So how can I achieve this? Or is there an other way?

greetings
Chriss
If u format throw TWRP 2 partitions into TWRP u can find only backup partition and into ur system u can find the second as SD and the other into internal under name ext-Sd2

Not sure about the last name but sure ull find it :)

GD Luck !