Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
klin1344
Old
(Last edited by klin1344; 3rd May 2012 at 01:31 AM.)
#1  
klin1344's Avatar
Recognized Contributor - OP
Thanks Meter 5159
Posts: 2,961
Join Date: Nov 2011
Location: Cerritos, CA

 
DONATE TO ME
Default [HOW-TO] (YP-G1) Create FULL personal backups for complete restore from a brick

Hi everyone,

I made this guide for users of a Galaxy Player 4.0 USA or INTL who want to get backups of every partition in case they completely brick their device. This will be very useful if you have somehow screwed up your partitions beyond just /system, which is what most ROMs only include. It even backs up /efs, which contains the serial numbers unique to every player and other things that even complete restore ROMs and nandroid backups don't include. It's also good to just have a backup of your partitions stored somewhere safe, because you never know when you might need them. Also, if you're reverting from CM7 (the second release or later) you will need to use this with a PIT file because CM7 uses MTD partitions. Basically, flashing this backup will allow you to completely return to how your device was before, including all your personal data and apps. Hopefully soon we'll begin to have less "bricked my player help" threads clogging up the General (and sometimes Dev) sections. Enjoy

This backup does not back up bootloaders, which can increase your chances of a hard-brick and are almost never needed. Also, this is for the YP-G1 / Player 4.0 USA or INTL only, not for 5.0 users.


Disclaimer: I am not responsible for your device if anything happens blah blah blah


*Pre-requisites*
- Rooted device or ROM
- Busybox (Most rooted ROMs have this, but you can still download Busybox Installer from the Play Store and update to the latest busybox version just to make sure)
- ADB properly set up
- Some space on your internal SD card (about 1-2 GBs should be fine)
- Player set to "USB Debugging Mode" found in Settings

Alright, let's begin. First we will need to make a dump of every partition on the device. However, dumping the PIT is not needed because Adamoutler has a thread with a master list of PITs. Open a Command Prompt (or Terminal if you're using Linux), make sure your device is connected and type:
Code:
adb remount
adb shell
su
Now, to back up EFS:
Code:
dd if=/dev/block/stl3 of=/sdcard/efs.rfs bs=4096
PARAM
Code:
dd if=/dev/block/stl6 of=/sdcard/param.lfs bs=4096
KERNEL
Code:
dd if=/dev/block/bml7 of=/sdcard/zImage bs=4096
SYSTEM
Code:
dd if=/dev/block/stl9 of=/sdcard/factoryfs.rfs bs=4096
DBDATA
Code:
dd if=/dev/block/stl10 of=/sdcard/dbdata.rfs bs=4096
CACHE
Code:
dd if=/dev/block/stl11 of=/sdcard/cache.rfs bs=4096
DATA (Optional if you want your apps)
Code:
tar -czvf /sdcard/data.tar.gz /data
You can exit out of the current window and open a new one once all the processes above are completed.
Now to pull all of the backups to your computer:
Code:
adb remount
adb pull /sdcard/efs.rfs
adb pull /sdcard/param.lfs
adb pull /sdcard/zImage
adb pull /sdcard/factoryfs.rfs
adb pull /sdcard/dbdata.rfs
adb pull /sdcard/cache.rfs
adb pull /sdcard/data.tar.gz
I recommend keeping these files in a safe place on your hard drive for when you need to use them. Feel free to delete them from your player now to save space.



How to Flash
First grab the correct PIT for your device here

For Heimdall, just load the PIT, click "Re-Partition", and select the correct files for each partition. Then click flash.

For ODIN, you have to tar the files together first.
Using Cygwin or Terminal, browse to the directory where all your backup files are. Then, type in:
Code:
tar -H ustar -c efs.rfs param.lfs zImage factoryfs.rfs dbdata.rfs cache.rfs > backup_package.tar
Now load the PIT, click "Re-Partition", and under the PDA section browse to your backup_package.tar (or whatever you named it to). Click flash.

After it is done flashing, here's how to restore your apps. Open Terminal or Command Prompt to the directory of data.tar.gz on your computer:
Code:
adb remount
adb push data.tar.gz /sdcard/
adb shell su -c "tar -zxvf /sdcard/data.tar.gz"
And you're done! If all goes well you should have completely restored your device, with a perfectly safe method and no bootloaders! I hope that this will be helpful to people.
Galaxy S III (SGH-T999) - CyanogenMod 10.1

My work on XDA:

If you appreciate my work, you can thank me by clicking 'thanks' or consider a donation!
The Following 4 Users Say Thank You to klin1344 For This Useful Post: [ Click to Expand ]
 
klin1344
Old
#2  
klin1344's Avatar
Recognized Contributor - OP
Thanks Meter 5159
Posts: 2,961
Join Date: Nov 2011
Location: Cerritos, CA

 
DONATE TO ME
Reserved for future use....
Galaxy S III (SGH-T999) - CyanogenMod 10.1

My work on XDA:

If you appreciate my work, you can thank me by clicking 'thanks' or consider a donation!
The Following User Says Thank You to klin1344 For This Useful Post: [ Click to Expand ]
 
Tcollins412
Old
#3  
Member
Thanks Meter 8
Posts: 63
Join Date: Jan 2012
I did this, and i believe that AdamOutlers .pit is what messed up my device. Can you please give me a copy of your or another copy?
 
klin1344
Old
#4  
klin1344's Avatar
Recognized Contributor - OP
Thanks Meter 5159
Posts: 2,961
Join Date: Nov 2011
Location: Cerritos, CA

 
DONATE TO ME
Quote:
Originally Posted by Tcollins412 View Post
I did this, and i believe that AdamOutlers .pit is what messed up my device. Can you please give me a copy of your or another copy?
AdamOutler's pit is not messed up... I used it to repartition my player and it worked perfectly with the right partitions.

Sent using Tapatalk
Galaxy S III (SGH-T999) - CyanogenMod 10.1

My work on XDA:

If you appreciate my work, you can thank me by clicking 'thanks' or consider a donation!
 
Tcollins412
Old
#5  
Member
Thanks Meter 8
Posts: 63
Join Date: Jan 2012
when i tried it, it messed up my player. do you know how i could fix it?
 
iJimaniac
Old
#6  
iJimaniac's Avatar
Senior Member
Thanks Meter 360
Posts: 1,245
Join Date: Oct 2011
Location: Douglas, AZ

 
DONATE TO ME
Hey klin1344, not sure if you still watch this thread, but I was wondering if anyone has had success using heimdall 1.3.2 with the 4.0? I see it says it broke compatibility with some devices.
Get R.E.D.D ->> Got R.E.D.D? <<- Get R.E.D.D

Asking an ETA for a rom is like asking for a hug from Chuck Norris. Moral: NO ETA'S!

Flashing CyanogenMod on a YP-G1 before backing up the EFS is like punching Chuck Norris before you're ready to die. Moral: ALWAYS BACKUP YOUR EFS!
 
GalaxySWifi4
Old
#7  
Member
Thanks Meter 5
Posts: 53
Join Date: Jun 2012
Quote:
Originally Posted by iJimaniac View Post
Hey klin1344, not sure if you still watch this thread, but I was wondering if anyone has had success using heimdall 1.3.2 with the 4.0? I see it says it broke compatibility with some devices.
No problem for me
The Following User Says Thank You to GalaxySWifi4 For This Useful Post: [ Click to Expand ]
 
crancpiti
Old
#8  
crancpiti's Avatar
Member
Thanks Meter 4
Posts: 71
Join Date: Jun 2012
i wanted to use this method to backup my /efs (like daniel advicd me to do ) but i cant seem to do it. It says Can't open 'sdcard/efs.rfs': Read only file system
pls answer
 
klin1344
Old
#9  
klin1344's Avatar
Recognized Contributor - OP
Thanks Meter 5159
Posts: 2,961
Join Date: Nov 2011
Location: Cerritos, CA

 
DONATE TO ME
Quote:
Originally Posted by crancpiti View Post
i wanted to use this method to backup my /efs (like daniel advicd me to do ) but i cant seem to do it. It says Can't open 'sdcard/efs.rfs': Read only file system
pls answer
You have to be rooted to do this.

Sent from my A500 using xda app-developers app
Galaxy S III (SGH-T999) - CyanogenMod 10.1

My work on XDA:

If you appreciate my work, you can thank me by clicking 'thanks' or consider a donation!
 
crancpiti
Old
#10  
crancpiti's Avatar
Member
Thanks Meter 4
Posts: 71
Join Date: Jun 2012
Quote:
Originally Posted by klin1344 View Post
You have to be rooted to do this.

Sent from my A500 using xda app-developers app
i think either i hadnt BuSY box installed(my device was rooted before) or it was bcause i connected my device to the PC / i mounted my sdcards
now i have a efs.rfs file and that should do it i hope

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...