How does one corrupt their /efs partition? - Nexus 5 Q&A, Help & Troubleshooting

How does someone mess up their /efs partition?
Wouldn't you have to deliberately target this partition in some manner? I can only see a risk if someone were flashing a complete twrp backup that includes the /efs partition, but that's about it.
I backed up my /efs via twrp and uploaded it to a cloud storage provider. A few days later, I made a second /efs backup on my sdcard, however I would never think of regularly backing up this partition, as it should never need to be restored.
So yeah... my question is how would someone mess this partition up?
Sent from my Nexus 5 using Tapatalk

_jordan_ said:
How does someone mess up their /efs partition?
Wouldn't you have to deliberately target this partition in some manner? I can only see a risk if someone were flashing a complete twrp backup that includes the /efs partition, but that's about it.
I backed up my /efs via twrp and uploaded it to a cloud storage provider. A few days later, I made a second /efs backup on my sdcard, however I would never think of regularly backing up this partition, as it should never need to be restored.
So yeah... my question is how would someone mess this partition up?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
in my 5.5 years of android ive never backed up my efs, ever. but, random stuff happens in life.

^ same here. Been an android superuser since day one.
Backed up the efs on this device, and also my galaxy nexus because twrp allowed me to... Just no idea how one corrupts the partition.
Sent from my Nexus 5 using Tapatalk

_jordan_ said:
^ same here. Been an android superuser since day one.
Backed up the efs on this device, and also my galaxy nexus because twrp allowed me to... Just no idea how one corrupts the partition.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
it happens randomly on rare occasions.

_jordan_ said:
How does someone mess up their /efs partition?
Wouldn't you have to deliberately target this partition in some manner? I can only see a risk if someone were flashing a complete twrp backup that includes the /efs partition, but that's about it.
I backed up my /efs via twrp and uploaded it to a cloud storage provider. A few days later, I made a second /efs backup on my sdcard, however I would never think of regularly backing up this partition, as it should never need to be restored.
So yeah... my question is how would someone mess this partition up?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
You only have to backup EFS once , its not beeing updated

_jordan_ said:
How does someone mess up their /efs partition?
Wouldn't you have to deliberately target this partition in some manner? I can only see a risk if someone were flashing a complete twrp backup that includes the /efs partition, but that's about it.
I backed up my /efs via twrp and uploaded it to a cloud storage provider. A few days later, I made a second /efs backup on my sdcard, however I would never think of regularly backing up this partition, as it should never need to be restored.
So yeah... my question is how would someone mess this partition up?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
On this phone most symptoms that look like efs corruption aren't but always backup to be safe.
On a samsung, almost everything you do has a 5% risk of efs corruption including powering up the phone
Sent from my Nexus 5 using Tapatalk

gee2012 said:
You only have to backup EFS once , its not beeing updated
Click to expand...
Click to collapse
I wanted a local backup on my sdcard. Deleted the original for some reason.
Sent from my Nexus 5 using Tapatalk

_jordan_ said:
I wanted a local backup on my sdcard. Deleted the original for some reason.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
If you're going to back it up. Don't leave it on your internal, copy it to a pc. If you ever do need it chances are that your internal is not going to be accessible.
Sent from my Nexus 5

I just uploaded mine to my Google Drive. Never done it in the past but thought I'd do it this time to be safe!

EddyOS said:
I just uploaded mine to my Google Drive. Never done it in the past but thought I'd do it this time to be safe!
Click to expand...
Click to collapse
I make a backup to internal SD card using 1 method. I copy that (leaving on internal memory too) to my NAS. I take a second backup with the same method and do the same again. I then repeat this using a second method

Related

How can i do nandroid backup?

