[Q] ViperOne on HTC One M8 - cannot use external SD Card :( - One (M8) Q&A, Help & Troubleshooting

Hi there,
I have a question, which I've not been able to figure out. Maybe someone here is able to help me.
I am using ViperOne (v 6.1.0) on my HTC One M8. For a long time I have used a 64GB Micro SD card (SanDisk Extreme U3) as external storage. However, I am now finding that my internal 16GB of storage just isn't quite enough. I thought I had two options:
1) Create a second partition on the SD Card, and use that, along with an app such as Link2SD, or Apps2SD, to allow me to create symbolic links, and shift some of my installed apps onto the SD card. Or
2) "Adopt" the entire SD Card as internal storage.
Whenever I tried doing option 2--adopting the SD Card as internal storage--once the reformatting of the card completed, my phone would reboot itself (maybe there was a "kernel panic" type error, which caused the reboot??), and then it would get stuck in a continual reboot cycle. The phone would reboot, and then Android would report it was initialising X of Y apps... and when that had completed, it would reboot itself, and attempt to re-initialise all the apps...
I tried option 1) above--creating a second partition. This was generally OK, except that the second partition did not seem to get mounted when the phone was rebooted. This meant that apps which had been linked to the SD card would no longer work. Link2SD would offer to do a "quick reboot" (which, maybe is just a restart of the Android shell??), and after that, things seemed to be OK.
I wonder whether it is possible to create a script that is executed on *every* reboot, which will correctly mount the second partition. My basic Linux knowledge would suggest that a script in /etc/init.d should do the trick... except I don't think init.d is used/supported in ViperOne.
So... does anyone know a way to get things going for me?
Many thanks for your time,
Jon

Related

APP2SD??

