[Fix]Fast-Charge Mode Set At Boot Unmounting Internal SD - AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin

I recently toggled the option from my ROMs "Performance" settings to enable Fast-Charge mode at boot. This came accompanied with a toast saying so on boot. What I did not realise is that it would have the unintended consequence of unmounting my internal SD card after a few reboots. This would be noticeable from multiple applications, including Root Explorer. Basically, nothing would show up there; it was as if the directory was empty. Additionally, when I tried to use an application to download files to the SD card, I received many errors about read/write operations. It was my belief that the internal SD filesystem had become corrupted. I had rebooted several times after checking that box before I noticed the problem.
It took me a bit of time to narrow down the cause. Once I unchecked the Set Fast-Charge Mode At Boot option, I magically got my internal SD card to show back up again in Root Explorer. However, all applications were experiencing problems writing to the thing. Fixing permissions had no effect; wiping the entire virtual SD card from Root Explorer had no effect. I tried to issue some commands from Terminal Emulator to remount the system as RW, but couldn't figure those out.
I copied down the contents of my internal SD card to my PC and restored a two day-old nandroid backup and recopying my internal SD card contents to it. That fixed the problem. I have no idea why my filesystem became corrupted, or how I'd go about forcing its restructuring in the future without resorting to a restore operation. Anyway, I just thought I'd post my experience here.
Using I337M on LiquidSmooth 2.9 with KToon's latest kernel.

Related

SD Card changed format, lost all my apps, can't reinstall. Help!

So I just traded my iPhone for a rooted MyTouch. It has the Cyanogen mod I believe. Well all of a sudden I could not access my SD card and when I tried to open it on my computer it said 'Wrong Format'. Wouldn't work on the phone either. So I formated Fat32 and thought I could start over.
It still shows my apps installed in the Marketplace, although they were on the SD and deleted. I can't uninstall them, but it thinks they are there, somewhere. Has anyone had this problem? I am relatively new to Android and rooting. I had a jailbroken iPhone before. Thanks!
kinda depends really. I would suggest first going thru recovery console if you are using amon recovery and partition sd card there. With most modified roms you have apps 2 sd so there are actually 3 partions. The biggest is fat32 for data like music, then ext2,3,4 for applications then a linux swap partition to help expand the ram on the phone and if you formated on PC or from settings on phone those partitions are gone. So I would do that first and then try to uninstall from market and reinstall again if not you may need to wipe and restart the device.
How do I get into recovery mode? I tried going to the terminal and using the flash_image recovery /sdcard/imgfile but it says I do not have permission?
Any ideas??
If your phone has been rooted right by the previous owner, you can access the recovery mode by first powering down, then pressing home and power at the same time.
Ahh! That worked! thanks!
I have a variation on this problem and lost my apps and Market, hope someone can help. Started with the SD card coming unmounted randomly, known issue with EVO I guess. Followed the recommendation of reformatting the SD by plugging it into a Windows PC and doing a FAT32 format. I backed up everything I could "see" from SD to C: drive. I am running a custom ROM with APPS2SD feature and Clockworkmod recovery. I'm very new to Linix and Android but, it looks like there is a Linix Ext3 partition that is made by APPS2SD on the SD card and that is where all my apps where, including android Market app. So, upon copying all the folders back to the re-formatted SD I had no apps and no android Market to able to re-download all my apps. I guess Market is like a licensed deal that you can't just get a .apk of and reload it. I do HAVE a current recovery backup that was on the FAT32 directory of the SD card but it appears the the Ext3 partition is not in that recovery file. I tried booting into recovery with Clockworkmod and reformatting the SD again, I tried a "Restore ext3.img" but Clockworkmod comes back with 'sd-ext.img not found" so I am guessing that the Linix Ext3 partition backup was stored IN the Ext3 partition of the SD(?) and the system and data stuff is stored in the FAT32 recovery file. Brilliant idea (not)! I tried a re-flash of the ROM, flashes OK but no apps. Anyway, the SD is properly partitioned now, the FAT32 stuff is back on, I don't know how to look in to the Est3 partition but, I know there is one program there cause I installed a file explorer by downloading and executing an .apk and there was an option to install it to SD. Going to factory reset and starting over again is not an option. Any ideas please?
SOLVED this issue:
apperantly the android market application is called "vendor.apk" and can be downloaded from various sites BUT WAIT, it's not that simple. Apperantly the vendor app has to be specific to your phone (hardware)? On a whim, I downoaded the previous version of my custom ROM (happedned to be Fresh ROM) .zip, I extracted the vendor.apk from the .zip and installed that. Then, I had an apk called MarketUpdater.apk, or something like that, that had installed in the phones system/app from the last Fresh ROM update. I ran this to update the vendor (android market) to the latest version, then I ran that. Did it work? NO, it crashed hen I tied to run market. I then did a re-boot. Did it it work? NO Upon attempting to reboot it got stuck in a loop and froze. Very scary. So, remove the battery and try again. I think I had to remove and re-install the SDcard somewhere in there to get it to a first time boot and, after a re-boot, whalla, come back with a working market. Market remembered all the apps that I purchased and I re-downloaded everything. Of course, I don't know for sure where they are stored right now (SD card or phone??)
And, my original problem of SD card constantly coming unmounted has been fixed.

