[Miscellaneous Android Development] sk280:
Steps to backup stock /cust and /userdata2 partition prior to flashing new ROMs.

Thanks mate. What OS are you using? I used Windows 7 as Windows XP did not work for me.

Even with Windows 7, I had to manually install the driver (device manager, update driver, path to driver files downloaded).

Follow the guide here: http://xdaforums.com/showpost.php?p=19246491&postcount=1

to root your phone. Meanwhile I'll find out instructions for fool proof stock recovery partition backup. For now I have out they only way to backup /cust and /userdata2 partition here:

http://66.163.168.225/babelfish/tra...lash-partitionen-von-supertoast-anpassen.html

Here is another way to completely take a backup of your stock ROM prior to flashing new ROMS:

http://androidarea51.com/q-kernel-a...?PHPSESSID=nk8an4uv09a23ta6q0t05nk3j0#msg2503 --> Follow steps in Reply#2

OK, I have thought about this and reread the backup partitions from the 1st Link in this post. Essentially the steps to take a backup of the /cust and /userdata2 partitions are:

1. Root your phone (If you follow guide: http://xdaforums.com/showpost.php?p=19246491&postcount=1, ClockWorkMod recovery would have been installed.)

2. Download backup_partitions.zip from here http://66.163.168.225/babelfish/tra...change_partition_layout/backup_partitions.zip and save it somewhere in your sdcard (/sdcard is recommended)

3. Reboot into recovery mode (reboot phone, press Vol+ and Power ON button at the same time when restarting)

4. In CWM Recovery mode, Install zip from sdcard and choose backup_partitions.zip (downloaded in step 2)

5. Reboot phone.

6. Check the root of your sdcard. You should see the following files:

cust_backup.tar --> Backup of your /cust partition (with Voda boot logo and branding)

userdata2_backup.tar --> Backup of your /userdata2 partition (more oem stuff I think)

If you have reached thus far, I would really appreciate if you could please zip the above 2 .tar files and load it in Dropbox/rapidshare etc.

Am certain that the above 2 files will NOT have any confidential data. All of your confidential data (account information, sdcard backup etc are in data.img)

Am happy to help anyway I can when you get stuck rooting or taking the backup.

UPDATE: Found another method of backup data in /cust partition.

I quote a post by knzo from: http://pzieye.centelia.net/blaze/viewtopic.php?id=7 (requires registration)

---

Here's a tutorial on how to remove the crap from your operator such as vodafone. You need root for this.

0. Backup first (optional but highly recommended)

- Download busybox installer from market, run it and install busybox (1.19 on /xbin for example)

- Download terminal application from market, run it and do these commands (without the ""):

- "su" (click allow when it asks you for root privileges)

- "mkdir /sdcard/custbackup" (you'll need a microSD card for this)

- "cp -r /cust/* /sdcard/custbackup"

- Done, backed up contents will be in your microSD card on the custbackup folder

1. Removal

- Run these commands on terminal application:

- "su"

- "ls /cust/" (take note of your brand; in this case, let's assume it's vodafone)

- "mount -o remount,rw -t yaffs2 /dev/block/mtdblock8 /cust"

- "rm -r /cust/vodafone/"

- "reboot"

- Enjoy your unbranded device

2. Restore (optional, needs step 0 to been made)

- Run these commands on terminal application:

- "su"

- "mount -o remount,rw -t yaffs2 /dev/block/mtdblock8 /cust"

- "cp -r /sdcard/custbackup/* /cust"

- Done

Last edited by knzo (2011-09-17 05:35:11)

---