hey everyone..
i recently got my hero an have been upgrading roms back an forth, but each time i wipe to update the rom i lose all my apps.. i was wondering if anyone could please help me get app2sd installed or show me a step by step process for it.. itd help heaps an be greatly appreciated!!
thanks in advance,
brett
I need help for this altso, dont realy understand how this works?
+1
How to install apps from MARKET to SD card, so we dont have to reinstall them each flashing
you need root! and a custom rom (MCR2.2 or 2.3 are my faves) these have apps2sd built in.
http://forum.xda-developers.com/showthread.php?t=552591
p.s your thread should be in Q&A NOT the Dev section
problem
hi. i've partitioned my sd card as per the instructions on this website. prior to that, i'd installed the modaco rom version 2.2, which is meant to have apps2sd on it.
i thought that after partitioning my sd card my apps would automaticaaly get transferred to the sd card. but that doesn't seem to have happened. how do i go about making that happened. i don't want to reinstall the modaco rom, it should happen already shouldn't it?
also, where exactly is apps2sd on the modaco rom? i can't find it.
try booting your phone without the SD card in....are your apps still there?
apps2sd is built in to the rom, you dont need to run anything. It does it all by itself in the background.
thanks. I'll try that tomorrow. Before I do, just one other query. I thought that after partitioning the sd card, everything on it would get wiped. But the same folders (ther were only 2 before i partitioned it) are still there with the files in them!
which makes me think, did i successfully partition the card? there's no doubt that when i typed 'print' in the adb shell/ gparted after the partitioning process it gave a list of 3 partitions in the sd card. I basically followed the instructions to the letter. I won't be in a position to check again until tomorrow.
Just to be clear before I do something I may or may not regret, to get apps installed on the sd card, I need to partition it first, correct? Once it has been partitioned correctly, any app installations I do, say via the market, should go straight to the sd card? I'm running MCRv2.2.
Yes partition your card first. (FAT first, then EXT3 second)
they usually go to the SD card after a reboot i think.
AFAIK it is a script that is run during startup.
thanks alot for that.. i done a bit more research an have it all sorted.. cheers.. brett
good news. happy to help
as suggested earlier on this thread, i rebooted my phone without the sd card, and sure enough, all my applications/ widgets could not be loaded (except those that were already on the modaco 2.2 rom). rebooting again with the sd card in place, and everything is back to normal.
however, when looking on the sd card with astro file manager, i can't see a list of the applications anywhere. also, after connecting my phone to the computer, and then looking under 'removable disc' on my pc, i can't see the list of apps on my sd card then either.
so i guess what i'm asking is, how do you definitely know that apps2sd has kicked in. i've read on this and other forums that people have checked on their sd card and seen their list of applications. how does one do that? is what i've done above, namely booting my phone without the sd card in place and demonstrating that the downloaded apps don't work, enough proof that apps2sd has worked properly on my phone?
djdhrubs said:
as suggested earlier on this thread, i rebooted my phone without the sd card, and sure enough, all my applications/ widgets could not be loaded (except those that were already on the modaco 2.2 rom). rebooting again with the sd card in place, and everything is back to normal.
however, when looking on the sd card with astro file manager, i can't see a list of the applications anywhere. also, after connecting my phone to the computer, and then looking under 'removable disc' on my pc, i can't see the list of apps on my sd card then either.
so i guess what i'm asking is, how do you definitely know that apps2sd has kicked in. i've read on this and other forums that people have checked on their sd card and seen their list of applications. how does one do that? is what i've done above, namely booting my phone without the sd card in place and demonstrating that the downloaded apps don't work, enough proof that apps2sd has worked properly on my phone?
Click to expand...
Click to collapse
You can't see them in /sdcard because that is your FAT32 partition of the card.
Apps2SD works by mounting an ext3 partition from your card, it is mounted to /system/sd/ normally I think. Have a look there with your filemanager.
The reason for having a separate partition for it is that Android requires the ability to set access rights and ownership to files for it work, and FAT32 does not support this.
if you load a linux live cd (i use ubuntu) and plug in your card reader, or mount your hero, you will see the two partitions (or 3 if you use swap).
Windows can't see ext3 partitions, but linux can, cos its great
yeah i had a look using astro file manager and went into system/sd but nothing is listed there.
anyway, now i have a whole new bizarre problem. most of my apps force close when i try to use them! for example, i open taskiller, and its fine while its running, but as soon as i select something to kill, a message pops up saying it has to force close. same with advanced task manager, shopsavvy, shazam, flixster movies and many others. i've turned my phone off and on, and rebooted a couple of times to no avail. phone calls and internet access still works fine.
all this has started since i tried booting my phone without the sd card. i've taken it out again and tried again, but still same problem. weird!
ok problem above solved! i uninstalled then reinstalled the applications, and then they work.
thanks for all your help guys.
i used to get that on my g1...un-install and re-install always solved it for me too!
happy hero'ing!
I am glad that there is a ROM that support A2SD, but i prefer to run the generic one, and if possible is there a code to make my generic pre-rooted rom A2SD abled?
I answered a similar Question a day or so ago here.... Just general stuff
http://forum.xda-developers.com/showpost.php?p=4655969&postcount=2
Dayz xxxx

Unavailable SD Card issue after (any) Rom Upgrade...Please help!

