[Q] Flash from non-root folder of sd card? - Nexus 7 (2013) Q&A

Some ROMs say in the instructions move the ROM to the root of the SD card before flashing. Right now I am going back to try CM 10.2 stable official from CyanogenMod site and it also says place ROM on root of SD card along with gapps or another kernel etc.
I cannot be sure if I may have overlooked this before or not but I have my ROMs in sub folders on the SD card. Is there a danger or particular reason we should move to SD card root before flashing?
Thanks.

Went ahead and flashed from a different folder in TWRP and saw no consequences, guess it just advisory to put on root of SD card to make it easier to find.
Interesting to know if there is another reason to this, otherwise I saw no issue.

It won't cause any problems, it's just easier to find that way. Older versions of cwm recovery couldn't find zips in subfolders.
Sent from my Nexus 7 using xda app-developers app

datallboy said:
It won't cause any problems, it's just easier to find that way. Older versions of cwm recovery couldn't find zips in subfolders.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
yep, the "copy to root of your sdcard" is a throwback to earlier recoveries that were hard coded to look there.

Related

SD Card Not Recognized

I have installed both AOSP and CM10 JB and in both ROMS I can't access my SD card. I have asked why in the respective threads with no response. Any reason (probably something easy and dumb) for this? I'm getting ready to just return to FF18...
nickknaack said:
I have installed both AOSP and CM10 JB and in both ROMS I can't access my SD card. I have asked why in the respective threads with no response. Any reason (probably something easy and dumb) for this? I'm getting ready to just return to FF18...
Click to expand...
Click to collapse
d/l es file manager once d/l'd open it hit the favorites then the phone icon and look for extsdcard and everything should be there
Sent from my SPH-D710 using xda premium
Thanks... and disregard. For whatever reason, it started showing up in one of my explorers... should be good now.

Old SD card contents moved to /0 after PA2.99

Hello all,
Earlier while in stock android 4.2, ask my internal storages files like images, music were under sdcard/ directory.
After flashing PA2.99 B5 I can see that all those have been moved to a new directory under sdcard/0/.
As a result my TB folder went under this new /0/ dir and I has to redirect my TB to restore from the old location.
Similar is the case for Camera folder.
Any help why this happened and how to avoid this duplicate folder list creation.
Sent from my Galaxy Nexus using xda app-developers app
Upgrade to lastest recovery. TWRP reccommended
Cretheus said:
Upgrade to lastest recovery. TWRP reccommended
Click to expand...
Click to collapse
OK.. I was using CWM at the point of flashing PA.
Can I now change the recovery to TWRP? Will that restore the original directory structure back ?
Sent from my Galaxy Nexus using xda app-developers app
i am having the same problem. Went from stock 4.2 to cm10 4.1.2 or so.
I have the latest recovery installed...
If any1 knows how to fix this i would like to hear.
Hi,
Once I upgrade to the latest recovery, would the sdcard/0 content be merged and get sorted by itself or would I have to manually merge the contents?
Please advice!
Same here. The only backups I can find using root explorer are the ones prior to 4.2 how ever when I open up clockwork mod app it doesn't show the old backups just the new ones. I must have missed something along the way.
Sent from my Sprint Galaxy Nexus using xda premium
I have had the same problem i thought i did something wrong flashing the rom so i re falshed it and now it went from /0 to /0 /0 then i tried to manually move everything back to the root folder and merge all the folders but to my surprise the folders did get merged but not the contents and hence i lost all my camera photos !!
So as suggested please update the recovery before flashing so that you dont land up like me... and if you want to move the content back i suggest using a computer to do it rather than a file explorer !!
I wish there were step by step instructions for this one. There seems to be a lot of confusion.

Android 4.2.x File Structure Thread

