Cleaning up old sdcard layout JB 4.1.2 - One (M7) Q&A, Help & Troubleshooting

Hello,
I like to delete the old layout from my htc one.
I have now JB 4.2.2 and i want to delete all the other files (from the JB 4.1.2 layout) that are not visible anymore.
How can i do that ?

go to data/media in a root explorer and delete everything except the 0 folder

IINexusII said:
go to data/media in a root explorer and delete everything except the 0 folder
Click to expand...
Click to collapse
Can someone else confirm this before I nuke my /data/media folder lol?

Yup just like he said..if your worried copy to comp first
Sent from my HTC One using xda app-developers app

If you want a clean rom, you can format sdcard using cwm and sideload new rom.zip
worked fine for me.
Greetz, MaW
Sent from my HTC One

Related

System data is too big!

Hi!
I'm on CM10.1 RC1 with last werewolf kernel. The file(?) "system data" is too big : 7Gb... How can i erase it?
Sent from my LG-P880 using xda app-developers app
e-53e said:
Hi!
I'm on CM10.1 RC1 with last werewolf kernel. The file(?) "system data" is too big : 7Gb... How can i erase it?
Sent from my LG-P880 using xda app-developers app
Click to expand...
Click to collapse
This is probably actually your old sdcard files from stock. Move the stuff in /mnt/shell/emulated to /mnt/shell/emulated/0, if you have any .obb files move them to /mnt/shell/emulated/obb. Alternatively if you don't need them just delete everything in /mnt/shell/emulated EXCEPT FOR "0","legacy" AND "obb" AS THESE ARE YOUR NEW STORAGE LOCATIONS hope this helps, it sucks how CM changes your storage without any prior warning, old releases used to move the files automatically but the new ones don't to move them just use the built in file manager in root mode, es file explorer is buggy on CM and won't let you cut files properly
Sent from my rooted P880

Downgrading 4.2.2 AOSP to 4.1.2 Sense