I done a backup with CMW, and on the sd i see a couple of folders and dir, and in one of them there is something like nandroidsomethingelse.....
It's This?
edit:
Files are:
.android_secure.img 2.06k
nandroid.md5 0,13k
cache.img
data.img
system.img
Yes. That is your nandroid backup
Sent from my Transformer TF101 using XDA Premium App
Hi,
Tried to do the nandroid back-up but only the system, data, cache and md5 got generated.
Here is what is shown during the nandroid backup:
Backing up system...
Backing up data...
No /sdcard/.android_secure found. Skipping backup of applications on external storage.
Backing up cache...
No sd-ext found. Skipping backup of sd-ext.
Generating md5 sum...
Backup complete!
The thing is - there is a sd card. Tried several times, but still the same.
Any idea? I'm holding back trying out the different ROMs till I'm very sure that my nandroid backup is done correctly.
Appreciate any help that I can get. Thx!
/sdcard is not an sdcard on the TF. MicroSD cards and USB devices get mounted under /Removable. /mnt/sdcard and its symbolic link at /sdcard are just a way of accessing /data/media in the way that is expected by apps. The Galaxy Nexus does something similar about it.
So arguably if your /data has been backed up then your /sdcard is as well, with regards to the TF101 anyway. The other stuff AFAIK knows how to deal with e.g. the fuse mount on /mnt/sdcard.
Sent from my Transformer TF101 using Tapatalk
Guilin28 said:
Hi,
Tried to do the nandroid back-up but only the system, data, cache and md5 got generated.
Here is what is shown during the nandroid backup:
Backing up system...
Backing up data...
No /sdcard/.android_secure found. Skipping backup of applications on external storage.
Backing up cache...
No sd-ext found. Skipping backup of sd-ext.
Generating md5 sum...
Backup complete!
The thing is - there is a sd card. Tried several times, but still the same.
Any idea? I'm holding back trying out the different ROMs till I'm very sure that my nandroid backup is done correctly.
Appreciate any help that I can get. Thx!
Click to expand...
Click to collapse
As Spidey01 said, /mnt/sdcard is the internal storage of the TF. If it is just a symlink to /data/media then it will be backed up with it in data.img. The script output looks OK. What are you missing? SD-ext is a partition on the physical SD card that is used e.g. by Apps2SD script (not sure if someone ever uses it for the TF) to store apps (allows more capacity for apps that do not enable transfer to SD card). If you're not using such a thing and did not format your sd card that way, the nandroid backup naturally won't back it up.
Thanks for the info. I didn't format anything special for my SD card.
OP has the following
.android_secure.img 2.06k
nandroid.md5 0,13k
cache.img
data.img
system.img
In my case, I do not have the ".android_secure.img 2.06k".
So, is my nandroid complete as well?
TIA.
Guilin28 said:
Thanks for the info. I didn't format anything special for my SD card.
OP has the following
.android_secure.img 2.06k
nandroid.md5 0,13k
cache.img
data.img
system.img
In my case, I do not have the ".android_secure.img".
So, is my nandroid complete as well?
TIA.
Click to expand...
Click to collapse
Anybody?
After you do your back-up, do you have this file (without the quotes) - ".android_secure.img 2.06k"
Thx.
I don't know what it is and assume you already Googled it. I also don;t have a large enough MicroSD to back up everything yet.
Sent from my Transformer TF101 using Tapatalk
Guilin28 said:
Anybody?
After you do your back-up, do you have this file (without the quotes) - ".android_secure.img 2.06k"
Thx.
Click to expand...
Click to collapse
My nandroid does not have the ".android_secure.img 2.06k".
It work just fine, I have done a few nandroid restore and never a problems.
baseballfanz said:
My nandroid does not have the ".android_secure.img 2.06k".
It work just fine, I have done a few nandroid restore and never a problems.
Click to expand...
Click to collapse
Thank You. Very assuring - did several back-ups earlier and still the same. So why some have, and some don't have. Mystery.
Anyway, time to get dangerous - going for Revolver ROM first.
Thx Spidey01 - noticed you are on Prime ROM - so, you didn't do any backup? You're taking some risk there.
Eh, well that is kind of how I ended up with Prime. When I tried to root with nvflash my display went funky, so in search into how to unbrick my one day old, I ended up flashing Prime v1.4 and kept it, since it was close to stock+optimizztions and that's what I want. In the process of roach's Prime saving my bacon, I gained CWM for backing up; so I didn't have one back then. Can't say that I care much for the ICS style tweaks of later 2.x.y but the tiamat quick controls are good.
It is also very stable and reasonably well maintained (so far), so I'm happy.
When I can get around to getting like an 8gb or 16gb MicroSD, i'll probably do a monthly backup in CWM. I already do use Titanium Backup fwiw. Being my *main* computer, I consider it important, but all the important stuff resides in the cloud or in git repo's.
Sent from my Transformer TF101 using Tapatalk
Hmm, if I'm not mistaken (correct me if I'm wrong), the 'android_secure.img' is the backup of the area, where you can store applications on the sd card (the move-app-to-sd feature that was introduced in Froyo), so if you do not have any apps on sd this way, there would be no backup.
Actually I also do not do a backup with every ROM change or update, but I always have an earlier backup ready to revert to if needed. As Spidey01, I keep most important stuff in the cloud and mostly copy any new documents to my desktop within a few days after I create them. But it is nevertheless a good habit to backup, even more if you also flash using CWM - it's just a few clicks away.