Hey Guys,
So After all of the recent questions and concerns I have seen and answered, I have decided to make a thread to help users understand the new file structure of android 4.2.x. I hope this will help those of you with questions and concerns and make for a smoother transition from 4.1.x and touch wiz roms.
I will break this into three categories........
First I will explain what the file system is and why it is present and how it affects you......
Second is if you haven't yet but are planning on making the jump to 4.2.x.
Third will be if you have already made the jump without doing your homework. (For those of you wondering where your files are, wondering why your sd card was formatted, or cant find your recovery backups..... This section is for you!!)
Section 1.)
What is the new file system and what the hell is this /0 folder?
With Android 4.2, Google introduced multiple users as a new feature. In order to accommodate multiple users, Google is now giving each user their own folder for storage. What happens is 4.2 uses an emulator to make different users and uses the /0 folder as the default users storage on the sd card. It doesn't recognize anything on the root of the sd card only whats in /0. To support multi-user capabilities this will be the norm... for each user, there will be a sequentially numbered folder in /data/media (/data/media/0, /data/media/1)...
And for each user, within Android, this will be symlinked to /sdcard & /storage/sdcard0... for user 1, /sdcard = /storage/sdcard0 = /data/media/0... for user 2, /sdcard = /storage/sdcard0 = /data/media/0...
These are emulated storage points... /data/media/0 = /storage/emulated/0, /data/media/1 = /storage/emulated/1
Without root access, each user will just see /sdcard/ and will not be able to access the other emulated storage points...
In the recovery mode, however, /sdcard is mapped to /data/media which is why you need to navigate to the "0" folder to see your files!
So in order to access your internal storage files they will be in data/media/0. So for example to access the backup location In titanium backup after you flash navigate to data/media/0/TitaniumBackup. (Thanks to ktetreault)
That being said, If you already flashed a 4.2 rom without preparation, your files aren't lost they are just inaccessible they are just not in the proper place for 4.2 to see them.
So now that we have all the technical stuff out of the way...... Lets get into how to either prevent or fix this issue.
Section 2.)
Preparing to flash a 4.2 rom from a touch wiz rom or an aosp 4.1.x based rom.
Okay, so you have touch wiz or aosp 4.1.x of some sort and your ready to try out the goodness of 4.2?
First backup your ext sd card to your pc or if a pc is unavailable (and your willing to take a risk) use a file explorer on your phone such as Es file explorer from the market to transfer the contents of the ext sd card to your internal sd card. I highly suggest avoiding using the phone as some hiccups can occur. I have done it successfully myself but have heard others who have lost their files during transfer because they left the app while it was transferring. If you do use this method DO NOT LEAVE THE APP UNTIL THE FILE TRANSFER IS COMPLETE.
Second Format your ext sd card so we have a clean slate to work with as this will help tremendously to avoid any headaches.
Third Install the latest recovery of your choice. The reason for this is that the older recoveries are not updated for 4.2 and will continuously create a new /0 folder every time you flash a new rom. Follow the instructions to install in the applicable thread.
Thanks to naddict for posting the links.... These are all flashable zips thru recovery
TWRP 2.4.1.0 - http://d-h.st/9cL
CWM 6.0.2.3 - http://d-h.st/jbT
CWM Touch 6.0.2.3 - http://d-h.st/8A9
Fourth Flash the 4.2 rom of your choosing per the instructions of the developers OP in their thread.
Set your phone up as usual and then restore the files from your backup on your pc or move them back from the internal sd card using es file explorer again. Keep in mind that the /0 folder is your new sd card storage. Now you are good to go and enjoy the new features and benefits of 4.2 and not have to search for your files :good:
Section 3.)
Okay so you got overly excited and flashed a 4.2 rom........ OMG!!! All my files are gone!!!! I can't restore any backups and all my precious files have disappeared!! Why was my sd card formatted?????
Relax.... Your files didn't go any where they are exactly how you left them you just can't see them.....
I will walk you thru 4 easy steps to get your files back and put you back on track.
First Make sure you have the latest recovery of your choice. If needed refer to the links posted in section 1. If you don't do this you will see a duplicate /0 folder created every time you flash a new 4.2 rom.
Second You won't be able to find your backups thru recovery. The easiest method I found is to download any touch wiz rom. Wipe your phone completely and then flash the touch wiz rom you downloaded. Reboot and go thru the setup and what not.
Third Now install es file explorer or the app of your choice. Next copy everything from the root of the sd card into the /0 folder that 4.2 had created oh so nicely for you.
Fourth Reboot into recovery and re-flash the 4.2 rom you began with. After going thru the initial rom setup you will see that are of your files are back intact and ready for you to access.
Hopefully this has helped those of you with questions and concerns about upgrading to 4.2.x. If i missed anything please feel free to let me know and ill include it here or address any further questions.
Thanks to:
Sundawg of TBD
Koush Of CWM
Team Win
And All of the devs on xda
Hope I have helped if so feel free to press thanks!!
Thank you for taking the time to write this. This should help a lot of people.
Sent from my SGH-T999 using Tapatalk 2
WhoWhere said:
Thank you for taking the time to write this. This should help a lot of people.
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
No problem. I was answering this a few times recently and I know I was baffled at first. As well I didn't see any other threads regarding this so I figured it may help.
Sent from my SGH-T999 using Tapatalk 2
If i am currently on a 4.1 ROM and don't have an external sd(i only have the internal storage), will the new 4.2 file system affect me when i flash a 4.2 ROM?
So far i have backed up apps+data with titanium backup, and im ready to flash liquid smooth ROM using twrp. I just want to know if after flashing my internal storage contents will still be there and i will be able to restore apps with tb.
Outstanding guide, good work!
Sent from my SGH-T999 using xda premium
This should help a lot of people, nice work! I will add this to the FAQ.
chromium96 said:
If i am currently on a 4.1 ROM and don't have an external sd(i only have the internal storage), will the new 4.2 file system affect me when i flash a 4.2 ROM?
So far i have backed up apps+data with titanium backup, and im ready to flash liquid smooth ROM using twrp. I just want to know if after flashing my internal storage contents will still be there and i will be able to restore apps with tb.
Click to expand...
Click to collapse
No you shouldn't be affected bud I would only suggest getting an sd card just to backup anything important in case of a freak error during flashing or accidental wiping of internal sd.
Sent from my SGH-T999 using Tapatalk 2
Towle said:
This should help a lot of people, nice work! I will add this to the FAQ.
Click to expand...
Click to collapse
Thanks i appreciate you including it in your thread.
Thetenthdr said:
Outstanding guide, good work!
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Thanks a lot took me a little while to get it all together.
Sent from my SGH-T999 using Tapatalk 2
chromium96 said:
If i am currently on a 4.1 ROM and don't have an external sd(i only have the internal storage), will the new 4.2 file system affect me when i flash a 4.2 ROM?
So far i have backed up apps+data with titanium backup, and im ready to flash liquid smooth ROM using twrp. I just want to know if after flashing my internal storage contents will still be there and i will be able to restore apps with tb.
Click to expand...
Click to collapse
Yes, but you will have to set the backup location In titanium backup after you flash to data/media/0/TitaniumBackup
Sent from my SGH-T999 using xda premium
ktetreault14 said:
Yes, but you will have to set the backup location In titanium backup after you flash to data/media/0/TitaniumBackup
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Thanks for informing I'll add that to the op as well.
Sent from my SGH-T999 using Tapatalk 2
this was of great help
When I went to 4.2.1 I did not understand the file system change. I had to use my backup phone for 5 days before I finally got my SMSand MMS and Launcher Pro restored.
Then I wiped and flashed again and it created a new "0" directory. I have been afraid to do anything but dirty flash since.
This finally explains it all and I feel confident in wiping again.
Thank you so much.
GeneLM said:
When I went to 4.2.1 I did not understand the file system change. I had to use my backup phone for 5 days before I finally got my SMSand MMS and Launcher Pro restored.
Then I wiped and flashed again and it created a new "0" directory. I have been afraid to do anything but dirty flash since.
This finally explains it all and I feel confident in wiping again.
Thank you so much.
Click to expand...
Click to collapse
No problem bud that's why I created the thread to help everyone understand and to give you guys a place to ask.
Sent from my SGH-T999 using Tapatalk 2
You rock, thx for the info, looks like it was a lot of work but good idea after so many posts asking about the same thing
lordazoroth said:
You rock, thx for the info, looks like it was a lot of work but good idea after so many posts asking about the same thing
Click to expand...
Click to collapse
No problem it was my pleasure. Hopefully will cut the redundancy lol
Sent from my SGH-T999 using Tapatalk 2
If you are missing your /sdcard/download/ file:
Go to: /mnt/shell/emulated/download/
+Bound for Valhalla!
Valhalla_ said:
If you are missing your /sdcard/download/ file:
Go to: /mnt/shell/emulated/download/
+Bound for Valhalla!
Click to expand...
Click to collapse
Yup that will work but quite an annoying work around Lol that's why I showed you guys how to prevent this or fix it so this won't be needed every time you need a file
Sent from my SGH-T999 using Tapatalk 2
Great work, very informative and easy to read...
Sent from my SGH-T999 using xda premium
unk2009 said:
Great work, very informative and easy to read...
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Hey, quick question, I bounced off another ROM onto liquidsmooth without updating my recovery and ended up with an extra '0' folder, can I move my files out of there and delete it safely?
lordazoroth said:
Hey, quick question, I bounced off another ROM onto liquidsmooth without updating my recovery and ended up with an extra '0' folder, can I move my files out of there and delete it safely?
Click to expand...
Click to collapse
Yup no problem just delete the innermost one without your files and you will be good to go.
Sent from my SGH-T999 using Tapatalk 2
rawdaddymagraden said:
Yup no problem just delete the innermost one without your files and you will be good to go.
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
Pimp, thx a bunch!