This is my first post, and I'm usually pretty careful about following instructions. I'm currently running Skyraider's 3.0 RC2, but to my dismay, I am finding that my phone still refuses to recognize my SD Card. Under settings it says it is unavailable, and when connected to PC, it gives an option to mount to disk but doesn't mount upon selecting this.
My phone is rooted with S-Off and 2.15 radio...Did a full wipe of everything before I flashed 3.0 RC2. Shows that my kernel is now King #2, but I have had this issue with many other roms and kernel combinations. I have been unsuccessful in finding a solution when searching the forums, and the only way to regain functionality is to restore a previous backup without any roms installed.
Any help is much appreciate. Thanks!!!
P.S. I've also tried mounting the card in clockworkmod's advanced recovery settings, but this does not change a thing. Internal storage is also currently unavailable. Mount through usb in recovery does work, but this doesn't help when I cannot access my sd card after boot.
I had a similar issue a couple days ago after upgrading from stock 2.1 to SkyRaider 2.5.2.
When I'd go to set my ringtones, the option for the SD card wasn't there. As if it wasn't reading it was in the phone at all. I opened up Astro file manager to see if it could read it and it in fact did. I could see that all the ringtones were still on the card right where they should be and they would play from Astro when I clicked on them. But, the option to actually set them still wasn't there.
I'm not exactly sure what 'fixed' it, but I went in to set my notification tone and suddenly the option to select from the SD card was there. Then, I could then access the card to set ringers as well. I'm sorry I don't have anything more specific. The card just seemed to suddenly decide to let the OS know it was there. I also rebooted the phone a couple times as well as removing the card while the phone was in use and reinserting it. Not sure if any of that helped the situation or not.
I had asked about this in two separate threads and not one person responded, so I'm guessing the issue is rare.
If you don't get anywhere with it, maybe try a different SD card just to see if it shows up.
Good luck.
I've had the same issue but was able to resolve it. Mount the sd card from a laptop or PC. If you can read the card copy the contents onto the PC (I placed mine in a separate folder). Then go into tools and do an error checking. After replacing the SD card back in the phone see if everything is ok. this fixed my SD card. However, I've had the SD card lose its primary disk notation so I had to reformat and then transfer the previous save files on the SD card from my backup an that solved my other issue. Also, some times the SD card speed can cause this issue and it is perfered that you a class 4 or better. I hope this helps.
Well, I took your advice and pulled the sd card only to mount it separately and scan it for errors. None were found. I've also reformatted and restored all the files that were on it. Phone still does not recognize card or internal storage. My phone did, however, recognize another card I had on hand and I believe it may be a compatibility issue between my 8 Gb A-Data brand Micro SD card and 2.2 roms. FYI...It's a class 6, and the one I tried that was recognized was a 6gb sandisk (class 4). I'll look into getting a 16 or 32 gig sandisk in the near future and keep you posted. Thank you guys for your insight.
always 'safely remove hardware' (stop the device, etc.) from your windows machine before unplugging your incredible
if you don't, you end up not being able to see the SD card until you restart your phone
Just reformatted my SD card, checked for errors after unmounting etc... and now it seems to work ok, although one of the music players I normally use doesn't seem to recognise it!!

Unmounting SD card when Apps2SD is used