Format SD deletes Nandroid backup???

Hello, if I created a Nandroid backup and I then format my internal SD card, why it also deleted something in my Nandroud backup?
Sent from my GT-N7100 using xda premium
buddy formatting will delete entire data... i wont selectively leave the cwm backup...
erase command is not to so intelligent to leave behind nandroid
Make you backup in external and then format your internal.
This will prevent your nandroid backup to be saved
--------------------Signature--------------------
Don't Ever Forget to Hit Thanks It Boosts Me
Do Visit My Website For More Information
Never leave anything you value in a phone or tablet; back it up, frequently, elsewhere.
Many have learned the hard way.
Sent from my Nexus 7 using Tapatalk 4 Beta
Dan Law 001 said:
Hello, if I created a Nandroid backup and I then format my internal SD card, why it also deleted something in my Nandroud backup?
Click to expand...
Click to collapse
It depends where you stored your backup. If you have stored the backup in the same location that you format then it's going to get deleted.
Once you have made your backup in NANDroid I highly recommend you move this backup to another location where you can always access it incase the worst happens. I usually place a copy of my backup locally on my network and in a cloud storage. This covers all bases.
Nate2 said:
Never leave anything you value in a phone or tablet; back it up, frequently, elsewhere.
Many have learned the hard way.
Sent from my Nexus 7 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Definitely become a huge fan of backing up everything! I just flashed a new ROM and last back up was a week ago.....nothing like learning through trials! :silly:
Move the backup elsewhere before formating
Sent from my Incredible S using xda app-developers app
I always put my backups on my external sd card. Then if i mess something up on my internal memory and screw up my tablet i can restore no matter what happens
Sent from a long time ago, in a galaxy far far away

TWRP Backup - cache, recovery

