Related
I've already rooted and unlocked my bootloader and I'm just about to load a custom ROM, however where do I put the files so when I wipe/factory reset they don't get deleted? Thanks.
Your files don't get deleted. Only data and apps on android partition
Sent from my Galaxy Nexus using xda premium
Brett3rThanU said:
I've already rooted and unlocked my bootloader and I'm just about to load a custom ROM, however where do I put the files so when I wipe/factory reset they don't get deleted? Thanks.
Click to expand...
Click to collapse
Anywhere outside /system. i.e. place them on the part of your sd card where your pics, music, etc... live.
Really? That doesn't seem right for some reason...I just unlocked & rooted my girlfriends new Verizon Nexus but didn't put a ROM on it right then (which I should have done ), and during that process all of her photos and apps were deleted. I luckily had backed up photos, sms backups, etc. off of the device so I was able to transfer those back, but it was bone stock (like nothing on it at all) after that process. Is that "wipe" different than the "wipe data/factory reset" we have to do before going onto most of the ROMs for the Nexus?
Sorry about my ignorance...I'm an Epic 4g Touch owner so I'm well versed in it, but just starting to learn about the Verizon Nexus. Thanks a lot guys.
Unlocking the bootloader wipes it all; but a wipe data/factory reset from CWM doesn't touch your virtual sd card, i.e. photos, etc... remain. The OP is already unlocked, so he's "safe".
I will answer your specific question, "Where to put files so a wipe won't delete them?" If you want to be safe, on your computer or on anything external other than the phone. I only say this because the phone does not have an external sd card. Ill repeat what I said in another thread...we don't backup for the disasters we foresee but for the ones we don't.
Only the factory recovery wipes the /data/media ("/sdcard") partition. Any third-party community-built recovery (like ClockworkMod Recovery or TeamWin Recovery Project) will wipe everything except /data/media.
So, to answer your question, as long as the files are on your phone's pretend SD card (the default for user-created content and files you transfer to your phone), they won't be wiped when installing a custom ROM.
CMNein said:
Unlocking the bootloader wipes it all; but a wipe data/factory reset from CWM doesn't touch your virtual sd card, i.e. photos, etc... remain. The OP is already unlocked, so he's "safe".
Click to expand...
Click to collapse
codesplice said:
Only the factory recovery wipes the /data/media ("/sdcard") partition. Any third-party community-built recovery (like ClockworkMod Recovery or TeamWin Recovery Project) will wipe everything except /data/media.
So, to answer your question, as long as the files are on your phone's pretend SD card (the default for user-created content and files you transfer to your phone), they won't be wiped when installing a custom ROM.
Click to expand...
Click to collapse
Awesome - thank you both for your responses. That's actually a pretty cool little feature. I wish my phone could have apps retained after doing a "data/factory reset" wipe, which is such a good idea when going between ROMS.
I am stating that correctly, right? Apps, app data/caches, pretty much everything but system apps will be retained after a 3rd party data wipe? I just want to be sure, especially since it's not my device I'd be messing with Thanks
DutchDogg54 said:
I am stating that correctly, right? Apps, app data/caches, pretty much everything but system apps will be retained after a 3rd party data wipe? I just want to be sure, especially since it's not my device I'd be messing with Thanks
Click to expand...
Click to collapse
No, I'm afraid not. Applications will be wiped, as they reside on /data/app. The only item not wiped is the /data/media partition. Plug your phone up to your computer - the files and folders that you see listed will remain after a full wipe. Everything else will be gone.
Though, to be technical, a "factory reset" wipe primarily wipes /data (except for /data/media) and /cache. You'll generally have to manually wipe (through recovery) /system.
codesplice said:
No, I'm afraid not. Applications will be wiped, as they reside on /data/app. The only item not wiped is the /data/media partition. Plug your phone up to your computer - the files and folders that you see listed will remain after a full wipe. Everything else will be gone.
Though, to be technical, a "factory reset" wipe primarily wipes /data (except for /data/media) and /cache. You'll generally have to manually wipe (through recovery) /system.
Click to expand...
Click to collapse
Yeah, that's what I was thinking...thought it was a little too good to be true. No biggie...that's what Titanium backup is for
So, just to play devils advocate...if I were to copy, for instance, the go sms backup file that's created when you backup files to the /data/media partition, theoretically that would be retained, correct? That's about the only thing that would be lost doing a 3rd party wipe that couldn't be TB restored...and when I talk about the go sms back up I would like to throw things like her circle launcher setup backup files, etc. in that ring...what do you think about that?
DutchDogg54 said:
Yeah, that's what I was thinking...thought it was a little too good to be true. No biggie...that's what Titanium backup is for
So, just to play devils advocate...if I were to copy, for instance, the go sms backup file that's created when you backup files to the /data/media partition, theoretically that would be retained, correct? That's about the only thing that would be lost doing a 3rd party wipe that couldn't be TB restored...and when I talk about the go sms back up I would like to throw things like her circle launcher setup backup files, etc. in that ring...what do you think about that?
Click to expand...
Click to collapse
A lot of apps (I can't speak specifically for those, unfortunately) actually keep their user-created backup files in a directory on /data/media, so those would be safe. I know that Nova Launcher, Titanium Backup, Tasker, and some others do that.
The SD card does not get wiped between rom flashes using Cwm. Only the first boot loader unlock does everything get wiped.
So all my files and pics on my SD card stay in tact when I wipe in Cwm or flash a new rom.
Hi all,
I have a similar question.. I'm wanting to know where I can safely put the ROM zip because I want to wipe the sdcard0 partitiion
If I put it in /data/media I should be able to select it from there in CWM recovery right?
lamenting said:
Hi all,
I have a similar question.. I'm wanting to know where I can safely put the ROM zip because I want to wipe the sdcard0 partitiion
If I put it in /data/media I should be able to select it from there in CWM recovery right?
Click to expand...
Click to collapse
after wiping sdcard partition, just use adb to push files to sdcard.
kyokeun1234 said:
after wiping sdcard partition, just use adb to push files to sdcard.
Click to expand...
Click to collapse
So I rebooted into recovery, formatted the sdcard.
Now when I try to push the file in adb, it's not showing up.
Tried pushing to both /storage/sdcard0 and /sdcard but they're not showing up when i ls into them from shell. In fact I can't acces /sdcard at all, but /storage/sdcard0 is empty.
I can't mount /sdcard in CWM either.
Help!
lamenting said:
So I rebooted into recovery, formatted the sdcard.
Now when I try to push the file in adb, it's not showing up.
Tried pushing to both /storage/sdcard0 and /sdcard but they're not showing up when i ls into them from shell. In fact I can't acces /sdcard at all, but /storage/sdcard0 is empty.
I can't mount /sdcard in CWM either.
Help!
Click to expand...
Click to collapse
Try /data/media, as that is where the "sdcard" data actually resides. The other locations are just links that point here
You may need to use the recovery option to mount /data.
codesplice said:
Try /data/media, as that is where the "sdcard" data actually resides. The other locations are just links that point here
You may need to use the recovery option to mount /data.
Click to expand...
Click to collapse
Thanks!
I ended up flashing back to stock and then flashed a new ROM and it seems to be working OK.
In the future, though, what should I have done different to avoid not being able to access /sdcard?
lamenting said:
Thanks!
I ended up flashing back to stock and then flashed a new ROM and it seems to be working OK.
In the future, though, what should I have done different to avoid not being able to access /sdcard?
Click to expand...
Click to collapse
I'd just try accessing it via /data/media instead. The other links may not be created before the system actually boots.
I have flashed a few of the different builds that have recently become available and in doing so I have had some weird happenings with my internal storage. First I had both /sdcard, and /sdcard/o where everything I had prior to flashing was in /sdcard, but now resides in /sdcard/0. I moved everything back over and all was dandy. However now I have /sdcard and in there is nothing. All my stuff is actually in mnt/shell/emulated??
I know that chadouming and the everyone else that are contributing are working hard to get a stable build of CM10.1 out to everyone, and when that happens I want to start fresh.
Now my question is how do you go about formatting your internal sdcard without screwing everything up?? Should I flash ROM, GAPPS, backup's from Nova, and Titanium then format? I just don't want to be left with a phone that won't boot for whatever reason.
typically in the past I have never done this. But contrary to some of the instructions for flashing ROMs in this forum I used too
Wipe system/factory reset
Wipe Cache
Wipe Dalvik Cache
format system, data
then flash rom then flash gapps. There is a lot I still don't understand about this stuff so any help would be appreciated.
brunswick000 said:
I have flashed a few of the different builds that have recently become available and in doing so I have had some weird happenings with my internal storage. First I had both /sdcard, and /sdcard/o where everything I had prior to flashing was in /sdcard, but now resides in /sdcard/0. I moved everything back over and all was dandy. However now I have /sdcard and in there is nothing. All my stuff is actually in mnt/shell/emulated??
I know that chadouming and the everyone else that are contributing are working hard to get a stable build of CM10.1 out to everyone, and when that happens I want to start fresh.
Now my question is how do you go about formatting your internal sdcard without screwing everything up?? Should I flash ROM, GAPPS, backup's from Nova, and Titanium then format? I just don't want to be left with a phone that won't boot for whatever reason.
typically in the past I have never done this. But contrary to some of the instructions for flashing ROMs in this forum I used too
Wipe system/factory reset
Wipe Cache
Wipe Dalvik Cache
format system, data
then flash rom then flash gapps. There is a lot I still don't understand about this stuff so any help would be appreciated.
Click to expand...
Click to collapse
Ah, you didnt said that. You can't simply delete the 0 folder on sdcard. That's how thing work on android 4.2 and it's because of multi-user capabilities. put everything back in 0 folder nad it shoulbe alright. Note that it's zero and not "o"
I can't move things. I am able to select files, but it won't move them. Tried with CM file explorer and with root explorer. Won't work with either. Wouldn't be a problem if I could access them from my computer, but I can only see /sdcard when it comes up, so I can't access mnt/shell/emulated. Frustrating.
Sent from my Optimus G using xda premium
I have downloaded a program called android commander to access internal storage on my phone via pc but I can't get it to work. I can't for the life of me even get the drivers for the phone to install correctly. Grrrr. Don't want to lose this data but I cannot seem to gain access our move it.
Sent from my Optimus G using xda premium
i needed to move my backups from the 0 folder so plugged the phone on to pc and did it through windows.
gentledroid17 said:
i needed to move my backups from the 0 folder so plugged the phone on to pc and did it through windows.
Click to expand...
Click to collapse
Yes this is my problem. I can only access the /sdcard portion of the internal memory through my pc. The 0 folder along with the original /sdcard folder is now located in the above mentioned directory /mnt/shell/emulated. It's very strange, and what is more frustrating ifs that I can select the files to move them through root explorer, but when I hit paste nothing happens.
Sent from my Optimus G using xda premium
brunswick000 said:
Yes this is my problem. I can only access the /sdcard portion of the internal memory through my pc. The 0 folder along with the original /sdcard folder is now located in the above mentioned directory /mnt/shell/emulated. It's very strange, and what is more frustrating ifs that I can select the files to move them through root explorer, but when I hit paste nothing happens.
Sent from my Optimus G using xda premium
Click to expand...
Click to collapse
i actually had to save to my desktop then back to sdcard. took a while but it worked.
gentledroid17 said:
i actually had to save to my desktop then back to sdcard. took a while but it worked.
Click to expand...
Click to collapse
That would be fine but I can't access that directory on my pc. Hence the problem.
Sent from my Optimus G using xda premium
So I'm not panicking as I know this is most likely recoverable, but I do want to make sure I do this right. I was prepping my galaxy nexus to give to my wife since I got a note 2 and was consequently trying to get it completely wiped. I was trying to clear all the user data and was surprised that it was clearing (I think it was because it's is stored in the /sdcard directory). So, I popped into the mounts and storage section and started formatting . Seriously, I'm not sure what I was thinking here. I only got to the /sdcard and /system before I stopped and reconsidered, but it was too late. Because I had already formatted the /sdcard, I lost my rom and gapps zips.
Anyway, I think all I need to do is hop into adb, transfer the necessary zips to my /sdcard directory, and flash them. Is that correct? Also, of the options on there, what can I format without issue? /system is obviously for the rom itself (or at least mostly), so I'll avoid that in the future. What is the /data and /cache used for?
Yes you are correct about your process. I even there myself about five times now not knowing what I was thinking when I pressed all those buttons hah.
Data is used by android for app caches and the cache is for system and kernel caches. May not be entirely correct but they are safe to clear
Poke_N_PDA said:
So I'm not panicking as I know this is most likely recoverable, but I do want to make sure I do this right. I was prepping my galaxy nexus to give to my wife since I got a note 2 and was consequently trying to get it completely wiped. I was trying to clear all the user data and was surprised that it was clearing (I think it was because it's is stored in the /sdcard directory). So, I popped into the mounts and storage section and started formatting . Seriously, I'm not sure what I was thinking here. I only got to the /sdcard and /system before I stopped and reconsidered, but it was too late. Because I had already formatted the /sdcard, I lost my rom and gapps zips.
Anyway, I think all I need to do is hop into adb, transfer the necessary zips to my /sdcard directory, and flash them. Is that correct? Also, of the options on there, what can I format without issue? /system is obviously for the rom itself (or at least mostly), so I'll avoid that in the future. What is the /data and /cache used for?
Click to expand...
Click to collapse
I actually was trying to format everything to get the GN as clean as possible and ended up deleting everything including my rom that I was going to install(CM10.1). Thankfully recovery was still on there and I just pushed my rom and gapps using adb. I couldn't get the sideload command to work using clockwork so ended up just using the push commands. Make sure to specify the destination folder on your phone with the file name it will be on your phone. I ran around in circles realizing I wasn't specifying the file name in the folder location. Good luck!
Using TWRP 2.6.3.0, I'm unable to wipe data. Every time I try, I get
"wiping data without wiping /data/media
E: error opening '/data/lost+found'
done."
I excluded the nonessential bits, if anyone wants a full log (something something partition details), I can make one.
I using ES File Explorer with root explorer on, I checked out /data and found two lost+found folders, which I think is causing my issue. I've tried deleting just one, but a second one is automatically generated. If I delete them both, then they're automatically recreated as well. If I delete them both and then remake one immediately after, another one will be remade.
I also checked the rest of the /data folder, and I did not find any lost+found files, so I'm pretty sure it's just the folders messing things up
I checked this thread, but I didn't find anything useful
http://forum.xda-developers.com/showthread.php?p=39497772
I ended up here after I accidentally wiped my internal storage with TWRP. I went from a 4.3 AOSP rom to 4.1.2 stock (HD RLS16). I wiped the 4.3 rom, but I think I accidentally wiped internal storage then as well, or maybe something was messed up with TWRP because the storage folder for 4.3 isn't in data/media (or at least not for the rom I was using). After that I used hyperdrive, which was super buggy with Gapps and didn't work at all. After adding an account, everything kept force closing, and things were extremely slow and took minutes to open, even after removing the account and wiping cache+dalvik.
I thought it had to do with the rom, so I went and wiped stuff, then went to CM 10.1.3 stable, but that didn't boot at all, so I tried wiping again and going to liquidsmooth 2.9, which is where my problems started again. I attempted to wipe again and go back to cm10.1.3. The wipe failed, but cm10.1.3 worked.
any ideas on how I can fix this? I was unable to find help on google.
xxkid123 said:
Using TWRP 2.6.3.0, I'm unable to wipe data. Every time I try, I get
"wiping data without wiping /data/media
E: error opening '/data/lost+found'
done."
I excluded the nonessential bits, if anyone wants a full log (something something partition details), I can make one.
I using ES File Explorer with root explorer on, I checked out /data and found two lost+found folders, which I think is causing my issue. I've tried deleting just one, but a second one is automatically generated. If I delete them both, then they're automatically recreated as well. If I delete them both and then remake one immediately after, another one will be remade.
I also checked the rest of the /data folder, and I did not find any lost+found files, so I'm pretty sure it's just the folders messing things up
I checked this thread, but I didn't find anything useful
http://forum.xda-developers.com/showthread.php?p=39497772
I ended up here after I accidentally wiped my internal storage with TWRP. I went from a 4.3 AOSP rom to 4.1.2 stock (HD RLS16). I wiped the 4.3 rom, but I think I accidentally wiped internal storage then as well, or maybe something was messed up with TWRP because the storage folder for 4.3 isn't in data/media (or at least not for the rom I was using). After that I used hyperdrive, which was super buggy with Gapps and didn't work at all. After adding an account, everything kept force closing, and things were extremely slow and took minutes to open, even after removing the account and wiping cache+dalvik.
I thought it had to do with the rom, so I went and wiped stuff, then went to CM 10.1.3 stable, but that didn't boot at all, so I tried wiping again and going to liquidsmooth 2.9, which is where my problems started again. I attempted to wipe again and go back to cm10.1.3. The wipe failed, but cm10.1.3 worked.
any ideas on how I can fix this? I was unable to find help on google.
Click to expand...
Click to collapse
I would flash back to stock in Odin and root again
xxkid123 said:
Using TWRP 2.6.3.0, I'm unable to wipe data. Every time I try, I get
"wiping data without wiping /data/media
E: error opening '/data/lost+found'
done."
I excluded the nonessential bits, if anyone wants a full log (something something partition details), I can make one.
I using ES File Explorer with root explorer on, I checked out /data and found two lost+found folders, which I think is causing my issue. I've tried deleting just one, but a second one is automatically generated. If I delete them both, then they're automatically recreated as well. If I delete them both and then remake one immediately after, another one will be remade.
I also checked the rest of the /data folder, and I did not find any lost+found files, so I'm pretty sure it's just the folders messing things up
I checked this thread, but I didn't find anything useful
http://forum.xda-developers.com/showthread.php?p=39497772
I ended up here after I accidentally wiped my internal storage with TWRP. I went from a 4.3 AOSP rom to 4.1.2 stock (HD RLS16). I wiped the 4.3 rom, but I think I accidentally wiped internal storage then as well, or maybe something was messed up with TWRP because the storage folder for 4.3 isn't in data/media (or at least not for the rom I was using). After that I used hyperdrive, which was super buggy with Gapps and didn't work at all. After adding an account, everything kept force closing, and things were extremely slow and took minutes to open, even after removing the account and wiping cache+dalvik.
I thought it had to do with the rom, so I went and wiped stuff, then went to CM 10.1.3 stable, but that didn't boot at all, so I tried wiping again and going to liquidsmooth 2.9, which is where my problems started again. I attempted to wipe again and go back to cm10.1.3. The wipe failed, but cm10.1.3 worked.
any ideas on how I can fix this? I was unable to find help on google.
Click to expand...
Click to collapse
Anytime you get that error format data (the one where you type yes) the folder gets corrupted and a format fixes it.
Sent from my SGH-I747 using xda app-developers app
Im getting the same E:Error opening '/data/lost+found' im my twrp 2.6.3.1 after flashing Official CM11 nightly dec 12.
So now my recovery is very messed up, i cant properly wipe or restore nandroid with ease anymore, did you by any chance find a solution to fixing this issue?
Mystikalrush said:
Im getting the same E:Error opening '/data/lost+found' im my twrp 2.6.3.1 after flashing Official CM11 nightly dec 12.
So now my recovery is very messed up, i cant properly wipe or restore nandroid with ease anymore, did you by any chance find a solution to fixing this issue?
Click to expand...
Click to collapse
This has happened to me twice and the only solution i have found was to wipe internal storage. unfortunately i wasnt able to backup my internal storage before wiping so eveything i had on my phone was erased. Everything in your external is safe you dont have to worry but if you had important files or anything that you wouldnt erase on your internal storage then that is very unfortunate.
As for me, i now backup everything maybe like once a month or so, just in case something like this happens again.
Its happened to me also and I could not resolve it without the wipe, that was the only viable solution that worked for me.
Sent from my SGH-I747M using Tapatalk
Although if you're using twrp I just found out you can still save some of your precious files.
How? Simple
You can go into recovery and into the file manager. I think it's in settings or advanced I'm not sure. But I know that is built into twrp. So then just go into your internal storage and select the files and move them to the external storage.
If it's your first time using the file manager then you'll have to get used to it because it's not 100% noob friendly
And remember the bigger the file the longer it'll take to move so just be patient.
Use AromaFM!
search bar will serve you..
KorGuy123 said:
Anytime you get that error format data (the one where you type yes) the folder gets corrupted and a format fixes it.
Sent from my SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
Thank you very much, saved my life today!
Can i get some help please. I cant format data via TWRP, it says "E: unable to wipe data, unknow fle system, auto, unable to format to remove encryption". I did not put any encryption. What to do?
Have you tried using different versions of TWRP to wipe?
So here's what I am working with. A Rooted, S-OFF Verizon M7. The ROM I have been using up until now is here: http://forum.xda-developers.com/showthread.php?t=2485319. I have been running v6.22.605.4 and everything has been working well. Well, sorta. There was something eating up the storage space. To the point I only had 1GB of storage left and had no music, pictures, downloads, or anything personal on the SD. Yet it was shown as full and no file manager could show me what was taking up space. I figured some app had gone off the reservation and since it had been a while since my last reset, a refresh would be good to do anyway. I backed everything up and used TWRP to do a factory reset. That's when the trouble began.
Once I was booted back into the system and accounts were all set up I noticed my files and folders were nowhere to be found. I used ES and the HTC file manager and both show used space on the SD partition but there were no files or folders visible. Odd. So I went back into TWRP and used the file explorer there. Lo and behold, everything was still there in the sdcard folder. Files, folders, everything. Weird. So I thought I would start over from a clean device. I wiped the cache, dalvik, and data partitions, including the SD. After that was complete and verified I pushed over the 6.22.605.6 ROM, did a firmware upgrade, and flashed the ROM. Completely started over, good to go.
Well, not quite. The problem is still there. TWRP shows the usual folders on the SD that must have been created when the ROM first set up. "Pictures", "Music", etc. But when booted into the system, nothing. Oh, and now I have the apps System UI, Package Access Manager, and a host of others crashing upon startup. I tried downgrading and flashing 6.22.605.4 like I had before and still have the same issues with storage and app crashes. Which leads me to believe there is something derped in the underlying system but I can't figure out what it is.
Any help I can get is greatly appreciated!
armorer243 said:
So here's what I am working with. A Rooted, S-OFF Verizon M7. The ROM I have been using up until now is here: http://forum.xda-developers.com/showthread.php?t=2485319. I have been running v6.22.605.4 and everything has been working well. Well, sorta. There was something eating up the storage space. To the point I only had 1GB of storage left and had no music, pictures, downloads, or anything personal on the SD. Yet it was shown as full and no file manager could show me what was taking up space. I figured some app had gone off the reservation and since it had been a while since my last reset, a refresh would be good to do anyway. I backed everything up and used TWRP to do a factory reset. That's when the trouble began.
Once I was booted back into the system and accounts were all set up I noticed my files and folders were nowhere to be found. I used ES and the HTC file manager and both show used space on the SD partition but there were no files or folders visible. Odd. So I went back into TWRP and used the file explorer there. Lo and behold, everything was still there in the sdcard folder. Files, folders, everything. Weird. So I thought I would start over from a clean device. I wiped the cache, dalvik, and data partitions, including the SD. After that was complete and verified I pushed over the 6.22.605.6 ROM, did a firmware upgrade, and flashed the ROM. Completely started over, good to go.
Well, not quite. The problem is still there. TWRP shows the usual folders on the SD that must have been created when the ROM first set up. "Pictures", "Music", etc. But when booted into the system, nothing. Oh, and now I have the apps System UI, Package Access Manager, and a host of others crashing upon startup. I tried downgrading and flashing 6.22.605.4 like I had before and still have the same issues with storage and app crashes. Which leads me to believe there is something derped in the underlying system but I can't figure out what it is.
Any help I can get is greatly appreciated!
Click to expand...
Click to collapse
Copy everything off while in twrp. Format SD (internal). Copy back files. Continue on.
Sent from my SM-T810 using Tapatalk
dottat said:
Copy everything off while in twrp. Format SD (internal). Copy back files. Continue on.
Sent from my SM-T810 using Tapatalk
Click to expand...
Click to collapse
Thanks for the reply. Unfortunately it didn't work. I did a total format and it didn't seem to help. I was able to get it back by using a RUU and then adding TWRP back in. Just finished about an hour ago and everything seems to be coming back as expected.
Thank you for the help!