Hi all,
My Desire is rooted and running Leedroid 2.2a with an ext3 partition on my SD card for my apps and cache folders, using the default apps2sd setup with the ROM.
I recently had to re-flash my phone because lots of installed apps went missing; some of them had odd names (the com.android.x.x names) and then it got stuck in a boot loop because it couldn't read the SD card until I formatted it, well actually I had to destroy the ext3 partition. Now I wonder if its because the apps folder is on the SD card/ext3 partition and if I connect the phone to my PC to copy stuff to/from in disk mode it un-mounts the SD card, losing the apps folder and the cache folder.
So far, since flashing, I haven't installed half as much crap on my phone, or dismounted the SD card, but I am worried that it will start to cause problems with the phone if I need to connect via USB/disk drive mode.
Has anyone else had these problems, or know of a 'safe' way to unmount the card without corrupting apps?
cyberguru said:
Hi all,
My Desire is rooted and running Leedroid 2.2a with an ext3 partition on my SD card for my apps and cache folders, using the default apps2sd setup with the ROM.
I recently had to re-flash my phone because lots of installed apps went missing; some of them had odd names (the com.android.x.x names) and then it got stuck in a boot loop because it couldn't read the SD card until I formatted it, well actually I had to destroy the ext3 partition. Now I wonder if its because the apps folder is on the SD card/ext3 partition and if I connect the phone to my PC to copy stuff to/from in disk mode it un-mounts the SD card, losing the apps folder and the cache folder.
So far, since flashing, I haven't installed half as much crap on my phone, or dismounted the SD card, but I am worried that it will start to cause problems with the phone if I need to connect via USB/disk drive mode.
Has anyone else had these problems, or know of a 'safe' way to unmount the card without corrupting apps?
Click to expand...
Click to collapse
It shouldn't corrupt your EXT partition if you mount USB on your device.
AFAIK, if you mount USB, it will only mount the FAT32 partition, the EXT partition will still be available to Android.
Problem has occurred again. My battery went flat on Saturday so the phone turned off. Plugged it in on Saturday night, turned it on, and it stays at the "HTC" white background green text screen.
If I remove the card it boots fine. I mounted the SD card in Ubuntu and I can use the fat32 partition on the card, but the ext3 partition is empty, although if I right click on it and go to properties, it shows that there is 130mb in use on the partition. I cant do anything to the partition because Ubuntu throws some odd error about not being able to mount the partition because its in use, or some other paradoxical scenario...
Annoyed now. Anyone know of a fix? should I copy all the stuff I want off the card, repartition using gparted and try again? I used the ROM Manager app on the phone to prepare the card before. Could it have a bug?? the Ext3 partition is at the end of the drive space, after the fat32 partition. Should I make it the first partition?
Bit of a bump, but it seems I'm not the only one with this issue. Any help is appreciated...
I don't have the card with me now cos I'm at work so I cant do any more tests or try and find a solution.
Have you been able to find a resolution for this, I'm having this exact issue. While I suspect a reformat would address, I don't want to have to deal with this weekly.
No worries, you can mount them fine. but if you take out your sd card out of the phone and turn the phone on, it would turn on and go in a bootloop. but that was just for me.
This is used to happen to me. Stuck in HTC logo on white background. It turned out to be that my sd card was bad partitioned it corrupted.
I fixed it by destroyed all partitions and created only fat32. Then put it back to HTC Desire and had ROM Manager created new ext3 partition.
Sent from my HTC Desire using XDA App
I have been facing this issue ever since I started trying a2sd+ roms. I created a 1GB ext3 and apps will start disappearing every now and then. If I shutdown the phone and boot it again, then many apps will go missing.
I tried reformatting the sd, wipe and reinstall the rom but no use. Apps will keep disappearing on every reboot. At times all the installed application will be corrupted. i.e they will be listed in application manager as com.android.xx.xx with no icon. Some apps will have the icon and if i select them it will say the application is no longer available.
I have tried different roms with a2sd+ and still have the issue
I have tried different methods of partitioning.. Using acronis disk director in windows, using rom manager, using ubuntu live cd etc.. still the issue is present.
What makes it difficult is that sometimes the ext3 partition gets corrupted.. sometimes the whole sd ext3+fat32 gets corrupted, and I could not find what's wrong.
One final thing left to check is to try with a different sd card. If even that fails, then I have to go back to non-a2sd+ rom and live with low internal memory
Anyone faced this issue and found a solution, please share... I would be grateful...

[Q] Epic 4g Microsdhc issue and One Click Root & Recovery v2.5.5