Hi all.
I've been doing backups of my Nexus 5 with TRWP. I chose all options, that is I added 'cache' and 'recovery'.
Question: Is that bad? Should I not backup those?
Thanks.
Just use the ones it defaults to, system, data, boot. You don't need to backup the others. same with wipe, just use the slider thing. Messing with the others can get you on trouble
One other thing, make one backup of the efs only and store that in a safe place off your phone
jd1639 said:
Just use the ones it defaults to, system, data, boot. You don't need to backup the others. same with wipe, just use the slider thing. Messing with the others can get you on trouble
One other thing, make one backup of the efs only and store that in a safe place off your phone
Click to expand...
Click to collapse
Can I recommend having 2 different efs backups on the phone and a copy of each off the phone?
That way you're mitigating the risk of one backup being incomplete and the risk of corruption through transferring the files "offsite"
Sent from my Nexus 5 using Tapatalk
Wow. So it is indeed bad. Why?
What i did:
Backup01: Restore phone to defaults, root, backup of all (including cache and recovery).
Backup02: Configure my phone, backup of all (including cache and recovery).
Backup03: Install apps, backup of all (including cache and recovery).
Should I restore to each of them and make a new backup without cache and recovery?
Thanks.
jd1639 said:
Just use the ones it defaults to, system, data, boot. You don't need to backup the others. same with wipe, just use the slider thing. Messing with the others can get you on trouble
One other thing, make one backup of the efs only and store that in a safe place off your phone
Click to expand...
Click to collapse
rootSU said:
Can I recommend having 2 different efs backups on the phone and a copy of each off the phone?
That way you're mitigating the risk of one backup being incomplete and the risk of corruption through transferring the files "offsite"
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
rwed said:
Wow. So it is indeed bad. Why?
What i did:
Backup01: Restore phone to defaults, root, backup of all (including cache and recovery).
Backup02: Configure my phone, backup of all (including cache and recovery).
Backup03: Install apps, backup of all (including cache and recovery).
Should I restore to each of them and make a new backup without cache and recovery?
Thanks.
Click to expand...
Click to collapse
What you did isn't bad, it's just the backups will be larger and they have information in them you don't need. Recovery is your twrp recovery and the cache will be recreated when you boot your device
jd1639 said:
What you did isn't bad, it's just the backups will be larger and they have information in them you don't need. Recovery is your twrp recovery and the cache will be recreated when you boot your device
Click to expand...
Click to collapse
OK I see. Then can I just keep those backups with all efs, cache and recovery included? May it lead to problems in future restores?
Thank you!
rwed said:
OK I see. Then can I just keep those backups with all efs, cache and recovery included? May it lead to problems in future restores?
Thank you!
Click to expand...
Click to collapse
You should be ok. The one thing you never want to do is restore an efs partition from one phone onto another phone. That is an instant hosed phone that you can't recovery from.
jd1639 said:
You should be ok. The one thing you never want to do is restore an efs partition from one phone onto another phone. That is an instant hosed phone that you can't recovery from.
Click to expand...
Click to collapse
Yes... I'm reading several articles on that! Pretty scary... I'm gonna do as rootSU suggested and make 2 different backups and store 2 copies offsite, somewhere cloud-based...
I'll then keep these backups I made with all selected. With your first post I thought... I don't know... that maybe restoring these images with all recovery, cache and efs might lead to problems when booting.
If I understand correctly, this is not the case, I just misunderstood you, what you meant is that "it doesn't hurt, it's just not needed", right?
Thank you jd!

[Q] moving data

I'm switching from one nexus 5 to another, and was trying to figure out the easiest way to do so. I have a lot of apps and data, plus xposed modules with different per app settings, etc. I want to move everything over in the easiest way possible. Can I do a nandroid and just restore it to the new device? Or maybe just a nandroid of the data partition? The timing of my switch means I'd also be switching from 4.4.2 to 4.4.3.
Yes, you can restore the nandrioid backup... However, just make sure you don't restore the /efs partition because doing so will leave your new device in wifi only mode + without imei.
- Sent from an IceCold Hammerhead!
Awesome, it won't cause any problems going between devices? Also, can I switch to f2fs at the same time? Like I could switch it to f2fs and then restore the nandroid, but would that which back to ext4?
Would be much safer to ONLY do this with user apps and data. With titanium backup. Do a backup, transfer the folder they're in to a PC....or even Dropbox.... then transfer the folder to the new device.
Doing anything that involves system apps may cause issues.
Sent from my Nexus 5 using Tapatalk
Would that make me lose anything? I have titanium backup from a long time ago, but I never actually used it for much. Nandroids usually worked well enough for me.
04244 said:
Would that make me lose anything? I have titanium backup from a long time ago, but I never actually used it for much. Nandroids usually worked well enough for me.
Click to expand...
Click to collapse
Titanium backup will save all your user installed apps and data. There's a way to save texts too ...but I never save mine, so haven't tried it.
Sent from my Nexus 5 using Tapatalk
Awesome, thanks. I'll figure that out. What about the f2fs thing?
04244 said:
Awesome, thanks. I'll figure that out. What about the f2fs thing?
Click to expand...
Click to collapse
Titanium is format independent.
Sent from my Nexus 5 using Tapatalk