[n00b] Market APPs not installing -Try This-

There are a bunch of threads that have questions about Apps not installing in the market. My usual symptoms include the app being stuck in 'Starting Download" in the market while the notification bar says it downloading ok. This occurs in many roms too ASOP and Sense.
This fix I use it deleting the contents of .android_secure folder found on your SDCard. This fix works 100% for me.
I'm pretty sure that deletes any apps you've moved to the SD card.
I can't say thats the case. I have a couple of apps on my sd card (Angry Birds, Raging Thunder 2, etc) and my .android_secure is empty.
I checked by going into settings/applications/manage applications/on sd card. It reports 7 apps on SD. What I did then is checked the .android_secure folder using Root Explorer and it says its empty. Finally, I opened up Raging Thunder and was able to play the game successfully.
Where did you get this information? Looking at the folder structure, it looks like the data is stored in another location. I would like to know where though.
The directory appears empty from within an android based explorer, but if you mount the card on windows, you'll see a bunch of .asec files. For example, I have a 16MB com.rovio.angrybirds-1.asec file there. I think the reason it appears empty when you look on the phone is because it takes those files and mounts them, either hiding them as a side effect of that process or explicitly hiding them as a separate step. If you do a df from ADB or terminal (with the card mounted on the phone), you see a bunch of entries like this:
/dev/block/dm-69 16612 14484 2128 87% /mnt/asec/com.rovio.angrybirds-1
So there are files there, but it looks like they're hidden when the card is mounted. I'm not 100% sure what happens if you delete them (while the card is mounted on windows, not the phone), but I believe it would break the apps you've moved to the SD card when you remount the card on the phone.
Interesting info...i didn't know the files were hidden. Btw, do you have apps that don't install the first go around? This happens on numerous occasions with different roms
Sent from my PC36100 using XDA App
Yeah, I've seen issues sometimes. You mention different roms -- are you using Titanium to reinstall apps and having issues the next time an update comes out on the market? I've been seeing that one lately. Usually the second time around it works. Not sure why. Of course, the market itself also goes out from time to time.
Your tip *does* apply when you're doing a hard reset/wipe data. .android_secure should be emptied after you've wiped data, as I believe those files are encrypted using a key on the data partition. However, I believe both CW (for sure) and Amon (I think) will wipe .android_secure when you wipe data, so that should be done for you. I did see situations before I was rooted when I reset somehow (maybe just through android's own factory reset) and the dir didn't clear out, but I think it will normally if you wipe through recovery. Other than after a data wipe though, I don't think you normally want to manually touch that directory.
Another method that has worked for me especially with Angry Birds is to unmount your SD card (via settings), install the program, and then remount your SD card. With this method however you have to repeat the procedure each time the program is updated.

[Q] xcover 2 bootloop after dba install location change

I'm running deodexed build from this post: http://forum.xda-developers.com/showpost.php?p=40232503&postcount=43 and CWM bootloader. I'm using link2sd and 16GB external CD card.
Strange things started to happen (I think) after using my phone in the swimming pool. Apps from my external card vanished and I couldn't fix this issue, so finally formatted SD card (minitool didn't work, partition toolkit did). Meanwhile every now and then "no place on disk" error while installing apps popped up. Approx. 400 MB of internal storage was free...
After format things started to look promising, but "no place on disk" error still bugged me, so I thougth about workaround, and tried adb shell pm set-install-location 2. After restart I got bootloop. Tried several options and finally was able to flash firmware with odin 1.85. While I was at it, I flashed bootloader with CWM mod and odin 3.09. (Before flashing I was getting an error after restart and had to reboot manually:
E: failed to verify whole-file signature
E: signature verification failed
Click to expand...
Click to collapse
). Well, that worked, and no data was lost, but my external card is unusable, link2sd warns me about my second partition not being automounted and every time I restart phone I'm in the bootloop again, having to flash firmware to be able to unbrick it.
I tried to fix second partition from within partition toolkit, but no luck, formated it, again, but now link2sd doesn't see it mounted at all (partition toolkit does). I've reverted install location already, set it to 0, and later to 1, but no luck... I mean it works, but doesn't solve the problems.
I'm running out of ideas. I backed up everything with titanium backup and I'm considering factory reset, but not sure if it will help at all...
UPDATE:
I bought 32 GB SD card and replaced the old one. Formatted it and things seemed to work, but in roughly 50% of cases I couldn't install application due to "usufficient space on disk" error.
And another issue: yesterday my phone hung, so I restarted it. Basically it entered bootloop, but starts normally as soon as SD card is removed. Recovery log says "can't partition non mmcblk device" regarding SD card.
It looks as if SD card was mountable only when fresh formatted, any application moved to it (link2sd) and things end up as described.
Tried to boot without SD card and insert it later when system starts, but no luck (card is not discovered at all).
I'm seriously considering selling this phone - without external space for installing apps it's next to unusable, and it seems I am not able to solve the issues with SD card.