[Q] Bricked?

OK, I'm in a bit of a pickle and am hoping that someone with more knowledge can help me out. This is what I did.
Rooted the phone
Installed FreeGee
Installed TWRP through FreeGee
Copied a new rom to SD card
Entered TWRP and ERASED EVERYTHING BEFORE MAKING A BACKUP
Couldn't load rom from SD card
When navigating through the TWRP directory, there is a folder titled SD card. I thought my ROM would be in there, but it is not. I know I should have done two things that I didn't.
Backup my data
Copy the ROM to root folder like the instructions said to,
But I didn't do those thing. Now, I have a phone that will enter TWRP, but I cannot get it to find any ROMs I put on the SD card. Is there anything I can do to remedy this situation that I have caused?
Thanks an advance for your ideas.
Try connecting the phone to your computer and manually copying over another ROM.
If you didn't copy it to external card, and you wiped internal, then you don't have an operating system and need to use LG flashtool to get back to stock.
Sent from my LG-E980 using XDA Premium 4 mobile app
In the process
psal217050 said:
If you didn't copy it to external card, and you wiped internal, then you don't have an operating system and need to use LG flashtool to get back to stock.
Sent from my LG-E980 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
It is definitely on the external card, but I cannot see it via TWRP. I am getting ready to use flashtool to see if that fixes the problem. I will update my progress.
Thanks.
ScootDiggity said:
It is definitely on the external card, but I cannot see it via TWRP. I am getting ready to use flashtool to see if that fixes the problem. I will update my progress.
Thanks.
Click to expand...
Click to collapse
If you are using the hacked TWRP go up a level a couple of times and look for ext-card.
Sent from my LG-E980 using XDA Premium 4 mobile app
I guess I don't have hacked TWRP
psal217050 said:
If you are using the hacked TWRP go up a level a couple of times and look for ext-card.
Sent from my LG-E980 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
The TWRP that I am using was the one click install from FreeGee. It looks like this is not the hacked TWRP. When going up as many levels as I can, this is what I get. For future reference, do you know where I can get the hacked TWRP?
Current Progress - In the process of downloading LGE980AT-01-V10g-310-410-APR-03-2013.zip to use with LG Flashtools. Not the fastest server, but am very thankful that someone is hosting this file.
ScootDiggity said:
The TWRP that I am using was the one click install from FreeGee. It looks like this is not the hacked TWRP. When going up as many levels as I can, this is what I get. For future reference, do you know where I can get the hacked TWRP?
Current Progress - In the process of downloading LGE980AT-01-V10g-310-410-APR-03-2013.zip to use with LG Flashtools. Not the fastest server, but am very thankful that someone is hosting this file.
Click to expand...
Click to collapse
Tap at the top where it says "Internal Storage." It should let you switch to the external SD.
No Selection
RaiderDuck said:
Tap at the top where it says "Internal Storage." It should let you switch to the external SD.
Click to expand...
Click to collapse
When I do that, I can only choose internal storage. I'm guessing that's one of the reasons there is a hacked TWRP.
ScootDiggity said:
When I do that, I can only choose internal storage. I'm guessing that's one of the reasons there is a hacked TWRP.
Click to expand...
Click to collapse
IIRC, the hacked TWRP is merely to ensure that the Official CM builds (which are marked for e986 only) can be installed on any LGOG Pro phone. You should still be able to see the external SD even with the FreeGee TWRP. Try fooling around in TWRP a little bit and see if you can get it to recognize the external SD.
Fixed It
Well, I tried looked throughout TWRP and could not find a resolution.
What did work was LGFlashTool and madmacks awesome instructions. Thanks everyone for your ideas.
ScootDiggity said:
Well, I tried looked throughout TWRP and could not find a resolution.
What did work was LGFlashTool and madmacks awesome instructions. Thanks everyone for your ideas.
Click to expand...
Click to collapse
OK, next time, if you forget to backup before you flash, boot your phone into TWRP recovery, select mounts and then mount usb storage, connect your phone to the PC and you should see in "my computer" the phone as a drive, copy the ROM you want to flash to that drive, if it is a CM ROM remember to copy the Gapps also. Disconnect from the PC and then continue with the ROM flashing procedure that we all are so familiar with. This way it saves you the trouble of having to go back to stock again in order to flash a custom ROM.
Glad you got it fixed.
Erik

