기술

시스템 full backup을 외장 sdcard에 하기 /sdcard-ext

jayjean 2012. 1. 20. 10:08

CWM recovry가 가장 확실한 백업 방법이라고 하지만 기본적인 시스템이 작동되어야 하고,
루팅된 기기는 필수 요건이다.

기기가 정상 작동을 하지 않을 경우에는  전원버튼을 눌러 휴대폰 전원이 들어올때 초록색 LED 램프가 켜지는 순간  볼륨 다운을 눌러서 부트 옵션을 선택하는 메뉴로 들어간다.
여기서 RSD lite를 사용하거나 fastboot 모드로 들어가 moto-fastboot을 사용할 수 있다.


이 경우는 좀 더 low level의 시스템 접근이므로 좀 더 자유도가 높다.
CWM recovery에 비해 많이 번거로운 절차를 거쳐야 하며, 임베드 기기에 대한 지식이 전혀 없으면
접근 자체가 어려울지도 모르지만 이런 접근 자유도로 인해 알아두어 야 할 것 같다.

XDA-developer 사이트에 adb를 이용해 시스템 파일을 백업하고,
그것을 다시 moto-fastboot으로 flashing 하는 것이다.


http://forum.xda-developers.com/showthread.php?t=1164323

[GUIDE] How to do a full backup to /sdcard-ext

How to backup your atrix with adb

Prerequisites:
update: adb,fastboot,moto-fastboot all in one zip
1. Get adb (from one of the following) (awesome thread about adb where to get it and how to use it)

a) Android adk
b) Gladroot or many of the other older rooting methods that are script based in the stickys
c) obtain moto-fastboot for your os version
32 or 64 bit ms windows xp, vista, or 7
64 bit linux
32 bit linux
Mac osX
fastbootandfriends?
d) Drivers for your device - windows 32 and 64 bit (motorola.com site) other os's do not need driver files.
2. Obtain root on your device
a) look in the sticky threads (I prefer the CWM zip here)

Warnings:
Do not restore /data "/dev/block/mmcblk0p16" if your going from one rom to another. use titanium backup or another utility.

Do not restore /pds "/dev/block/mmcblk0p3" unless you have a issue with your touchscreen or unless instructed to do so by someone that understands /pds.
Do not ever share your pds.img with anyone



Backup:

adb shell
su

Then type the dd commands below to create a image file on your external sdcard for the following...

Boot

dd if=/dev/block/mmcblk0p11 of=/mnt/sdcard-ext/boot.img

System

dd if=/dev/block/mmcblk0p12 of=/mnt/sdcard-ext/system.img

Data

removed use tibu

Osh/Webtop

dd if=/dev/block/mmcblk0p13 of=/mnt/sdcard-ext/osh.img

Recovery

dd if=/dev/block/mmcblk0p10 of=/mnt/sdcard-ext/recovery.img

PDS

dd if=/dev/block/mmcblk0p3 of=/mnt/sdcard-ext/pds.img

MOVE YOUR IMAGE BACKUPS OFF YOUR SDCARD!!!


Restore:
to restore use moto-fastboot (from the pudding thread)
boot

moto-fastboot flash boot boot.img

System

moto-fastboot flash system system.img

Data

removed use tibu

Osh/Webtop

moto-fastboot flash webtop osh.img

Recovery

moto-fastboot flash recovery recovery.img


WARNING - PDS is tricky - Do not touch pds unless you have to.
Also do not ever share your pds.img with anyone

PDS

adb push pds.img /data/local/tmp
adb shell
su
chmod 777 /data/local/tmp/pds.img
dd if=/data/local/tmp/pds.img of=/dev/block/mmcblk0p3

__________________