[Q] Can't mount second Link2SD partition in CM 11 - General Questions and Answers

I'm not a programmer - I just did my first root of my Galaxy S4 Blaze last month so please bear with me. I posted this under XDA Assist but that was the wrong place...
Yesterday I flashed a version of CM 11 that I had been using for a month with no problems because of some weird things happening with the newer CM 11 nightly I got a couple of days ago. This is what I'm now using again:
cwm-11-20150119-NIGHTLY-t769.zip
When I reinstalled Link2SD after flashing this ROM, I set it to Ext4 as it was before and I got this error:
"Mount Script Error - mount script cannot be created. Can't create handler inside thread that has not called Looper.prepare(0)."
Link2SD was working fine before I wiped the phone and reflashed the older CM 11. I tried uninstalling Link2SD, rebooting, reinstalling and then trying the other formats (Ext 2, 3) with the same result.
Not knowing what else to do I backed up my card and used Mini Partition Wizard to delete and recreate the partitions (FAT32 and Ext4) . Exact same error in Link2SD.
I tried making both partitions FAT32, same error.
I have no idea what else to try here. Can someone help me, please?

kanjigirl said:
I'm not a programmer - I just did my first root of my Galaxy S4 Blaze last month so please bear with me. I posted this under XDA Assist but that was the wrong place...
Yesterday I flashed a version of CM 11 that I had been using for a month with no problems because of some weird things happening with the newer CM 11 nightly I got a couple of days ago. This is what I'm now using again:
cwm-11-20150119-NIGHTLY-t769.zip
When I reinstalled Link2SD after flashing this ROM, I set it to Ext4 as it was before and I got this error:
"Mount Script Error - mount script cannot be created. Can't create handler inside thread that has not called Looper.prepare(0)."
Link2SD was working fine before I wiped the phone and reflashed the older CM 11. I tried uninstalling Link2SD, rebooting, reinstalling and then trying the other formats (Ext 2, 3) with the same result.
Not knowing what else to do I backed up my card and used Mini Partition Wizard to delete and recreate the partitions (FAT32 and Ext4) . Exact same error in Link2SD.
I tried making both partitions FAT32, same error.
I have no idea what else to try here. Can someone help me, please?
Click to expand...
Click to collapse
Perform a full wipe, including all storages, clean install rom, clean install Link2SD. Try not using any backups and you should be fine.

LS.xD said:
Perform a full wipe, including all storages, clean install rom, clean install Link2SD. Try not using any backups and you should be fine.
Click to expand...
Click to collapse
This is what I was thinking - so it's some kind of little glitch, not related to the card? By cleaning storages do you mean clearing all the caches?

kanjigirl said:
This is what I was thinking - so it's some kind of little glitch, not related to the card? By cleaning storages do you mean clearing all the caches?
Click to expand...
Click to collapse
I mean format system, data, cache, dalvik and the sd card in custom recovery before flashing your new system

LS.xD said:
I mean format system, data, cache, dalvik and the sd card in custom recovery before flashing your new system
Click to expand...
Click to collapse
Before I saw this answer I did this:
In CWM recovery I wiped to factory settings, cleared the cache, cleared Dalvik cache, installed the zip of CM 11 and Gapps. When I rebooted I installed Link2SD and got the same error.
I missed a few steps in your process so will try it again now...

Did it again with the additional steps of formatting the /system and /data folders - no change, same error in Link2SD.
I got in touch with the developer and he sent me a fresh beta APK version, I installed that, and it worked immediately. So, problem solved. Thanks for your help, at least I know the correct process for flashing a ROM now.

Related

Internal Memory full?