[Q] Can't mount internal storage TWRP

So, things have massively escalated today and my phone appears to be soft bricked. Joy. I'll run through what happened.
1. I encrypted my phone using the built in tool in Cyanogen Mod. After it rebooted, it was glitchy and I lost a load of apps, the phone really wasn't working well. Rebooted again, but no improvement.
2. I went into TWRP (2.8.x) to restore my old backup, which was on the SD card. After the initial wipe of the internal storage, the log showed
E: Can't mount storage
Click to expand...
Click to collapse
and the restore failed.
3. I reboot and phone goes straight into recovery mode as there is no OS installed (the recovery wipes the internal storage first). Internal Storage is now showing as '0 MB'. I cannot find a way of mounting this storage anymore. Have tried factory reset (doesn't work because file system isn't mounted), and rebooting a few times but no avail.
* There seem to be some options about flashing a .pit file using odin, but I do not have this file. My phone is the Note 4 SM-N910F Model. If I can do this through Odin then maybe this will resurrect the file structure and make this storage mountable?
* There may also be another option using ADB but I still don't know what commands to use.
Any help would really be appreciated as it seems there is some possibility of a fix. That being said my hopes are not that high...
I believe I may have fixed this. I would like to keep this up here in case in helps anyone in the future, I would imagine this is only useful for people who have encrypted their device. I'm not an Android expert so can't be responsible for any damage to devices or data loss etc.
It seems that the encryption must have gone wrong somewhat and this is likely to have impacted on the file system.
Although I couldn't wipe on the device, I was able in recovery to FORMAT data (not just wipe). Go to the wipe menu, then format. After this, reboot into recovery again and you should be able to mount again. It rebuilt the filesystem too.
This should be a quick fix that may help a few people with the issues with not being able to mount the file system. I hope this can help at least one person!
I managed to restore from my backup after and phone is now working. Thanks anyway!
Is there any way to set the default storage of play store apps to the sd card?

SM-T580: Issue with Card Card setup (Link2SD and Titanium access)

