|
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||
recovery |
N/A |
A 'backup' kernel, initrd, and OS
|
mtdblock1 |
Can flash custom recovery.img (Amon_Ra, ClockworkMod, etc). |
boot |
boot.img |
The main kernel and ramdisk |
mtdblock2 |
Can flash custom boot.img |
system |
system.img |
The main OS |
mtdblock3 |
This is the /system partition |
cache |
cache.img |
Temp storage |
mtdblock4 |
Unused. |
userdata |
data.img |
User data and settings |
mtdblock5 |
This is the /data partition |
Examples
Manual Nandroid restore
Make a Nandroid backup, and copy the folder off your SD card to your desktop.
cd ~/Desktop/path/to/backup/
fastboot flash userdata data.img
fastboot flash system system.img
fastboot flash boot boot.img
fastboot reboot
Flash Custom Recovery.img
fastboot flash recovery /path/to/.img
fastboot reboot
fastboot reboot
Flash Custom boot.img
You should make a Nandroid backup first, in case you need to recover your boot.img
fastboot flash boot /path/to/.img
fastboot reboot
fastboot reboot
Development
If you are developing a kernel, you may find it helpful to delete your boot.img and recovery.img to force booting into fastboot:
fastboot erase boot
fastboot erase recovery
You can then manually boot from your custom kernel and a ramdisk:
fastboot boot
Once you have a working kernel and ramdisk, you can automagically combine them within fastboot:
fastboot flash:raw boot