MAKE SURE TO MAKE A BACKUP OF INTERNAL STORAGE BEFORE YOU TRY THIS. IT WORKED FOR ME, BUT YOUR RESULTS MAY VARY!
I did not make this file, it was made for the Note 2, unfortunately I can't find the original thread for it. I had assumed it would not work for us, because the Note 2 had an actual SD card slot, and our phone does not. Anyway, I just tried it and sure enough, it does work perfectly.
If you decide you want to flash back to a 4.1.2 Sense rom from a 4.2.2 AOSP rom go ahead and wipe your phone like you normally would, flash the rom of your choosing, and then flash this file before you reboot. Only thing you'll have left after you reboot the phone, is the "0" folder. But it's empty since it moved all your files back to where they should be. Make sure you delete that "0" folder after the reboot. When I rebooted to TWRP after setting up, it appeared I had nothing on internal storage because it was still reading the "0" folder.
I'm very happy that this file actually works so now I can play with all the roms I want without the headache.
Me or the original creator of this file are not responsible for what you chose to do with your phone! That said it worked for me, and it SHOULD work for you.
Thanks for sharing.
Thanks for taking the leap and trying this out and then sharing.
Sent from my HTCONE using Tapatalk 2
Added this to my FAQ Guide Q14
Worked like a charm. Thanks! :good:
Thanks OP, worked perfectly for me as well.
For anyone who didn’t know about this problem before flashing a 4.2.2 ROM (like me!), and doesn’t have a back-up of their internal SD, I found one way to retrieve it. Although there was nothing too terribly important on it, I experimented with ADB while in recovery and found that I could pull a copy of the entire internal SD with one command. For anyone else who finds themselves in this position and wants to try it, the command I used is:
Code:
adb pull /sdcard/ c:\sdcard\
This is probably dirt simple for most folks here, but I had to try a few times before figuring out how to do it without it simply dumping ALL the files right into my tools folder! That will work, but it can be a mess to sort out. The command above will create a folder in the root directory of your PC named sdcard and very neatly plop all the files in the correct place. You can change the destination to suit your needs, of course, but the above worked for me.
Tried it from the q/a thread. Works great dude, thanks a lot.
Awesome! Will try this today, thanks for sharing.
Sent from my HTC d3rpONE using Tapatalk 4 Beta
Thanks for this. May push me over the edge to try some AOSP.
Sent from my rooted HTC One...
Flashed this coming from vanilla root box to tranquil rom, tried deleting the 0 file and it won't let me. I go to recovery, it's still reading the 0 file but it doesn't have anything in there but the twrp file. Help please. Because it wont even let me put anything in the 0 folder to flash.
Sent from HTCONE using Tapatalk 2
I'm having the same problem wished someone could help me out
Sent from my HTC One using Tapatalk 4 Beta
Killer-B said:
Flashed this coming from vanilla root box to tranquil rom, tried deleting the 0 file and it won't let me. I go to recovery, it's still reading the 0 file but it doesn't have anything in there but the twrp file. Help please. Because it wont even let me put anything in the 0 folder to flash.
Sent from HTCONE using Tapatalk 2
Click to expand...
Click to collapse
wfee said:
I'm having the same problem wished someone could help me out
Sent from my HTC One using Tapatalk 4 Beta
Click to expand...
Click to collapse
While in Tranquil, use Total Commander or Root Explorer file explorer to delete the 0 directory. This will break the symlink and TWRP will look at the right directory after that.
Sent from my HTC d3rpONE using Tapatalk 4 Beta
mrrogers1 said:
While in Tranquil, use Total Commander or Root Explorer file explorer to delete the 0 directory. This will break the symlink and TWRP will look at the right directory after that.
Sent from my HTC d3rpONE using Tapatalk 4 Beta
Click to expand...
Click to collapse
I added a few lines to the "updater-script" so that it would delete the "0" folder (as failsafe, in case .sh script didn't delete it) but I need someone to test it. I only added two lines to the actual updater script file so it "should" work. Someone PM me and I'll send you the link.
EDIT:
http://www.mediafire.com/download/628ko5rmqjr5qdw/restore-sdcard-after-downgrade-EWG-Test.zip <--I AM NOT RESPONSIBLE FOR ANY DAMAGE CAUSED BY THIS ZIP. FLASH AT YOUR OWN RISK.
ericwgarza1 said:
I added a few lines to the "updater-script" so that it would delete the "0" folder (as failsafe, in case .sh script didn't delete it) but I need someone to test it. I only added two lines to the actual updater script file so it "should" work. Someone PM me and I'll send you the link.
EDIT:
http://www.mediafire.com/download/628ko5rmqjr5qdw/restore-sdcard-after-downgrade-EWG-Test.zip <--I AM NOT RESPONSIBLE FOR ANY DAMAGE CAUSED BY THIS ZIP. FLASH AT YOUR OWN RISK.
Click to expand...
Click to collapse
Doesn't work for me, I get error when trying to flash
Sent from my HTCONE using Tapatalk 4 Beta
thatotherguy.. said:
Doesn't work for me, I get error when trying to flash
Sent from my HTCONE using Tapatalk 4 Beta
Click to expand...
Click to collapse
I just tested and uploaded a corrected version. I flashed it successfully via my recovery (TWRP) and verified that it deletes the "/data/media/0" folder. Let me know if you have any problems with the new zip. For the people who downloaded this previously, you will need to re-download. My bad on the silly error. :silly:
Link for fixed zip: http://www.mediafire.com/?v26rw54gwgbg19w
ericwgarza1 said:
I just tested and uploaded a corrected version. I flashed it successfully via my recovery (TWRP) and verified that it deletes the "/data/media/0" folder. Let me know if you have any problems with the new zip. For the people who downloaded this previously, you will need to re-download. My bad on the silly error. :silly:
Link for fixed zip: http://www.mediafire.com/?v26rw54gwgbg19w
Click to expand...
Click to collapse
I can confirm it's working
Sent from my HTCONE using Tapatalk 4 Beta
I flash this and it works. However when I use twrp again, 0 folder gets created but nothing else go to that folder except the backup files.
Sent from my HTCONE using xda app-developers app
erikivy said:
Thanks OP, worked perfectly for me as well.
For anyone who didn’t know about this problem before flashing a 4.2.2 ROM (like me!), and doesn’t have a back-up of their internal SD, I found one way to retrieve it. Although there was nothing too terribly important on it, I experimented with ADB while in recovery and found that I could pull a copy of the entire internal SD with one command. For anyone else who finds themselves in this position and wants to try it, the command I used is:
Code:
adb pull /sdcard/ c:\sdcard\
This is probably dirt simple for most folks here, but I had to try a few times before figuring out how to do it without it simply dumping ALL the files right into my tools folder! That will work, but it can be a mess to sort out. The command above will create a folder in the root directory of your PC named sdcard and very neatly plop all the files in the correct place. You can change the destination to suit your needs, of course, but the above worked for me.
Click to expand...
Click to collapse
I should start doing this before every flash. because last night I tried a 4.2.2 rom that didn't boot up and when I went into recovery TWRP was reading from the /0 directory and I didn't have any backup roms to reflash.... so I got worried that I was going to lose all my sdcard data and RUU restore my phone
so if youre phone ever gets stuck with no rom in your directory to flash and you have a working ADB. just move the rom to your ADB directory and type: adb push nameofrom.zip /sdcard/ while in TWRP. once its done pushing the file will show up when you go through the install directory and if you're going back to a 4.1.2 rom make sure you push the restore-sd.zip. I think it's time to invest in an USB-OTG flash drive as a security blanket.
wasn't sure if this method was covered before but just in case things f up. :thumbup:
---------- Post added at 04:07 PM ---------- Previous post was at 04:01 PM ----------
james33440 said:
I flash this and it works. However when I use twrp again, 0 folder gets created but nothing else go to that folder except the backup files.
Sent from my HTCONE using xda app-developers app
Click to expand...
Click to collapse
install esfileexplorer and delete the 0 folder in sdcard directory.
Digitalkarma said:
I should start doing this before every flash. because last night I tried a 4.2.2 rom that didn't boot up and when I went into recovery TWRP was reading from the /0 directory and I didn't have any backup roms to reflash.... so I got worried that I was going to lose all my sdcard data and RUU restore my phone
so if youre phone ever gets stuck with no rom in your directory to flash and you have a working ADB. just move the rom to your ADB directory and type: adb push nameofrom.zip /sdcard/ while in TWRP. once its done pushing the file will show up when you go through the install directory and if you're going back to a 4.1.2 rom make sure you push the restore-sd.zip. I think it's time to invest in an USB-OTG flash drive as a security blanket.
wasn't sure if this method was covered before but just in case things f up. :thumbup:
---------- Post added at 04:07 PM ---------- Previous post was at 04:01 PM ----------
install esfileexplorer and delete the 0 folder in sdcard directory.
Click to expand...
Click to collapse
I don't see that directory at all. However, once I make a backup it is created still.
Sent from my HTCONE using xda app-developers app
thanks I needed that!

[CWM][MOD][4.2] sdcardZeroMounter - mount /sdcard into /sdcard/0

Hey all
I was looking a solution for a problem and found one. Thought of sharing it with you. Let me know if it helps.
Problem
I usually switches between roms / dual boot between 4.1 and 4.2 . The issue with this is 4.2 moves all content of the sdcard to the /sdcard/0 folder. So once 4.2 is installed, if i move to a 4.1 rom it wont be able to read the sdcard content as all data is moved to /sdcard/0 folder
Solution :
I had created a script that will mount the sdcard content inside /sdcard/0. So when the rom looks in to the zero folder it sees the data of the sdcard . so no issues.
Steps :
1. Install any 4.2.2 ROM
2. Install the sdcardzeroMounter.zip
3. Reboot​You will now see your sdcard in the /sdcard/0 folder ...
Note : If you delete the 0 folder . you are deleting the /sdcard itself.
Changelog:
02-OCT-2013
* Added support for 4.3 roms ** tested on PAC rom 4.3
Reserved
smartvinu said:
Hey all
I was searching for a problem for some months and found one. Thought of sharing it with you. Let me know if it helps.
Problem
I usually switches between roms / dual boot between 4.1 and 4.2 . The issue with this is 4.2 moves all content of the sdcard to the /sdcard/0 folder. So once 4.2 is installed, if i move to a 4.1 rom it wont be able to read the sdcard content as all data is moved to /sdcard/0 folder
Solution :
I had created a script that will mount the sdcard content inside /sdcard/0. So when the rom looks in to the zero folder it sees the data of the sdcard . so no issues.
Steps :
1. Install any 4.2.2 ROM
2. Install the sdcardzeroMounter.zip
3. Reboot​You will now see your sdcard in the /sdcard/0 folder ...
Note : If you delete the 0 folder . you are deleting the /sdcard itself.
Click to expand...
Click to collapse
Thank you very much forma sharing this fix with us!!! I was search forma a solution to this problem too!!
i can flash in stock odex 4.2.2 leaked? work? thanks for work and reply
uberto.costanzo said:
i can flash in stock odex 4.2.2 leaked? work? thanks for work and reply
Click to expand...
Click to collapse
I have not tested this in 4.2 leak but it should work ..
Sent from my GT-I9300 using xda premium
can flash on CM rom?
poor word choice, might wanna change it: "was searching for a problem and finally found one".
also, should be in regular development, folder binders have been around for a long time
^ please don't feed the troll
Hi, question, this is for dual boot? i have stock sammy in first, and cm 10.1 in second, the question is, I have to flash this only in second rom? and this what is the result, same information in sammy and cm? I install whatsapp in cm and share with whatsapp in sammy rom? thnkz
falconhawk81 said:
Hi, question, this is for dual boot? i have stock sammy in first, and cm 10.1 in second, the question is, I have to flash this only in second rom? and this what is the result, same information in sammy and cm? I install whatsapp in cm and share with whatsapp in sammy rom? thnkz
Click to expand...
Click to collapse
This will help you to see your sdcard inside a 4.2 ROM . so all your sdcard data including obb downloads will be accessible from the 4.2 ROM. You need to flash this in your second ROM . not /data sharing at all
brujo55 said:
can flash on CM rom?
Click to expand...
Click to collapse
Yes
Sent from my GT-I9300 using xda premium
Moved to "Regular" Development.
Glebun has a point. Folder binders have been around for quite some time now.
Nice work though. I see 151 downloads, so keep it up.
Glebun said:
poor word choice, might wanna change it: "was searching for a problem and finally found one".
also, should be in regular development, folder binders have been around for a long time
Click to expand...
Click to collapse
Thanks for the tip
Sent from my GT-I9300 using xda premium
Nice job !
Sent from my GT-I9300 using xda premium
Thanks for this. More people have to see this!
Useful. I have search something like this, when I installed cm10.1. But couldn't.
Sent from my GT-I9300
I'm facing similar issue on 4.1.2 rom that while using dual rom then a new 0 folder appeared but empty & in recovery mode not my all sd card contents are shown there, only 0 folder can be seen in recovery mode. Can this mode solve the problem?
mrjoy said:
I'm facing similar issue on 4.1.2 rom that while using dual rom then a new 0 folder appeared but empty & in recovery mode not my all sd card contents are shown there, only 0 folder can be seen in recovery mode. Can this mode solve the problem?
Click to expand...
Click to collapse
If you're using a 4.1 Rom you should use aroma file manager in philz recovery to move what is in /0 folder to sdcard root path. Then in the same recovery change default path to sdcard (there is an option for that).
Striatum_bdr said:
If you're using a 4.1 Rom you should use aroma file manager in philz recovery to move what is in /0 folder to sdcard root path. Then in the same recovery change default path to sdcard (there is an option for that).
Click to expand...
Click to collapse
No, my all files are not in /0 folder. Well, files are safe in sd card there but in CWM only /0 folder appears & unable to browse all other files in sd card
mrjoy said:
No, my all files are not in /0 folder. Well, files are safe in sd card there but in CWM only /0 folder appears & unable to browse all other files in sd card
Click to expand...
Click to collapse
I only use philz recovery, where you can set default path to /sdcard or sdcard/0 depending on your needs. Check with your recovery options. And change for Phil's one if needed.
If the folder is empty just erase it.
Deleted.
Sent from my GT-I9300

twrp not seeing backups / vice versa on file explorer

Just got my HTC1. rooted and flashed twrp 2601. back upped the stock rom. flashed venom and after getting it where I'd like, made a backup of that. now when i go to es explorer i can see my stock backup in the twrp folder but not the venom backup. when I go to twrp recovery, I can only see the venom backup but not the stock backup.
Any ideas on what the issue is?
There will be a backup folder in data/media and data/media/0, the folder in data/media needs to be merged with the other one.
Sent from my HTC One using XDA Premium 4 mobile app
thanks cory. wierd how the directory switched like that. that's a first. is there an option to change the directory back to sdcard/twrp? couldn't find anything
killerb777 said:
thanks cory. wierd how the directory switched like that. that's a first. is there an option to change the directory back to sdcard/twrp? couldn't find anything
Click to expand...
Click to collapse
That's due to the change in file structure between 4.1 and 4.2+
Don't know about TWRP, but for CWM recovery you can create a symlink, here's how: http://forum.xda-developers.com/showthread.php?t=1991657
Though it seems the newer version of the recoveries have already been corrected.
killerb777 said:
thanks cory. wierd how the directory switched like that. that's a first. is there an option to change the directory back to sdcard/twrp? couldn't find anything
Click to expand...
Click to collapse
Yah, it's because 4.2 added multi-user support.
So user data would be,
Data/media/0
Data/media/1
And so on...
I'm not sure about the option in twrp, I just formatted my SD and started fresh.
Sent from my HTC One using XDA Premium 4 mobile app

everything gone

i need help getting my root back. i've updated to 4.3 but in the process all my pictures/music/personal stuff is gone. in the storage section it's saying that 27gb is still being used so i'm assuming the data is still there but i can't do anything until i get my root back. i've tried to flash a custom recovery through fastboot but i'm getting a reported max download size error. can anyone help out?
I'm new to HTC one, but maybe structure of 4.3 differ from 4.1.
So connect phone to computer, copy all files and search folder/files there.
Data/media/0
Sent from my HTC One using xda app-developers app
anhtuanpro said:
I'm new to HTC one, but maybe structure of 4.3 differ from 4.1.
So connect phone to computer, copy all files and search folder/files there.
Click to expand...
Click to collapse
Already tried that and everything was missing.
Sent from my HTCONE using xda app-developers app
flomexico said:
Data/media/0
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
Is where all the folders/files were moved during upgrade?
Sent from my HTCONE using xda app-developers app
hobomusashi said:
Is where all the folders/files were moved during upgrade?
Sent from my HTCONE using xda app-developers app
Click to expand...
Click to collapse
Sounds like you have been flashing a lot of 4.2.2 roms so you may have a bunch of /0/0/0 folders that could be why you have so little space left
bigdaddy619 said:
Sounds like you have been flashing a lot of 4.2.2 roms so you may have a bunch of /0/0/0 folders that could be why you have so little space left
Click to expand...
Click to collapse
I haven't flashed any roms on this phone. I've been stock since day one. I want to try some data recovery software but I need root to utilize it. I can't get root until I install recovery but I can't do that because I keep getting an error.
Sent from my HTCONE using xda app-developers app
flomexico said:
Data/media/0
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
well thanks to this fine user i found all of my missing data. i have another quick question however...
i noticed in data/media (which is where all my lost data was located) there is a 0 folder that houses the current contents of the "sdcard". i noticed that /sdcard and data/media/0 are linked together but i'm not sure which is the emulated folder and which is the proper folder. basically what i'm trying to do is restore the contents of the data/media folder to it's proper location. i read that the "0" folder is created for a second user? if that's the case if i move the contents of the "0" folder to the the data/media folder would the "sdcard" folder reflect those changes or would i have to move data/media to "0" instead?

Categories

Resources