Edit: Title should read "SD Card" (how to edit that?)
I have root and I am trying to get Link2SD to work. I have created the FAT32 (primary) and EXT4 (primary) partitions but I keep getting a mount script error ("unable to mount") (Also tried EXT2)
I am doing the same thing as I have done on several other devices and it is not working on the samsung.
Also, I am having issues with getting Titanium Backup to wrtie to the SD card too. I tried the Kitkit SD card patch but it failed.
I know the SD card works so I am thinking it is a wonky Samsung thing?
Thoughts or advice
Edit: Pulling SD card, re-inserting and rebooting and then Link2SD reports that the 2nd partition is not accessible during boot (and suggests quick boot to fix which it does not). Samsung says the FAT32 is fine but the EXT is "corrupt" but I have confirmed on two other devices it is fine.
So this seems to be some sort of access thing. Maybe related to the removal of encryption patch as part of the TWRP install?
Edit2: cat /sys/block/mmcblk2/device/type gives back "no such file or directory"; (whereas mmcblk1 gives SD)
Total commander shows sd-card (which is internal /storage/emulated/0), sd-card(2) "/data/sdext2"), and USB (SD FAT32 as /storage/BDB2-8960)
Got TB fixed anyway. Backup one file (on device internal location), move the directory to external SD card, then TB decided it is was OK to include that location under settings so select new location.
Now need Link2SD. Could this be a mount script write issue? Encryption issue (I removed it from internal via a scripted)?
Runings Mounts2SD, installed scripts, reboot but it says External is "not mounted". Link2SD still fails with those scripts installed.
chemie99 said:
Got TB fixed anyway. Backup one file (on device internal location), move the directory to external SD card, then TB decided it is was OK to include that location under settings so select new location.
Now need Link2SD. Could this be a mount script write issue? Encryption issue (I removed it from internal via a scripted)?
Runings Mounts2SD, installed scripts, reboot but it says External is "not mounted". Link2SD still fails with those scripts installed.
Click to expand...
Click to collapse
Link2SD never worked for me either no matter what I did. Apps2SD works flawlessly. Links data, apk, obb files and everything without any issues on ext4 format.
moxalis said:
Link2SD never worked for me either no matter what I did. Apps2SD works flawlessly. Links data, apk, obb files and everything without any issues on ext4 format.
Click to expand...
Click to collapse
I tried installed Apps2SD but it never asked for root and decided half the apps could not be moved. I figured it was just offering the usual stock "move apps" which moves marginal amount.
Samsung says that the EXT partition is corrupt but Aparted says it is fine. EXT2, and EXT4 created in either Minitool or Aparted are simply not read.
Mount2SD adds scripts to mount but the partition remains unmounted after reboots.
What format does Samsung want?
chemie99 said:
I tried installed Apps2SD but it never asked for root and decided half the apps could not be moved. I figured it was just offering the usual stock "move apps" which moves marginal amount.
Samsung says that the EXT partition is corrupt but Aparted says it is fine. EXT2, and EXT4 created in either Minitool or Aparted are simply not read.
Mount2SD adds scripts to mount but the partition remains unmounted after reboots.
What format does Samsung want?
Click to expand...
Click to collapse
Samsung reads the partition as corrupt but Apps2SD is using it just fine. You should delete any mount scripts and re-create them through the Apps2SD application.
moxalis said:
Samsung reads the partition as corrupt but Apps2SD is using it just fine. You should delete any mount scripts and re-create them through the Apps2SD application.
Click to expand...
Click to collapse
How do I manually delete the mount scripts?
chemie99 said:
How do I manually delete the mount scripts?
Click to expand...
Click to collapse
There is the option "Delete mount scripts" in the Apps2SD app. Check their FAQ page for any questions, it's pretty helpful.
Hello! I was having just the exact same problem with my T580.
I just loged in to say how I fixed it:
Open SuperSU app -> Settings.
Check "Enable su during boot"
Uncheck "Mount namespace separation".
After a reboot, Link2SD detected the 2nd partition!
EDIT: Now I fin another issue. If I try to link Obb, it says my device is using "sdcardfs". It offers to install fuse insted to fix it, but after rebooting I still getting the same message.
What could I do?
otamaglimmer said:
Hello! I was having just the exact same problem with my T580.
I just loged in to say how I fixed it:
Open SuperSU app -> Settings.
Check "Enable su during boot"
Uncheck "Mount namespace separation".
After a reboot, Link2SD detected the 2nd partition!
EDIT: Now I fin another issue. If I try to link Obb, it says my device is using "sdcardfs". It offers to install fuse insted to fix it, but after rebooting I still getting the same message.
What could I do?
Click to expand...
Click to collapse
Seems Link2SD does not like Marshmallow so I switched to Apps2SD (which also suggests what you did). It would not create the partition itself but took windows EXT4 and after a bunch of config, worked. The issue I now have is that Samsung still thinks the card is corrupt (which it isnt); any EXT partition and it says that. So on any reboot it greets me with a system notification of a corrupt card (which I want to get rid of but so far can't)..
I did try adoptable using a scripts from this site (didn't work) and the Apps2SD option. Seem to work on device but windows only saw the device memory so would not copy anything when it reported full.
took another kick at the cat today; installed Apps2SD, created mount scripts, but now, for reasons unknown, it no longer reports the SD as corrupt on boot (although it does say that partition is corrupt from the storage setting menu. Weird. No idea why it is no longer doing this. I will say the reinstall was funny. I had to delete and recreate the mount scripts several times (all said it worked) to actually get apps to move without disappearing. perhpas I ended up with a different mount script method in all the trying

Categories

Resources