Hi all, I just flashed CM7 using the newest clockwork mod recovery. Now it says my internal memory is full. I havnt deleted anything internally since I got the phone. What is the best way to format that memory and reinstall a fresh copy of CM7?
Kaczman said:
Hi all, I just flashed CM7 using the newest clockwork mod recovery. Now it says my internal memory is full. I havnt deleted anything internally since I got the phone. What is the best way to format that memory and reinstall a fresh copy of CM7?
Click to expand...
Click to collapse
Go to recovery......in recovery go wipe cache, factory reset/data, go to mounts/storage and format system, data, cache....go to advance and delete dalvik cache..... then just install zip from sd, choose zip, flash taht **** and reboot your phone
Awesome!! thanks bud!
I don't mess with CWM wiping partitions anymore, I wrote a flashable script for that - a long time ago there was an issue with that on CWM 4.0.0.8
A member has confirmed that A01 wipe will be okay if you turn off and have no ROM installed, you will still be able to get to CWM and flash whatever you want.
A01 wipe will format /cache, /data and /system
B01 wipe will format /cache and /data
Use as needed.
I keep a backup memory card with my phone at all times that has A01 wipe, B01 wipe, and my original CWM backup of my stock system on it, in case I ever need to go back to stock if something goes wrong.
Attached are the scripts, just throw these on your sdcard and flash like normal in CWM if you need to, before installing a ROM or patch if needed.
Blue6IX said:
I don't mess with CWM wiping partitions anymore, I wrote a flashable script for that - a long time ago there was an issue with that on CWM 4.0.0.8
A member has confirmed that A01 wipe will be okay if you turn off and have no ROM installed, you will still be able to get to CWM and flash whatever you want.
A01 wipe will format /cache, /data and /system
B01 wipe will format /cache and /data
Use as needed.
I keep a backup memory card with my phone at all times that has A01 wipe, B01 wipe, and my original CWM backup of my stock system on it, in case I ever need to go back to stock if something goes wrong.
Attached are the scripts, just throw these on your sdcard and flash like normal in CWM if you need to, before installing a ROM or patch if needed.
Click to expand...
Click to collapse
hey Blue just outta curiosity has anyone confirmed having issues with wiping through CWM with the new recovery or has the issue carried over from the 4.0.0.8/9?
I'm pretty sure I don't remember anyone having issues directly with cwm 4.0.0.9, and it was only a problem with 4.0.0.8 - even then not everyone experienced it.
I haven't tried the new recovery available yet, I meant to get to it this weekend, but it doesn't look like i'll get a chance to fit it in my schedule. I haven't seen my lady in just over a week, so spending the weekend with her.
Hopefully over the next week i'll get a chance to bring myself up to speed with it, I don't expect to go back to 4.0.0.9 once I move up to the new CWM recovery.

[Q] [Help] CWM can't mount sd-ext? (LG-P500)

