[Q] nv_data on /EFS directory - Galaxy Grand Duos i9082 Q&A, Help & Troubleshootin

When I open the /efs directory i can't see nv_data. I have root and I see inside directories: .files, bluetooth etc. but where is nv_data?
Or maybe the file do not exist on this model?
I had problem with IMEI on I9100 and this time I want to backup this file.
Thanks for answers.

jax_pl said:
When I open the /efs directory i can't see nv_data. I have root and I see inside directories: .files, bluetooth etc. but where is nv_data?
Or maybe the file do not exist on this model?
I had problem with IMEI on I9100 and this time I want to backup this file.
Thanks for answers.
Click to expand...
Click to collapse
it is there my friend....see the screenshot below...

So what I must doing to see this file? I was try root explorer and EFS proffesional and this file doesn't exist.
And secund question is why you nv_data.bin has size 0 B ? Empty file ?
I have XXAMC4 firmware.

jax_pl said:
So what I must doing to see this file? I was try root explorer and EFS proffesional and this file doesn't exist.
And secund question is why you nv_data.bin has size 0 B ? Empty file ?
I have XXAMC4 firmware.
Click to expand...
Click to collapse
but nv_data.bin.md5 is 32bytes
means it is the file u r interested. i dont know why it not there in ur rom. try to upgrade.!!

i was backup dev/block/mmcblk0p17 with terminal emulator. it has 20 mb of size and when I compress it then size is 15 kb. thats better than 107 bytes from copy /efs
do you think copy all dev/block/mmcblk0p17 is good idea?

jax_pl said:
i was backup dev/block/mmcblk0p17 with terminal emulator. it has 20 mb of size and when I compress it then size is 15 kb. thats better than 107 bytes from copy /efs
do you think copy all dev/block/mmcblk0p17 is good idea?
Click to expand...
Click to collapse
iti s always better to back up...so copy all efs partition is a good idea...

ok thanks for help. when i come back to home i try flash newest firmware and find nvdata

Related

[NEED HELP] Help with update-script