Hi,
Please forgive me if this is a noob question. I recently developed an issue transferring files to the sd card. Using the usb storage method, after transfering 2 or 3 mp3s, the phone would shut off and reboot for no reason (This caused the Zeam launcher to crash apparently? for at least 15 tries)
I tried using the SD adapter, the transfer rate is extremely slow or to no transfer at all and causes windows explorer to crash or hang (tried at least 15x).
I figured my sd card was corrupted so I tried formatting the card. If I used the SD adapter, it would say the card is write-protected even though clearly, the locked was off. I even tried another SD-adapter to no avail.
Finally, using USB storage, I was able to format the SD card.
Since I mentioned earlier that the Zeam launcher crashed, (yes, I selected always use "zeam launcher" even after it crashed causing the error message to loop) I resetted the phone with the wipe data/factory rest option in clockworkmod (I'm using ViperRom 3.03).
I wasn't sure if the 1 click root (http://forum.xda-developers.com/showthread.php?t=770388) installed any folders into the sd card so I ran the 1 click root in windows just to make sure. After rebooting from the 1 click root, all the files that were previously formatted were back.
I guess I didn't read too clearly but
my questions is
1) how am I able to disable that backup function? I had a bunch of files (which I have no idea what they did) from when i first started playing with the phone and I want to start off fresh with just the files I need.
2) anyone have any idea why the sd card was unable to accept files through the SD adapter or USB storage method?
3) what to do when the launcher crashes (this happened to me 2x already where I lost all my data)
Thanks to anyone who can help. This will help me close some gaps in my limited Android/Epic 4g knowledge.
definitely something is weird. Using usb storage, I ran the scandisk to fix errors and some errors were found. I formatted to ntfs just for kicks and the sd card read blank and in properties the drive had nothing in use. I turned off usb storage, turned it back on and voila, all the files that weren't there are now back. It this a sign of a corrupted sd card or am I going crazy?
Which files/folders are you referring to? Because as soon as your phone mounts your sd card, it will write about 4 folders (I think) if they are not already there...
.android_secure
Android
DCIM
LOST.DIR
if I recall correctly. The other thing you can do is use your phone to format your card instead of doing it on a computer... go to 'Settings->SD card and phone storage->Unmount SD card' then after it is unmounted, use the 'Format SD card' option. If this doesn't work, then you may need a new sd card/phone.

MicroSD problem: corrupted message and unable to format + bootloop if SD is inserted

Hi everybody, I just wanted to share my experience with microSD card reader on my XT-1676 16GB/3GB RAM
When I bought it in May everything was fine but few days after the purchase it suddently came out with a problem I can't work out with: the microSD I had inserted and which was working quite fine was recognized as "corrupted", and I had to format it (and choose between external or internal storage) in order to get it working again. Point is: formatting keeps failing, no matter what I choose (external/internal) with this error when as external: "command '15 volume partition disk:179,64 public' failed with '400 15 Command failed" (numbers change sometimes), and by stucking at 30% when as internal. On top of this, if I keep any micoSD inserted (I've tried many of them) when the phone is off, then if I power it on it will bootloop, even if I boot into TWRP recovery. As soon as I remove the SD during bootloop, the phone boots. During the last months I've been searching for a solution of course, and I figured out that many other Lenovo users has my problem, but I didn't find any Moto G5 owner with my frustrating error.
After the NPP25.137-72 update (which didn't solve) I've unlocked my bootloader and tried many ROMs, but seems that my Moto G5 is just unable to deal with /extsd (ot whatever it's called) partition. Lastly, every single microSD I have tried in my phone and has been told "corrupted" by the MotoG5, works flawlessly instead when in other devices.
Do you think I have an "hardware disease"?
Thanks
The only thing I can suggest is if you put the sd card into a pc (you can get a cheap card reader if you dont have one) - and using something like minitool (or any other partition manager) delete all partitions one the sd card and create a new fat32 partition and format it
Only use the sd card as external storage and you can use the rescan media app (see app section) to find any missing files that the android media scanner couldn't find
if it keeps coming up corrupted when trying to mount the media scanner app wont work - but if it can mount the sd card but cant display the files the media scanner app should be able to display the files - of course if you have to delete and recreate the partition than any files you had on there will be lost
TheFixItMan said:
The only thing I can suggest is if you put the sd card into a pc (you can get a cheap card reader if you dont have one) - and using something like minitool (or any other partition manager) delete all partitions one the sd card and create a new fat32 partition and format it
Click to expand...
Click to collapse
I always format my SD card via GParted before inserting it in the device. I am seriously afraid this is a HW problem, though.

Categories

Resources