As I was getting low on my LG-P500 phone, I tried looking for some app2sd solution, doing the following steps:
- Backup all SD card content to PC
- Boot into recovery (CWM5.0.2.7)
- From recovery, create sd-ext partition
- From recovery, format the new partition
- From recovery, mount usb device, restore all SD card content from PC.
- Reboot device, installed link2sd and managed to link applications to sd.
Now link2sd seems to work fine- I tried linking quite a few applications and all of them work fine, no complaints. It only gave me an error with some apps which I have previously *moved* to SD using Titanium backup, but upon moving them to internal storage link2sd picked them okay.
However, I noticed that using file explorer, root explorer etc- they all show the sd-ext partition as empty, with size of 0 bytes??
Then, I booted into recovery and tried to mount the sd-ext partition, but I get an error message... (all other partitions I can mount/unmount just fine).
To be sure, after each reboot it looks like all the applications linked2sd work appropiately, so everything looks fine.
However, now I am concerned whether I can create (and restore, of course) nandroid backups- what will happen with all these apps linked to sd? Am I right that CWM may not be able to backup (and therefore restore) anything that is on this partition?
Am I going to lose all these apps and data? Does TiB backup these apps+data and be able to restore them fine to sd-ext? I'm asking about TiB as a mediocre workaround of restoring applications that were in sd-ext (and thus omitted by CWM backup). That is, after restoring nand backup- doing an additional restore from TiB??
Any help/insight is welcome
Ah, yes, some more info:
Phone: LG optimus P500
ROM: Lupohirps CM9 4.0.3 from this thread http://forum.xda-developers.com/showthread.php?t=1558213
Recovery: CWM 5.0.2.7 (By the way, whenever I try to flash 5.0.2.0 I get an error...)
that's weird since the app working. what ekstension do you have on sd card fat? fat32?
Can you open Android Terminal (https://play.google.com/store/apps/details?id=jackpal.androidterm) and issue these commands:
su
busybox ls -la /sd-ext/
busybox mount
If /sd-ext doesn't show up in mount, then it is not mounted.
Actually CM9 for P500 lacks file /system/etc/init.d/05mountsd (this file is responsible for mounting /sd-ext). IMHO You should ask ROM developer about sd-ext support.
If you want to test (and potentially restore your Nandoid backup or reflash CM9 afterwards) I can give you this script from CM7 (actually modified version that allows any ext version).
Your sd-ext files are actually in data/sdext2, not in /sd-ext.
Also Try using Amonra 3.0.6, overall it has better sd-ext support, I find it mounts and wipes things like dalvick cache inside the sd-ext partition as well , which is handy, unlike CWM.
Thanks for all your replies!
Sdcard file system is fat32. For the partition I have no idea as cwm didn't ask for any specific (e.g. ext2/3/4) and I haven't seen any way to get this Info...
Anyway, following this thread, I did find that all the app/data is in /data/sdext2- not sure what it means in terms of nandroid backup& recovery but it looks more reassuring..
As to RA recovery, I'm not in particular in love with cwm- it is just what I'm used to from other android devices I've been using. Actually on my htc mt4g I was using ext4 touch recovery and that one I really liked, but it is not supported in lots of devices. That phone was stolen, unfortunately. I'll give it a try, though.
Sent from my GT-P7510 using Xparent Cyan Tapatalk 2
DavisNT said:
Can you open Android Terminal (https://play.google.com/store/apps/details?id=jackpal.androidterm) and issue these commands:
su
busybox ls -la /sd-ext/
busybox mount
If /sd-ext doesn't show up in mount, then it is not mounted.
Actually CM9 for P500 lacks file /system/etc/init.d/05mountsd (this file is responsible for mounting /sd-ext). IMHO You should ask ROM developer about sd-ext support.
If you want to test (and potentially restore your Nandoid backup or reflash CM9 afterwards) I can give you this script from CM7 (actually modified version that allows any ext version).
Click to expand...
Click to collapse
Thanks! Looks likeb system/ cache/ data are all yaffs2, /mnt/Sdcard is vfat and /data/sdext2 is ext4. Not sure what all the output means (relatime, barrier=1, data= ordered etc. etc.)
So, can I figure out where the /data/sdext2 is physically stored? Is it actually the sd-ext/ext4 partition? Looks like must have, as its contents are way bigger than phone's 200MB internal storage...
Thank you all again
Sent from my GT-P7510 using Xparent Cyan Tapatalk 2
jaibar said:
Thanks! Looks likeb system/ cache/ data are all yaffs2, /mnt/Sdcard is vfat and /data/sdext2 is ext4. Not sure what all the output means (relatime, barrier=1, data= ordered etc. etc.)
So, can I figure out where the /data/sdext2 is physically stored? Is it actually the sd-ext/ext4 partition? Looks like must have, as its contents are way bigger than phone's 200MB internal storage...
Thank you all again
Sent from my GT-P7510 using Xparent Cyan Tapatalk 2
Click to expand...
Click to collapse
/data/sdext2 is the mountpoint for the ext4 partition thats on your sd card, physically its obviously on your sd card, but If you use linux, data/ is where the all partitions other then home partition get "attached"/mounted to, the 11link2sd script made by link2sd in yout init.d folder actually mounts it sdext2, the name means nothing, just something link2sd names it as.
---------- Post added at 08:40 PM ---------- Previous post was at 08:30 PM ----------
So Basically nandroid will not back it up under /data/sdext2 as the script runs after recovery, the best way to backup apps that are on the ext partion is back them up using Titanium Backup, as that saves the real apks, and when you restore all your apps, select link2sd to automatically move them to sd-ext partition.
Hi at all,
at first sorry for my bad english.
I had a similar case. If I made a backup with cwm 5.0.2.7, cwm cant mount/read the sd-ext.
In a other thread a user wrote, that cwm 5.0.2.8 had problems with the sd-ext.
And he does downgrade to cwm 5.0.2.0, and than cwm will work.
So, I did this:
I open the rommanager and choose the option "install Clockworkmod", now I choose the "LG Optimus One (old BB)".
But i have the new baseband on my O1.
The basis of this is, if you choose the new baseband in the rommanager, he will install cwm 5.0.2.7. For the old is it the 5.0.2.0 version.
Now, Rommanger made the installation with cwm 5.0.2.0. to my phone.
After this i go in to the recovery and made my nand-backup. It works perfekt!
No problems with the sd-ext, after I did this.
May be this will help.
Fietz said:
Hi at all,
I open the rommanager and choose the option "install Clockworkmod", now I choose the "LG Optimus One (old BB)".
But i have the new baseband on my O1.
The basis of this is, if you choose the new baseband in the rommanager, he will install cwm 5.0.2.7. For the old is it the 5.0.2.0 version.
Click to expand...
Click to collapse
Thanks for the tip..
I have tried in the past to flash cwm 5.0.2.0 via Rom Manager, but I kept getting an error message, so I gave up.
Now I thought to give it a second chance, but as it fails to flash with Rom Manager (in the menu when I choose LG optimus one I don't get any choice between old BB or new or anything- it just reflashes 5.0.2.7) and from the "all recoveries menu I can only choose 5.0.2.0 but it gives an error message), so I downloaded the zip files from this thread http://forum.xda-developers.com/showthread.php?t=1523050 (including also Amon Ra 3.06) and tried to manually flash from recovery.
It flashed and showed recovery as "5.0.2.0" but nothing worked- every submenu that I tried to enter was black screen (with the CWM logo on background) and it gave me the creeps- I don't like being stuck without a functional recovery so I rebooted and flashed 5.0.2.7 again from Rom Manager.
I'll try to flash Amon Ra and see how it works.
[EDIT] flashed AmonRa 3.06 and it seems to work fine- able to mount/unmount all partitions including sd-ext, and it also has an option to check each of them in separate during nandroid backups.
A noobish question: it has also an option to include the ".android_secure" . Isn't this one a redundancy with sd-ext (e.g. contains all the apps/data that has been moved/linked2sd)?
jaibar said:
As I was getting low on my LG-P500 phone, I tried looking for some app2sd solution, doing the following steps:
- Backup all SD card content to PC
- Boot into recovery (CWM5.0.2.7)
- From recovery, create sd-ext partition
- From recovery, format the new partition
- From recovery, mount usb device, restore all SD card content from PC.
- Reboot device, installed link2sd and managed to link applications to sd.
Now link2sd seems to work fine- I tried linking quite a few applications and all of them work fine, no complaints. It only gave me an error with some apps which I have previously *moved* to SD using Titanium backup, but upon moving them to internal storage link2sd picked them okay.
However, I noticed that using file explorer, root explorer etc- they all show the sd-ext partition as empty, with size of 0 bytes??
Then, I booted into recovery and tried to mount the sd-ext partition, but I get an error message... (all other partitions I can mount/unmount just fine).
To be sure, after each reboot it looks like all the applications linked2sd work appropiately, so everything looks fine.
However, now I am concerned whether I can create (and restore, of course) nandroid backups- what will happen with all these apps linked to sd? Am I right that CWM may not be able to backup (and therefore restore) anything that is on this partition?
Am I going to lose all these apps and data? Does TiB backup these apps+data and be able to restore them fine to sd-ext? I'm asking about TiB as a mediocre workaround of restoring applications that were in sd-ext (and thus omitted by CWM backup). That is, after restoring nand backup- doing an additional restore from TiB??
Any help/insight is welcome
Ah, yes, some more info:
Phone: LG optimus P500
ROM: Lupohirps CM9 4.0.3 from this thread http://forum.xda-developers.com/showthread.php?t=1558213
Recovery: CWM 5.0.2.7 (By the way, whenever I try to flash 5.0.2.0 I get an error...)
Click to expand...
Click to collapse
Hi, Jaibar
I have LG Optimus One with JB 4.2.2, CM 10.1.
Here what I have done in order to gain extra space on my internal memory. All the steps that you have followed are the same as I did. BUT! There are two important things that I have followed that had greatly helped to succeed:
1) For every 100Mb internal memory - NO MORE than 512Mb of SD card memory(for my LG I have separated 965Mb on the SD card)
2) INT2EXT+ works with EXT2/3/4 partitions BUT INT2EXT4+ works with ONLY EXT4 partition. After I have watched this short video, and this blog post I have been able to restart my phone with extended internal memory.
Believe me, for three days I have been flashing my phone, trying to find the correct way. At the end I have noticed that the problem was that I couldn't mount /sd-ext I thought that maybe following this two rules will help - and it did!
I hope that it will help! Good luck

P500 Stuck at Boot

Hi, I have a P500 on AOKP ICS, and I tried flashing CAF kernel in CWM 5.0.2.0, wiped cache partition and dalvik cache and rebooted, but phone got stuck on 'start applications' dialog just after boot animation, which I had never seen before. I tried restoring a nandroid backup I did just before trying the kernel without wiping anything, but it then got stuck at the boot animation. I had to do a data wipe/factory reset and wipe cache and dalvik cache to get it to boot.
I was just wondering why this happened. I have very limited free space in system (10mb), and 8mb in data before Link2sd has relinked lib files at boot, APK and dex are also linked. I also froze an app using link2sd before trying, could this have caused it as it couldn't recreate the dalvik files for that app? I don't really want to try again, but it not work and have to factory reset and restore everything again...
Any help would be appreciated
Dont link system libs to sd when you want to flash a kernel.
rr0yy said:
Dont link system libs to sd when you want to flash a kernel.
Click to expand...
Click to collapse
Thanks for the reply, but Link2sd doesn't allow linking of system libs, only user...

Error trying to wipe Internal Storage (TWRP)

Hi, I tried to do a full wipe from TWRP, but I was unable to wipe Interal Storage, next message appeared:
E:mount -o bind '/data/media/0' '/sdcard' process ended with ERROR=255
Anyways, the message of succesfull wipe appeared (and internal storage was in fact wiped). I don't know if I should worry (everything works fine after installing CM.12.1 nightly 08/06). The previous firmware installed was OxygenOs (I had a remote session thinking they would accept a RMA but they instead installed Oxygen with the latest drivers ). Every time I try to wipe that partition again I get the same message (but it gets wiped).
Thanks for your help and sorry for my english!
trionic said:
Hi, I tried to do a full wipe from TWRP, but I was unable to wipe Interal Storage, next message appeared:
E:mount -o bind '/data/media/0' '/sdcard' process ended with ERROR=255
Anyways, the message of succesfull wipe appeared (and internal storage was in fact wiped). I don't know if I should worry (everything works fine after installing CM.12.1 nightly 08/06). The previous firmware installed was OxygenOs (I had a remote session thinking they would accept a RMA but they instead installed Oxygen with the latest drivers ). Every time I try to wipe that partition again I get the same message (but it gets wiped).
Thanks for your help and sorry for my english!
Click to expand...
Click to collapse
hey and welcome ,
you should always install the newest Twrp. Just download it via playstore
an other method. Download multirom and install twrp from there.
For the next time. Wipe partitions. Try to repair theme and flash it back to ext4.
Now everything should be clean.
If your system runs without any problemes or issues its just a cosmetic issue not more.
regards
Are you using latest 2.8.6.0/2.8.6.1?
davebugyi said:
Are you using latest 2.8.6.0/2.8.6.1?
Click to expand...
Click to collapse
real_pac said:
hey and welcome ,
you should always install the newest Twrp. Just download it via playstore
an other method. Download multirom and install twrp from there.
For the next time. Wipe partitions. Try to repair theme and flash it back to ext4.
Now everything should be clean.
If your system runs without any problemes or issues its just a cosmetic issue not more.
regards
Click to expand...
Click to collapse
I am using 2.8.6.1 (latest version). Unfortunately twrp doesn't allow me to repair / format that partition.
Thanks you both for your response
trionic said:
I am using 2.8.6.1 (last version). Unfortunately twrp doesn't allow me to repair / format that partition.
Thanks you both for your response
Click to expand...
Click to collapse
You're welcome but please don't a new thread write in the specific thread..
please reinstall twrp via playstore flashable zip or just flash the recovery img via adb or any oneplus one toolkit regards
real_pac said:
You're welcome but please don't a new thread write in the specific thread..
please reinstall twrp via playstore flashable zip or just flash the recovery img via adb or any oneplus one toolkit regards
Click to expand...
Click to collapse
I installed again with TWRP Manager and everything works perfectly now (no error message). Thanks again
trionic said:
Hi, I tried to do a full wipe from TWRP, but I was unable to wipe Interal Storage, next message appeared:
E:mount -o bind '/data/media/0' '/sdcard' process ended with ERROR=255
[...]
Click to expand...
Click to collapse
I faced this error once on twrp 2.8.6.1 a week ago. I wanted to restore my nandroid and the error repeatedly happened while restoring data-partition. I then booted the system and deleted some files from internal storage (which was about half full at the time the error occurred). Afterwards I rebooted to twrp and could successfully restore my complete nandroid. It's a bit shocking if you face this error when restoring a nandroid, because the restore process wipes the data partition first and then begins the restore.
real_pac said:
hey and welcome ,
you should always install the newest Twrp. Just download it via playstore
an other method. Download multirom and install twrp from there.
For the next time. Wipe partitions. Try to repair theme and flash it back to ext4.
Now everything should be clean.
If your system runs without any problemes or issues its just a cosmetic issue not more.
regards
Click to expand...
Click to collapse
That tip worked for me (i9192), I just install the last TWRP (I think this is not needed) and wipe /Data with ext4, wipe again to F2FS and restore, thank you.

Gapps install

I have downloaded Gapps pico. When I try to install error: Not enough space in System partition. Any remedy other than deleting apps?
John
technodino said:
I have downloaded Gapps pico. When I try to install error: Not enough space in System partition. Any remedy other than deleting apps?
John
Click to expand...
Click to collapse
Are you doing a full TWRP wipe before flashing the ZIPs?
Start Page TWRP> [WIPE]> [FORMAT DATA]> type YES press Blue CHECK in bottom right. - NP
No. I will format data & see what happens.
Thanks
John
I formatted Data and then changed to f2fs format. I received the same error: Insufficient storage space in System partition. I used TWRP 2.8.6.0. to format and to try to flash.
When I format Data should all my Apps get removed? All my apps are still present after format and changing to f2fs.
Anyway still stumped and would appreciate any help.
Thanks
John
technodino said:
I formatted Data and then changed to f2fs format. I received the same error: Insufficient storage space in System partition. I used TWRP 2.8.6.0. to format and to try to flash.
When I format Data should all my Apps get removed? All my apps are still present after format and changing to f2fs.
Anyway still stumped and would appreciate any help.
Thanks
John
Click to expand...
Click to collapse
Update the TWRP to 2.8.7.4 found here;
https://androidfilehost.com/?fid=24352994023705510
And yes all you apps should be gone you might also try a factory reset before you format data, circled int the pic. - NP
Thanks for your help.
All is working. Reflashed TWRP (latest 3.2 version and the TWRP app). Factory wipe, formatted data and then changed to f2fs format (all with TWRP). Installed KitKass 7.2.1 and gapps pico. Configured network and browser. Setup app did not work; kept shutting down so I installed system from my nandroid.
:highfive:
John
Nektopoli said:
Update the TWRP to 2.8.7.4 found here;
https://androidfilehost.com/?fid=24352994023705510
And yes all you apps should be gone you might also try a factory reset before you format data, circled int the pic. - NP
Click to expand...
Click to collapse

Categories

Resources