Jump to content
Sign in to follow this  
milkaschokolade

How to backup the system.img, boot.img and recovery.img?

Recommended Posts

root your phone temporarily with z4root

in ADB or a terminal emulator type

cat proc/mtd
it will give you smthing like this:
dev:	size   erasesize  name

mtd0: 00480000 00020000 "recovery"

mtd1: 00480000 00020000 "boot"

mtd2: 00180000 00020000 "splash"

mtd3: 00060000 00020000 "misc"

mtd4: 02940000 00020000 "cache"

mtd5: 0cf80000 00020000 "system"

mtd6: 0d020000 00020000 "userdata"

mtd7: 00180000 00020000 "persist"
if that's the case then type:
su

dd if=/dev/mtd/mtd0 of=/sdcard/recovery.img bs=4096

dd if=/dev/mtd/mtd1 of=/sdcard/boot.img bs=4096

dd if=/dev/mtd/mtd5 of=/sdcard/system.img bs=4096

and the .img files are on your SD card now

Edited by veektor

Share this post


Link to post
Share on other sites
if that's the case then type:

su

dd if=/dev/mtd/mtd0 of=/sdcard/recovery.img bs=4096

dd if=/dev/mtd/mtd1 of=/sdcard/boot.img bs=4096

dd if=/dev/mtd/mtd5 of=/sdcard/system.img bs=4096

and the .img files are on your SD card now

I'm pretty sure we've been here before and that works OK for recovery and boot, but not system. The system partition uses the YAFFS filesystem and that stores stuff in the SPARE bytes of the NAND. A straight 'dd' won't include that critical data and so you'll have a broken img. You need to 'tar' the individual files (or maybe 'nanddump') to backup the system part.

Most people will find it easier to use Seb's romdump, if there isn't already a recovery image available. Otherwise, use ClockworkMod...

Share this post


Link to post
Share on other sites
I'm pretty sure we've been here before and that works OK for recovery and boot, but not system. The system partition uses the YAFFS filesystem and that stores stuff in the SPARE bytes of the NAND. A straight 'dd' won't include that critical data and so you'll have a broken img. You need to 'tar' the individual files (or maybe 'nanddump') to backup the system part.

^^this is spot on.

Nandroid works by creating a new empty YAFF filesystem image and doing a CPIO from the system into it..

or to bang my own trumpet... use romdump

http://android.podtwo.com/romdump/

Share this post


Link to post
Share on other sites
I'm pretty sure we've been here before and that works OK for recovery and boot, but not system. The system partition uses the YAFFS filesystem and that stores stuff in the SPARE bytes of the NAND. A straight 'dd' won't include that critical data and so you'll have a broken img. You need to 'tar' the individual files (or maybe 'nanddump') to backup the system part.

Most people will find it easier to use Seb's romdump, if there isn't already a recovery image available. Otherwise, use ClockworkMod...

Thanks for the info. And thank God I made a backup with cwmod too. So if I have to send it back for warranty stuff all I have to do is restore from cwmod and flash the original recovery.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.