[Q] [HELP] Deleted storage/emulated and now all my photos disappeared

I seem to be having the same problem as this except(android.stackexchange.com/questions/61531/removed-storage-emulated-0-file-and-lost-access-to-all-files) there was never a solution. I tried remaking the folders and restarting the phone but that didn't work.
Can anybody help me out?
Soooo you wiped internal storage? Pictures are gone... Best bet is to try Disk Digger or some similar app and see if it works. Also make a backup next time before you do whatever you tried to do as to avoid this situation in the future.
RoyJ said:
Soooo you wiped internal storage? Pictures are gone... Best bet is to try Disk Digger or some similar app and see if it works.
Click to expand...
Click to collapse
I was thinking that I only wiped the symlink to the files. I will try to see if it helps. Thanks for the tip.
RoyJ said:
Also make a backup next time before you do whatever you tried to do as to avoid this situation in the future.
Click to expand...
Click to collapse
I was going to, except to make a nandroid backup or backup in general using custom recovery I need to go have more than half of my sdcard be free space (since it back it up to the internal sdcard) and I only had like 500-600 MB free I know you can move nandroid backups to the computer to free up space, but I do not know if I could backup straight to computer since N5 has no space.
victorymobile said:
I was thinking that I only wiped the symlink to the files. I will try to see if it helps. Thanks for the tip.
I was going to, except to make a nandroid backup or backup in general using custom recovery I need to go have more than half of my sdcard be free space (since it back it up to the internal sdcard) and I only had like 500-600 MB free I know you can move nandroid backups to the computer to free up space, but I do not know if I could backup straight to computer since N5 has no space.
Click to expand...
Click to collapse
A nandroid wouldn't have helped. It doesn't backup pictures,etc. Use drop box or something or back them up on your pc frequently.
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
A nandroid wouldn't have helped. It doesn't backup pictures,etc. Use drop box or something or back them up on your pc frequently.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
From my understanding, a nandroid backs up everything on the selected partition. So /system would save your ROM and its settings, etc. Normally on a phone with a SD card it won't back that up, but the N5 only has internal memory. Backing up /data won't save pictures and videos you took?
RoyJ said:
From my understanding, a nandroid backs up everything on the selected partition. So /system would save your ROM and its settings, etc. Normally on a phone with a SD card it won't back that up, but the N5 only has internal memory. Backing up /data won't save pictures and videos you took?
Click to expand...
Click to collapse
nope. It just backs up the system partition; data, apps and settings; and boot, kernel
Sent from my Nexus 5 using XDA Free mobile app
That's odd. I could have sworn after I accidentally wiped my internal storage I had my pictures back after restoring a nandroid. Still have them all.
OP, any luck with disk digger? I just deleted a folder of useless memes I made with an app and used disk digger and restored them. This is the one I used
https://play.google.com/store/apps/details?id=com.defianttech.diskdigger
RoyJ said:
OP, any luck with disk digger? I just deleted a folder of useless memes I made with an app and used disk digger and restored them. This is the one I used
play.google.com/store/apps/details?id=com.defianttech.diskdigger
Click to expand...
Click to collapse
Running it right now! It has found 6876 files and counting, and they seem to be full size! Thank you so much! That app is awesome.
And thanks guys, going to go back up my files after it's done
EDIT: Shame the file structure is not preserved
victorymobile said:
EDIT: Shame the file structure is not preserved
Click to expand...
Click to collapse
It's not possible..
You're scanning the drive for actual files on the drive that no longer exist in the filesystem. Think of the file system as a database that tells the OS where the files are. When you delete a file, it doesn't really get deleted. Just the database entry about it.
The files exist whether there is a database entry in the file system or not but if you think about it, unlike files , the folders don't really exist on the disk.. When you create a folder, it doesn't really create a folder on the disk. It just reflects the "location" in the database. Folders don't exist on the disk so they cannot be restored. Restoring the files just adds new entries to the file system. It cannot find the deleted entries and reconnect them with the actual files
Hope this clarifies what you're seeing
Sent from my Nexus 5 using Tapatalk

Categories

Resources