Format HTC One Internal SD Memory - Sprint HTC One (M7)

Installed an AOSP Rom. Now the system has the /0 directory and for the intents and purposes of running roms that are sense based and aosp based, the file system is fragmented, so to speak. I would like to wipe out the entire sd card and start over. What do you think is the best way to go about this??
Jason

Jason0071 said:
Installed an AOSP Rom. Now the system has the /0 directory and for the intents and purposes of running roms that are sense based and aosp based, the file system is fragmented, so to speak. I would like to wipe out the entire sd card and start over. What do you think is the best way to go about this??
Jason
Click to expand...
Click to collapse
Search. Search. Search.
It's been covered before, and you don't need to format your internal memory (especially because you're more than liable to screw something up if you're not confident in what you're doing).
The /0 directory can be safely deleted if you follow instructions.

Jason0071 said:
Installed an AOSP Rom. Now the system has the /0 directory and for the intents and purposes of running roms that are sense based and aosp based, the file system is fragmented, so to speak. I would like to wipe out the entire sd card and start over. What do you think is the best way to go about this??
Jason
Click to expand...
Click to collapse
I have never understood answering a thread if your not going to provide the answer. Anyway follow this thread and you will be back in business. http://forum.xda-developers.com/showthread.php?p=42512892
Sent from my HTCONE using xda app-developers app

Problems in other areas of life, previous situations, ego... who knows. I figured it out thank you for the help.
Sent from my Nocturnal Google Edition CDMA 5.0 using XDA Premium 4 mobile app

Haha, np man glad you got it sorted out.
Sent from my HTCONE using xda app-developers app

Konfuzion said:
I have never understood answering a thread if your not going to provide the answer. Anyway follow this thread and you will be back in business. http://forum.xda-developers.com/showthread.php?p=42512892
Sent from my HTCONE using xda app-developers app
Click to expand...
Click to collapse
This zip only worked for me the first time I flashed back from 4.2. Subsequent downgrades have resulted in me not being to move any file from the readable sd partition. Anyone know how to fix this? Tia
Edit. I ended up wiping my sd partition, sideloading a rom, wiping everytging except sd on the phone and then flashed the sideload.zip to fix the problem. I'm thinking some type of symlink got broken somewhere in the flashing process making the /data/media folder and the actual sd partition unable to communicate with each other. Hope what I've gone through can be helpful to others. I definitely learned during this process lol.
Sent from my rooted HTC One.

I have notice this as well and even though you solution was able to fix it and mine as well was fixed but there seems to be something strange even though everything seem fixed.
i have notice when i go to contacts and manage contacts and export contacts to Phone storage it recreats a folder ( /storage/emulated/0/pcsc_pcsc_001.vcf )

Related

[Q] I'm an idiot! Undelete files after CWM wipe?

While updating the ROM in my phone I did a CWM wipe without realizing it would wipe the external sdcard as well, which of course is where my Titanium Backup is stored. Does anyone know whether CWM reformats or just deletes the files, and whether there's a prayer of recovering things? I'm familiar with utilities which will look for image files and reconstruct them, but I'm more concerned with my TiBu files.
Bill
I think they are toast. You can try to mount your phone to your computer and run a recovery program, but I don't think that works on flash memory, plus none of the good recovery programs are free.
BTW, this should be in the Q&A section.
Sent from my SAMSUNG-SGH-I897 using XDA App
quarlow said:
BTW, this should be in the Q&A section.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
That's why this thread is closed

[UPDATE][RECOVERY] AGAT Recovery tRec_v0.3.6 05/05/13

My thanks and credits to:
Shabbypenguin, Garwynn, inteloper and Talustus from dream team for all the help I've got and for making this possible.
I know we have fully working recoveries already and I made this just to learn the process and for the future if I'm not that lucky any more and don't have amazing devs like Shabbypenguin on the same device.
I still have a lot to learn but this is first step I made in that direction.
Here is my recovery tRec_v0.3.6 that has been used for quite some time on E4GT.
It has been compiled with great help from devs mentioned above with CM10.1 for our phones.
The mount points have been fixed thanks to Dees_Troy from TWRP team.
Now back ups are saved in correct location and can be accessed with apps like stock "My Files".
AGAT_Recovery_tRec_v0.3.6.tar
AGAT_Recovery_tRec_v0.3.6.zip
So far I was able to back up, restore, flash zips etc.
It looks like I'm a good student and it works.
I have tried zip file and it works.
Tar should work fine with ODIN but I didn't test it.
I'm using heimdall to flash recovery.img.
Neat! Post some screenshots if you can.
Unknownforce said:
Neat! Post some screenshots if you can.
Click to expand...
Click to collapse
Screen shots of recovery?
Pictures, whatever... Just curious on how it differs visually from the other recoveries. Or if it has features like TWRP that I can wipe partitions as I want or whatever...
Unknownforce said:
Pictures, whatever... Just curious on how it differs visually from the other recoveries. Or if it has features like TWRP that I can wipe partitions as I want or whatever...
Click to expand...
Click to collapse
It based on CWM recovery.
Have did some changes and edits long ago to make it work with GS2.
Small updates and edits and we got new OS dropping.
So it's somewhat modified and edited CWM.
Been using your recovery and kernel on wife's E4GT for quite some time. Excited for your stuff here.
Sent from my SPH-L720 using Tapatalk 2
WOW, new recovery.....GOnna try it now. Thanks agat!!
Question. My backup failed. My phone is telling me I'm low on storage space. I have under a gig left on the device which I don't understand and 16 on my sd card. . My sd card doesn't appear to be showing up and in my storage settings where it says mount sd card ..I can't. What do I do?
Sent from my SPH-L720 using XDA
Screen shot
Sent from my SPH-L720 using XDA
On more..doesn't make sense
Sent from my SPH-L720 using XDA
primo523 said:
On more..doesn't make sense
Sent from my SPH-L720 using XDA
Click to expand...
Click to collapse
Honestly I don't understand what are you trying to say.
primo523 said:
On more..doesn't make sense
Sent from my SPH-L720 using XDA
Click to expand...
Click to collapse
So after you flashed the recovery, tried to make a backup and restore it failed? then u booted up and you memory is all jacked up? is that right? im trying to understand myself!!!
reverepats said:
So after you flashed the recovery, tried to make a backup and restore it failed? then u booted up and you memory is all jacked up? is that right? im trying to understand myself!!!
Click to expand...
Click to collapse
Yes. Sorry for the unclear statement. My device memory says it's low and I don't understand how that can be. Backup failed.. My sd card is fine. Can I back up to my sd card?
Sent from my SPH-L720 using XDA
I havent flashed it yet, but if its based off of CWM there should be an option to "create backup to external memory" right before you execute the backup. But im kinda puzzled on why that would mess with your internal memroy. Are u currently running a TW ROM? or are u on one of the Alpha builds of CM/AOKP?
primo523 said:
Yes. Sorry for the unclear statement. My device memory says it's low and I don't understand how that can be. Backup failed.. My sd card is fine. Can I back up to my sd card?
Sent from my SPH-L720 using XDA
Click to expand...
Click to collapse
Look in /data/media/clockworkmod
You will find your backups. You can move them to the sdcard or delete them and start fresh.
Sent from my SPH-L720 using xda premium
reverepats said:
I havent flashed it yet, but if its based off of CWM there should be an option to "create backup to external memory" right before you execute the backup. But im kinda puzzled on why that would mess with your internal memroy. Are u currently running a TW ROM? or are u on one of the Alpha builds of CM/AOKP?
Click to expand...
Click to collapse
I made 3 back ups.
2 on external and one on internal memory.
Didn't have any problems. Everything works.
Attached are screenshots from my phone.
primo523 said:
Yes. Sorry for the unclear statement. My device memory says it's low and I don't understand how that can be. Backup failed.. My sd card is fine. Can I back up to my sd card?
Sent from my SPH-L720 using XDA
Click to expand...
Click to collapse
You device shows 0.92 GB free space
and back up of this phone is about 3.5-3.6 GB.
So you have 1/3rd of needed space for back up.
primo523 said:
Yes. Sorry for the unclear statement. My device memory says it's low and I don't understand how that can be. Backup failed.. My sd card is fine. Can I back up to my sd card?
Sent from my SPH-L720 using XDA
Click to expand...
Click to collapse
According to you first screen shot, externalsd isn't mounting.. So there's an issue right there. I'll flash it over and test.
Also, even if your backup failed, you need to use an explorer and check from root /data/media and see if you have a clockworkmod folder with a partial backup. Just delete it since you know it failed. (partials will still be written on a fail)
@agat - I ran a few lines for @shabbypenguin earlier and you may want to get with him on the mount points.
ls -l /storage/emulated/legacy - gives - /mnt/shell/emulated/0, which isn't read properly. So users won't see the files under /data/media without an explorer. Seems to be common with CWM and the S4. It thinks the sdcard is /storage/emulated/legacy.
Shabby can explain it a lot better than I can.
:edit: Just saw your reply Agat. I know Garwynn's recovery is resolved and if you've been working with him and Shabby, I'm sure yours is as well. Only open issue I'm aware of is exfat.
Thanks guys. Backup on sd card complete. Just can't figure out how I used up all my device storage space.
Sent from my SPH-L720 using XDA
MoHoGalore said:
According to you first screen shot, externalsd isn't mounting.. So there's an issue right there. I'll flash it over and test.
Also, even if your backup failed, you need to use an explorer and check from root /data/media and see if you have a clockworkmod folder with a partial backup. Just delete it since you know it failed. (partials will still be written on a fail)
@agat - I ran a few lines for @shabbypenguin earlier and you may want to get with him on the mount points.
ls -l /storage/emulated/legacy - gives - /mnt/shell/emulated/0, which isn't read properly. So users won't see the files under /data/media without an explorer. Seems to be common with CWM and the S4. It thinks the sdcard is /storage/emulated/legacy.
Shabby can explain it a lot better than I can.
Click to expand...
Click to collapse
Just used stock "My Files" app and was able to navigate to both internal and external /clockworkmod/backup folders.
I'm not sure I understand what you mean it's read properly an I need explorer.
I can see and access both folders on my PC and with "My Files" app on phone.

[CWM][Script]Storage Swap for 4.2 ROMs

I modified the original script to work for our mount, and then put it in a flashable to flash after flashing a ROM to have storage swapped right away after booting. No need to manually move the script to /system/etc/init.d any more.
Let me know if there's any issues.
Thanks to original script author and others who figured out what mounts are which.
DOWNLOAD
Script info:
extsd2internalsd is a modification that allows to switch internal sd to external sd and viceversa. With this you can use default internal sd only for app storage and the external sd to store all apps resource and all others stuff. The result is a very big increase of installable apps on your device.
All credits to Mattiadj of xda forum for the idea and script and to mike1986 for the cmw zip.
Script Modified for U.S. Galaxy S3s by Zedomax at GalaxyS3Root.com to be compatible when sdcard is not inserted.
This is ONLY for 4.2 custom ROMs with unlocked boot loaders of course. Not tested with stock 4.1 or CM10 (4.1) You are welcome to try it though and let me know the results.
Do i flash it right after the gapps if i am i stalling aokp?
Sent from my MB886 using xda premium
Thanks a lot! You've made it too easy now.
sickkside13 said:
Do i flash it right after the gapps if i am i stalling aokp?
Sent from my MB886 using xda premium
Click to expand...
Click to collapse
Yep flash it at the end
huatz84 said:
Thanks a lot! You've made it too easy now.
Click to expand...
Click to collapse
Gotta do anything to save time
Strange, after loading the zip and went to the storage menu i see the same for internal memory and there is no external sdcard now.
Sent from my MB886 using xda premium
I lost all of my game data. I have TB but I can seem to get it to stick with root explore. I'll format both sdcard and the external , reinstal the zip and hope that I can get it back.
Sent from my MB886 using xda premium
If you formated both sdcards you pretty much deleted everything you had there mate.
Sent from my MB886 using xda premium
To me both of my cards still showing on cwm. How i tell if the job was done correctly. The attachment show no changes for internal but external is not there anymore as it reads internal space
Sent from my MB886 using xda premium
SVLAN said:
If you formated both sdcards you pretty much deleted everything you had there mate.
Sent from my MB886 using xda premium
Click to expand...
Click to collapse
I haven't yet...I always keep a backup on my computer.
Sent from my MB886 using xda premium
SVLAN said:
To me both of my cards still showing on cwm. How i tell if the job was done correctly. The attachment show no changes for internal but external is not there anymore as it reads internal space
Sent from my MB886 using xda premium
Click to expand...
Click to collapse
I can't get 4.2 to read the storage in settings correctly. I put a specially named folder on my external SD card and when it shows up as internal I know it works. You won't be able to see the external SD anymore which is now technically the internal.
Formatting SD cards won't make any difference here. All were doing is telling the system one is the other.
Youngunn2008 said:
Formatting SD cards won't make any difference here. All were doing is telling the system one is the other.
Click to expand...
Click to collapse
K
I have my game data on my computer, I can't seem to make it stick so I can restore my games to where I was last playing.
I haven't formated anything. After I flashed the zip my data went away, but on the other hand I can see the data folders in root explorer.
Sent from my MB886 using xda premium
To undo just delete the script in /system/etc/init.d
This isn't doing anything obtrusive guys its just placing the script for you is all.
Its recommended you do this after a clean install of whatever ROM you run.
As for the game save data I will swap the storage and then OPEN each game to make it create the corresponding folders and then restore
Does it work on 4.1.2 Mexico Retail debloated?
What if i have apps installed and my mmry card is also filled?
Seeing as how it says 4.2 roms only what do you think man? You can try it to see if it works though. You really want to do it on a fresh rom install.
Sent from my PACMAN MATRIX HD MAXX
Working like a charm, thanks dude :good:
Anyone have a problem installing apps with this script? Every time I try it give me an error Not Installed
Sent from my MB886 using xda premium
Side loading from the SD card gives me problems yeah. I actually went back to default and just use the symlink method for Google music.

0 Folder

I installed Cm 10.1 but returned to Viper's rom. Now I've an 0 folder. it seems to have the same things as the sdcard folder. Can I delete this folder and still be able to use my phone? It seems that TWRP reads that folder to install roms. Now my phone says its almost full of storage space and I don't have many songs on it. Any ideas? I've searched and haven't found anyting about this yet.
It is due to the multiuser support in aosp ROMs, to get rid of it I recommend backing up with titanium backup, wiping data and reflashing viper, that should do it!
Sent from my HTCONE using xda app-developers app
So just reflashing Viper will get rid of it and open up more storage space?
I believe only if you wipe data
Sent from my HTCONE using xda app-developers app
It's still there. Can I erase it?
Deleting it will free up about 14bg of storage space
No, that's basically your virtual SD card...might cause problems...
Sent from my HTCONE using xda app-developers app
u can delete folder "0" just dont' delete the sd card, the same thing happened to me last week hun
ticklemepinks said:
u can delete folder "0" just dont' delete the sd card, the same thing happened to me last week hun
Click to expand...
Click to collapse
The 0 has all the contents from your sdcard in it. Move them back to the root of the card then delete the folder. I had to delete it from recovery btw
DomSim said:
The 0 has all the contents from your sdcard in it. Move them back to the root of the card then delete the folder. I had to delete it from recovery btw
Click to expand...
Click to collapse
I tried out cm10.1 restored back to viper Rom moved all the files back over deleted 0 folder but when I go back into recovery my files still won't show but they are where they're supposed to be it is like twrp is not reading the correct path to my files
Edit: I got twrp to read the correct path bit all my files are there but all they where all erased but showed as they were still there never flashing cm10.1 again sense5 is way faster and the audio is untouchable
Sent from my HTCONE using xda premium
dandan2980 said:
I tried out cm10.1 restored back to viper Rom moved all the files back over deleted 0 folder but when I go back into recovery my files still won't show but they are where they're supposed to be it is like twrp is not reading the correct path to my files
Edit: I got twrp to read the correct path bit all my files are there but all they where all erased but showed as they were still there never flashing cm10.1 again sense5 is way faster and the audio is untouchable
Sent from my HTCONE using xda premium
Click to expand...
Click to collapse
i think they might still be there tho, if recovery said it was there, they prolly are
ticklemepinks said:
i think they might still be there tho, if recovery said it was there, they prolly are
Click to expand...
Click to collapse
They was there but all the data in the my downloaded zips got erased. But the zip was still present in my sdcard/download they all said 0 bytes rather than say like 2.4mb whatever the size used to be
Sent from my HTCONE using xda premium

[Q] Imternal sd awkwardly partitioned

Hi all,
I noticed that my internal sd card has two 0 folders, they are like so
Sdcard/0/0/
Everything from internet saves on the first /0/Download for ex., i am now on arhd 51, but previously on archidroid everything saved inside /0/0/Download, is there any way to fix this, or repartition or something without need to wipe all the data in sd? Because everything is messed up and i don't know any more wich uses what folder and so on.
Thx in front.
Edit: posted in i9305 not i9300 Q&A, mods please transfer, sorry for that.
Sent from my GT-I9300 using XDA Premium
lsalamun said:
Hi all,
I noticed that my internal sd card has two 0 folders, they are like so
Sdcard/0/0/
Everything from internet saves on the first /0/Download for ex., i am now on arhd 51, but previously on archidroid everything saved inside /0/0/Download, is there any way to fix this, or repartition or something without need to wipe all the data in sd? Because everything is messed up and i don't know any more wich uses what folder and so on.
Thx in front.
Edit: posted in i9305 not i9300 Q&A, mods please transfer, sorry for that.
Sent from my GT-I9300 using XDA Premium
Click to expand...
Click to collapse
can you post some screenshots of the two folders and their content, perhaps i can tell you what to do?
Edit: you can also copy all the files in one of the 0 folders to the other 0 folder and delete the empty one, i asked for screenshots just to make sure if there is any important file in one of those folders that maybe will cause problems with functioning of other apps or system settings if you replace it.
Here is the /0/0/ and i cannot delete archidroid folder or clockworkmod folder (write protected), also if i copy pictures from 0/0/DCIM/Camera to 0/DCIM/Camera, they are not shown, even after reboot when mediascanner is running, when i transfer them back they are imediately shown.
Edit: i can delete archidroid and clockworkmod folder, but via phone, not via pc, but the probem with transfering pictures to now used DCIM still persists.
Sent from my GT-I9300 using XDA Premium
I transfered all the pics inside a new folder in sdcard/0/DCIM but they just don't wanna show, they pop up only in sdcard/0/0/DCIM
What can cause this problem? (I can normally view them in file managers.
I noticed that when i force run media scanner it scans storage/emulated/0/0/
It doesnt scan the first /0/ that is used now, can this be fixed?
Sent from my GT-I9300 using XDA Premium
Screenshots for proof that 0/0/ works.
P.s. sorry for double post i cannot update pictures via xda premium in edit mode.
Sent from my GT-I9300 using XDA Premium
lsalamun said:
Screenshots for proof that 0/0/ works.
P.s. sorry for double post i cannot update pictures via xda premium in edit mode.
Sent from my GT-I9300 using XDA Premium
Click to expand...
Click to collapse
oke bro, here is what you should do everything personal and important to you like pics./music/documents copy to your external sd card or to your pc if possible both should be safe. format your internal sd card of the phone in recovery mode after everything is restored back put your files back into proper folders and all should be fine again. you are rooted and have custom recovery installed right?
MaHo_66 said:
oke bro, here is what you should do everything personal and important to you like pics./music/documents copy to your external sd card or to your pc if possible both should be safe. format your internal sd card of the phone in recovery mode after everything is restored back put your files back into proper folders and all should be fine again. you are rooted and have custom recovery installed right?
Click to expand...
Click to collapse
Yes of course i'm rooted with twrp, i tought there was some other way than getting in all that copy paste, but i'll do that and then it must, just must work.
I think i messed something up in archidroid installation when it asked for EXT4 repartitioning or something like that.
lsalamun said:
Yes of course i'm rooted with twrp, i tought there was some other way than getting in all that copy paste, but i'll do that and then it must, just must work.
I think i messed something up in archidroid installation when it asked for EXT4 repartitioning or something like that.
Click to expand...
Click to collapse
yes that must be it, as i had read somewhere on these threads a similar problem like yours its better to avoid changing or setting options from which you dont understand what they do like EXT4 or F2FS partitions unless you know what you are doing. at least thats what i do to avoid any problems with my device
MaHo_66 said:
yes that must be it, as i had read somewhere on these threads a similar problem like yours its better to avoid changing or setting options from which you dont understand what they do like EXT4 or F2FS partitions unless you know what you are doing. at least thats what i do to avoid any problems with my device
Click to expand...
Click to collapse
Yes, i know now for future, but, one more question..
It's 'calculating time for copy...' now, i see it'll take ages to 'calculate', so, is there any option to just mount the internal sd card, i remember i could mount it via CWM on my old S2 and everything went quick, but i cannot mount just SD anymore, only as a 'Media device', it seems quite slower..
Do you know an option to do that?
Edit: Disabled indexing, it's flying now
lsalamun said:
Yes, i know now for future, but, one more question..
It's 'calculating time for copy...' now, i see it'll take ages to 'calculate', so, is there any option to just mount the internal sd card, i remember i could mount it via CWM on my old S2 and everything went quick, but i cannot mount just SD anymore, only as a 'Media device', it seems quite slower..
Do you know an option to do that?
Edit: Disabled indexing, it's flying now
Click to expand...
Click to collapse
I do recommend using philz touch CWM advanced edition or just the CWM touch version as a recovery choice (especially philz) rather than Twrp, but its all up to you..
I was on philz quite a while, now testing twrp, i did the wipe, everything's perfect now, but i accidentaly deleted my pics coz' they were in the 0/0/ and i deleted the second 0 thinking i don't need it
I got a little shock but i'll recover
Sent from my GT-I9300 using XDA Premium
lsalamun said:
I was on philz quite a while, now testing twrp, i did the wipe, everything's perfect now, but i accidentaly deleted my pics coz' they were in the 0/0/ and i deleted the second 0 thinking i don't need it
I got a little shock but i'll recover
Sent from my GT-I9300 using XDA Premium
Click to expand...
Click to collapse
Haha :laugh: allright mate :good:

Categories

Resources