[Q] Need help Clockwork recovery failed backup

Hey guys yesterday i tried to make a backup using clockwork recovery and it failed and now when i check my memory it says 800 free of 12.0 gb.
I dont know what to do there is no file or anything. Should i try to format my card?
killtrippy said:
Hey guys yesterday i tried to make a backup using clockwork recovery and it failed and now when i check my memory it says 800 free of 12.0 gb.
I dont know what to do there is no file or anything. Should i try to format my card?
Click to expand...
Click to collapse
Still need help please! I really dont want to replace my S3 for $125. Im sure something is able to fix it
What version of CWM do you have and what ROM are you running? And did you have that little space left all along or was it only after you tried making a backup?
Sent from my SGH-T999 using xda app-developers app
aussie88 said:
What version of CWM do you have and what ROM are you running? And did you have that little space left all along or was it only after you tried making a backup?
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Im not sure but its not that i tried to backup a stock version of the latest legit ROM from samsung and it failed and phone restarted and now it show like 500 mb's left on my phone. I check all files on the phone and nothing is taking up space all the files on my phone together is like 2gb. not sure whats wrong. I installed a different rom to check if thats a issue with the stock Samsung ROM but nope it still same.
EDIT: I just tried to format the DATA partition which it shows takes up 12GB but didnt do anything.
Well if you're running an older version of CWM, you will have issues with any 4.3 roms, stock or not. I would firstly upgrade to the latest version of CWM, and then if you can, use a root Explorer either on your phone or laptop to see hidden files.
I personally had an issue due to having an older version of CWM, and I had a few gb of data hidden behind a bunch of nested 0 folders.
If you still don't see anything, then maybe a format of the internal SD thru CWM is in order. Hopefully you have/are able to back up all that info before you need to do that tho.
Sent from my SGH-T999 using xda app-developers app
aussie88 said:
Well if you're running an older version of CWM, you will have issues with any 4.3 roms, stock or not. I would firstly upgrade to the latest version of CWM, and then if you can, use a root Explorer either on your phone or laptop to see hidden files.
I personally had an issue due to having an older version of CWM, and I had a few gb of data hidden behind a bunch of nested 0 folders.
If you still don't see anything, then maybe a format of the internal SD thru CWM is in order. Hopefully you have/are able to back up all that info before you need to do that tho.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
I am running the LATEST version of CWM i remembered i checked like 2 weeks ago i can check again but shouldnt be a problem. Ill check right now with root explorer and see if i find any files. I already backed up everything on my SD card.

Categories

Resources