I need to copy a single file using an update-script (update.zip's script)
I know that command to copy a dir is
Code:
copy_dir
But if i want to copy only a single file how can i do?
Exit93 said:
I need to copy a single file using an update-script (update.zip's script)
I know that command to copy a dir is
Code:
copy_dir
But if i want to copy only a single file how can i do?
Click to expand...
Click to collapse
put only a single file in the dir? not sure i get your problem, the script should copy everything from the update.zip to the flash memory, why would there be a need to copy a single file?
Kendon is right. Just
Code:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
is needed to copy a single file into the system directory. That script is from one to install WaveSecure to ROM. All it does is copy the contents of the system folder (which is a folder called app, to that location on the system partition of the phone. As there is only one file in the folder app, that file is added or overwritten. Nothing else is changed.
No, i need to copy only one file form SYSTEM to DATA
Then format SYSTEM and recopy that file from DATA to SYSTEM
How can i do?
Exit93 said:
No, i need to copy only one file form SYSTEM to DATA
Then format SYSTEM and recopy that file from DATA to SYSTEM
How can i do?
Click to expand...
Click to collapse
i don't think this is possible with update-script, as it wasn't made for this purpose. care to elaborate what your main goal is, maybe we can find other ways?
kendong2 said:
i don't think this is possible with update-script, as it wasn't made for this purpose. care to elaborate what your main goal is, maybe we can find other ways?
Click to expand...
Click to collapse
I have to format system partition but i have to preserve /system/init.rc file
Deleting all system's subdirs doesn't work

[Q] android problem

trying to run android on top of windows mobile 6.1 on a o2 xda stellar. but the instructions on http://www.androidonhtc.com/ says put androidinstall.tar on the memory card, but none of the builds come with androidinstall.tar, they come with androidinstall.tgz
I re-named it but when installing on the phone using haret it says unable to open androidinstal.tar. so then when trying to boot it has no system files as it hasn't installed them. so i get error no:2 when trying to boot.
any help?
try opening the .tgz see if there is an androidinstall.tar inside of it. If not then place it in the install directory instead.
aceoyame said:
try opening the .tgz see if there is an androidinstall.tar inside of it. If not then place it in the install directory instead.
Click to expand...
Click to collapse
no there isnt an androidinstall.tar inside of it.
r.lepecha said:
no there isnt an androidinstall.tar inside of it.
Click to expand...
Click to collapse
then rename it androidinstall.tgz and install it like you would a .tar file
thoughtlesskyle said:
then rename it androidinstall.tgz and install it like you would a .tar file
Click to expand...
Click to collapse
tried it, it still says unreadable file because it makes it into a .tar file with the the .tgz as another file inside
Why not try just not renaming it and keeping the .tgz extension? If all else fails the build i have, my bare bones one inside the rar file sits an androidinstall.tar
i extracted it, and i have re-compressed to .tar, going to try that
failed to extract. can some one give me a printscreen of what is in each folder because im confused now.
I think it would be nice if all the releaser make the same compression for the rom rls, if it would be .tar inside zip or just .tgz
It would make you guys not have to answer this question too many times.
Edit : If you can't extract it, does that mean your file corrupted?
vellowax said:
I think it would be nice if all the releaser make the same compression for the rom rls, if it would be .tar inside zip or just .tgz
It would make you guys not have to answer this question too many times.
Click to expand...
Click to collapse
i have now got the .tgz to install but i get many IO errors. and then when it goes to boot all it does is go blank? any help on that?
Android Installed
Fixing Permissions on files
chown: /data/app_s: No such file or directory
chmod: /data/app_s: No such file or directory
chown: /system/bin/su: No such file or directory
chmod: /system/bin/su: No such file or directory
chown: /system/init: No such file or directory
chmod: /system/init: No such file or directory
sh: 2: unknown operand
e2fsck 1.38 (30-Jun-2005)
e2fsck: while determining whether /dev/block/loop1 is mounted
/dev/block/loop1: clean, 544/65536 files, 83557/262144 blocks
e2fsck 1.38 (30-Jun-2005)
e2fsck: while determining whether /dev/block/loop0 is mounted
/dev/block/loop0: clean, 272/65536 files, 25007/262144 blocks
mount: mounting /data/sysfiles/su on /system/bin/su failed: No such file or directory
my file setup is
\root\default.txt
\root\haret.exe
\root\intrd.gz
\root\KAISimg.nbh
\root\rootfs.img
\root\zimage
\root\andboot\androidinstall.tgz
\root\conf\with lots of .conf files inside
\root\media\audio\....etc etc
\root\media\resource\with images inside.
i now managed to get it to boot into android. but it didnt extract the androidinstall.tgz so the system files aren't there. can some one please send me a link to download the androidinstall.tar because no matter what I do with the .tgz it doesn't work.
http://www.mediafire.com/?5ioe4z80db9e7dm that is my barebones android. Basically you just use market and configure it the way you want. I linked you my De-odex'd release 3 which is more configurable.
thanks a lot.
going to try it now.
edit : still doesn't work.
i dont know what else to try

[REF] Backup /efs folder. IMPORTANT.

This guide is based on a guide by Candanga on the i9000 forums, and some commands from supercurio
Please hit thanks on their posts and show them some love for the write up.
-----------------------------------------------------------------------------------------------------------------------
I’ve compiled a quick guide to instruct how to make a copy of the /efs folder. I’ve found in many threads suggestions about backing up this folder but the methods itself are very general. Most of the times they suggest to “root and copy the folder” with Root Explorer or similar, but usually it’s not that easy or it just doesn't work for everyone.
This guide ASUMES you have read this Excellent Guide by Darkstrikerfirst:
H E R E <-- Make sure to read the ADB Guide.
I recommend doing this with a Mobile just taken out of the box or with any Official ROM of its Service Provider. If you have already Flashed your phone with another ROM but its working fine, then you can use that /efs also.
Why the /efs folder?
This is a very sensitive system folder that contains Phone-specific information such as the IMEI (encrypted in the nv_data.bin), wireless devices MAC addresses, product code (also in the nv_data.bin), and much more. Often users trying to change product codes or trying to unlock the mobile will end up corrupting data in this location.
Why back it up?
Well, let’s resume it saying that backing-up this little folder will keep you away from Samsung service centres.
***WARNING: I take no responsibility to any damage caused by the methods cited and/or written here. Their sole purpose is to back-up data and not to alter in any way the integrity of the original files of the mobile***
What you will need:
Rooted SGS II to get permissions as a SU (Super User) and perform the backup
I would suggest learning a little about the terminal commands used (in case you are not familiar with them), as it’s better to know what you are doing rather than typing strings like a little chimp without knowing what they are; if you are a little lazy, then you have a good chance bricking your mobile. <- Busybox Commands(or Google them)
Terminal Emulator by Jack Palevich (available from the market) <-Terminal Emulator or use ADB which is included in the SDK Development Tools
The standard prompt of terminal (adb) is a $ sign. Once you enter “SU” it will become a # Sign.
***NOTE: Make sure to keep an eye on the screen of your SGS II during this process, because it may request SU permissions [currently doesn't on CF-root]; else, you will get an error (just if it’s the first time). In Terminal Emulator you will need to reset the app after granting permissions cause it usually freezes***
*Remember: to use ADB you need to enable USB DEBUGGING under Applications/Development in your SGS II.
Here are 3 methods, I recommend that you do both Clean and RAW.
Basic, unix permissions lost :
Code:
su
busybox cp -a /efs /sdcard/efs/
Clean :
Code:
su
busybox tar zcvf /sdcard/efs/efs-backup.tar.gz /efs
After this, you will end up with the file efs-backup.tar.gz in your INTERNAL SDCARD in sdcard/efs/, which is a “tarball” or a ZIP of the /efs folder. That file is your backup. You can expand it with Winrar.
You can also back up the mmcblk0p1 (where /efs is stored) under /dev/block which can greatly support in recovering your IMEI in case of a screw-up:
RAW :
Code:
su
cat /dev/block/mmcblk0p1 > /sdcard/efs/efs_dev-block-mmcblk0p1.img
Same thing, the target is the INTERNAL SDCARD in sdcard/efs/, so go ahead and copy the file.
+1 just do it....
Can this not be tasked by using a root file explorer and copying efs folder as i have always done .
jje
JJEgan said:
Can this not be tasked by using a root file explorer and copying efs folder as i have always done .
jje
Click to expand...
Click to collapse
From the thread:
I’ve found in many threads suggestions about backing up this folder but the methods itself are very general. Most of the times they suggest to “root and copy the folder” with Root Explorer or similar, but usually it’s not that easy or it just doesn't work for everyone.
Click to expand...
Click to collapse
And just copying the folder won't preserve permissions etc.
JJEgan said:
Can this not be tasked by using a root file explorer and copying efs folder as i have always done .
jje
Click to expand...
Click to collapse
As long as you don't copy it to /sdcard, because it's VFAT and you'll lose the permissions settings on the files. If you copy it to /data or something then that's fine.
bumpity bump
RyanZA said:
As long as you don't copy it to /sdcard, because it's VFAT and you'll lose the permissions settings on the files. If you copy it to /data or something then that's fine.
Click to expand...
Click to collapse
Thanks the SGS 1 EFs i copied was copied to external sd card and then copied off to PC . Did likewise on SGS 2 using Super Manager .
So according to what you are saying that was not going to back up if needed .
jje
JJEgan said:
Thanks the SGS 1 EFs i copied was copied to external sd card and then copied off to PC . Did likewise on SGS 2 using Super Manager .
So according to what you are saying that was not going to back up if needed .
jje
Click to expand...
Click to collapse
It would probably have worked, but it would have made your EFS files readable and writable by any app that tried - not the end of the world since it's unlikely that any apps would try, but you still might as well avoid it if you can. I don't think there are any executables in EFS or anything that this will actually break though.
Thanks i did lose IMEI at one flash on SGS1 but a second flash recovered it .
I do like full backup of original firmware and anything else before playing with phone .
jje
I've done all 3 forms of backup myself. . Clean, raw and basic
thanks for the info. have had close calls previously and having backups would have helped ease the stress
Updated first post
Vodafone Fimrware backup BUKE1
Guys,
Have got a new samsung from Vodafone UK , but the firmware kernel seems a bit different, BUKE1. Is this something now and is the above method correct to backup the entire firmware so that it might be useful for vodafone samsung users. Is there an easy guide to backup the firmware ?
Regards
VJ
Guys can someone give me a bit of advice pleeeease
I followed this guide but am a bit worried i might have messed it up, i'm comfortable with command prompt as i'm a software dev but haven't used linux commands much.
Anyway i used the ADB shell from the Android SDK tools and entered the first command to backup the efs directory to the internal sdcard....
Basic, unix permissions lost :
Code:
su
busybox cp -a /efs /sdcard/efs/
Click to expand...
Click to collapse
And i got a lot of
Code:
cp: can't preserve ownership of 'sdcard/efs/...' : Operation not permitted
messages flashing up?
However i checked to see if the backup had been made and it had? What does this mean?
Next i compressed it using...
Clean :
Code:
su
busybox tar zcvf /sdcard/efs/efs-backup.tar.gz /efs
Click to expand...
Click to collapse
Which seemed to work as i have the file in the place i expect
When i did the next step...
You can also back up the mmcblk0p1 (where /efs is stored) under /dev/block which can support greatly to recover your IMEI in case of a screw-up:
RAW :
Code:
su
cat /dev/block/mmcblk0p1 > /sdcard/efs_dev-block-mmcblk0p1.img
Same thing, the target is the INTERNAL SDCARD in sdcard/efs/, so go ahead and copy the file.
Click to expand...
Click to collapse
It completed really quickly, with no messages telling me it was done but when i checked root explorer i couldn't find /dev/block/mmcblk0p1?
What has it done with it? I have dev/block/ but there is no mmcblk0p1? Although i do have /sdcard/efs_dev-block-mmcblk0p1.img. Should i have both?
From what i understand cat concatenates files and prints them to standard output, so i'm assuming the > is piping the std output to the internal sdcard?
Sorry for the questions but i thought i understood what i was doing but the last step and the "can't preserve ownership of.." messages from the first step threw me
Could someone explain this to me a little ;p
These aren't steps but rather separate methods achieving different things. Don't bother about the first one - it notes unix permissions lost , which is why you are seeing the can't preserve ownership messages. The files still backup but correct r/w permissions do not. You may as well chuck the files really, since you managed the tarball (second instruction). Just grab this and backup to external storage, in case you ever need it.
The raw backup will be under sdcard as you have found - stash this away somewhere safe too. You won't find mmcblk0p1 in root explorer as it is a partition, not a folder.
Thanks for the swift reply simion_levi
These aren't steps but rather separate methods achieving different things. Don't bother about the first one - it notes unix permissions lost , which is why you are seeing the can't preserve ownership messages. The files still backup but correct r/w permissions do not. You may as well chuck the files really, since you managed the tarball (second instruction). Just grab this and backup to external storage, in case you ever need it.
Click to expand...
Click to collapse
Do if i move the tarball to the external drive i can get rid of the sdcard/efs directory i copied to the internal card? The tarball has all the correct permissions?
The raw backup will be under sdcard as you have found - stash this away somewhere safe too. You won't find mmcblk0p1 in root explorer as it is a partition, not a folder.
Click to expand...
Click to collapse
Ok i didn't realise it was a partition, so i've just created an image of the partition that the efs folder resides on? Should i copy this to my external sd card as well?
Cheers brother
No problem! Yes, you've got it - backup the tarball and the partition image to computers, external drives etc so you can recover back to the phone in case of future catastrophe. The sdcard/efs directory can be deleted as the tarball contains exactly the same files (but with correct permissions).
Awesome, will get it done later. Out of interest how do you recover the partition image in the event of a disaster occurring?
Sent from my GT-I9100 using XDA App
One question please, since i stumbled on this one almost by luck.
Is there anything else to save before departing from stock?
Thanks.
Okay, so this guide assumes I already rooted my phone, but as a newbie I am completely in the dark about what does and what does not potentially harm the /efs. I would rather backup EVERYTHING before I flash/change anything, but from what I have read so far I need at least root to do backups.
Would it be safe to flash the Lite'ning Rom v1.1, coming from stock I9100XWKE2/I9100XENKE1/I9100XXKDJ/I9100XWKE2, and then backup mmcblk0p1?
Thanks!

Manual Upgrade Problem

I got root and tried to get a newer software version on the AFTV. Everything went great but 15 min into the push, I get this...
failed to copy "/sdcard/Download/update.zip" to "/cache/update.zip" : No space left on device
I am doing this on an android tablet and it is a brand new FTV with 3+ gigs left
Any help would be appreciated!!
Thanks!!
byrdcfmma said:
I got root and tried to get a newer software version on the AFTV. Everything went great but 15 min into the push, I get this...
failed to copy "/sdcard/Download/update.zip" to "/cache/update.zip" : No space left on device
I am doing this on an android tablet and it is a brand new FTV with 3+ gigs left
Any help would be appreciated!!
Thanks!!
Click to expand...
Click to collapse
So /cache is a separate partition from wherever you think you have 3+ gigs left. From an adb shell, do ls /cache, what do you have in there? For instance on mine I have a lost+found directory and a recovery directory and that's it. You can probably delete whatever is in there besides the recovery directory.
rbox said:
So /cache is a separate partition from wherever you think you have 3+ gigs left. From an adb shell, do ls /cache, what do you have in there? For instance on mine I have a lost+found directory and a recovery directory and that's it. You can probably delete whatever is in there besides the recovery directory.
Click to expand...
Click to collapse
Thanks, I have the bueller-ota-51.1.1.0_user_...bin file, I know that is a problem, because it did not keep the update.zip file name. and lost and found. how would you delete in shell? Is there a command or is it just delete filename?
Thanks!
byrdcfmma said:
Thanks, I have the bueller-ota-51.1.1.0_user_...bin file, I know that is a problem, because it did not keep the update.zip file name. and lost and found. how would you delete in shell? Is there a command or is it just delete filename?
Thanks!
Click to expand...
Click to collapse
rm /cache/thefilename
rbox said:
rm /cache/thefilename
Click to expand...
Click to collapse
Thanks!! One more question if you have time, please?
Is there a command to get it to upload as update.zip and not the original .bin file name? Or does that matter?
byrdcfmma said:
Thanks!! One more question if you have time, please?
Is there a command to get it to upload as update.zip and not the original .bin file name? Or does that matter?
Click to expand...
Click to collapse
The filename doesn't matter, as long as in the command file you use the correct name. But to set the name of the file when you push do
adb push localfilename /cache/update.zip

[Q] Can't read, copy, delete PhilZ backup files

I got a manufacturer refurbished SPH-l710 on ebay, signed in to google, auto updated to 4.4.2
I rooted w/towelroot, used flashify to flash PhilZ Touch 6.48.4
I did a backup, said successful, files show in clockworkmod/backup but ES file explorer can't read or copy to PC
Do I need to do something to get access to these files?
Is there a way to verify a backup so I don't brick the phone restoring something corrupted?
Any help is much appreciated
Skimmy! said:
I got a manufacturer refurbished SPH-l710 on ebay, signed in to google, auto updated to 4.4.2
I rooted w/towelroot, used flashify to flash PhilZ Touch 6.48.4
I did a backup, said successful, files show in clockworkmod/backup but ES file explorer can't read or copy to PC
Do I need to do something to get access to these files?
Is there a way to verify a backup so I don't brick the phone restoring something corrupted?
Any help is much appreciated
Click to expand...
Click to collapse
so your trying to use ES file explorer on your phone to transfer a file from your phone to your PC?
I can transfer files w/es file explorer to pc, but not ones created by philz
Skimmy! said:
I can transfer files w/es file explorer to pc, but not ones created by philz
Click to expand...
Click to collapse
why don't you try using the Windows File explorer that's on your PC if you have Windows vista-8.1 cause that's what i use when transferring files from my phone's internal storage or external SD to my PC or the other way around
I can copy files from the S3 with windows 7 file explorer, a titanium backup copied fine, clockworkmod folder copied files but all 0 bytes.
The problem is not just copy to pc, every app I try gives an error trying to read the CWM backup files.
Philz offers to restore them but if it gets a read error what happens?
Skimmy! said:
I can copy files from the S3 with windows 7 file explorer, a titanium backup copied fine, clockworkmod folder copied files but all 0 bytes.
The problem is not just copy to pc, every app I try gives an error trying to read the CWM backup files.
Philz offers to restore them but if it gets a read error what happens?
Click to expand...
Click to collapse
hmmmm......I'm out of ideas for right now.......when i think of something I'll post it on here
Skimmy! said:
I got a manufacturer refurbished SPH-l710 on ebay, signed in to google, auto updated to 4.4.2
I rooted w/towelroot, used flashify to flash PhilZ Touch 6.48.4
I did a backup, said successful, files show in clockworkmod/backup but ES file explorer can't read or copy to PC
Do I need to do something to get access to these files?
Is there a way to verify a backup so I don't brick the phone restoring something corrupted?
Any help is much appreciated
Click to expand...
Click to collapse
I am also having the same problem. Factory reset works. But is there any other way to remove the files? All show as 0 byte files. When I try to use rm, chmod or even pull, "Permission Denied" is shown.
Code:
[email protected]_T00J:/mnt/shell/emulated/0 # ls -l
ls -l
lstat './aromafm' failed: Permission denied
lstat './aromafm.zip' failed: Permission denied
drwxrwx--- root sdcard_r 2015-06-23 12:30 backups
drwxrwx--- root sdcard_r 2015-06-18 12:07 bluetooth
lstat './clockworkmod' failed: Permission denied
drwxrwx--- root sdcard_r 2015-06-18 18:40 data
drwxrwx--- root sdcard_r 2015-06-16 12:49 login_log
Any way to fix this? Those files are eating around 800MB of my Internal Storage

Categories

Resources