Jump to content


Photo

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

- - - - -

  • Please log in to reply
11 replies to this topic

#1
milkaschokolade

milkaschokolade

    Newbie

  • Members
  • Pip
  • 2 posts
Hey,
just got a new phone and now i want to backup the system.img, boot.img and recovery.img. how to do?
thanks :(

  • 0

#2
rjm2k

rjm2k

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,096 posts

Hey,
just got a new phone and now i want to backup the system.img, boot.img and recovery.img. how to do?
thanks :(


check the roms in this thread, it may have already been dumped. if not, check the second post in the thread it tells you how to dump. If it's new please post.

http://android.modac...rom-stock-roms/

  • 0

#3
veektor

veektor

    Newbie

  • Members
  • Pip
  • 7 posts
  • Devices:ZTE Blade, SE k610i
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, 28 December 2010 - 11:24 AM.

  • 0

#4
rbbrslmn

rbbrslmn

    Diehard

  • Members
  • PipPipPipPip
  • 305 posts
has anyone actually backed up the stock recovery program?

  • 0

#5
veektor

veektor

    Newbie

  • Members
  • Pip
  • 7 posts
  • Devices:ZTE Blade, SE k610i

has anyone actually backed up the stock recovery program?

I did :( For the warranty ofc

  • 0

#6
milkaschokolade

milkaschokolade

    Newbie

  • Members
  • Pip
  • 2 posts
where to get z4root, i can't find it in the market

  • 0

#7
veektor

veektor

    Newbie

  • Members
  • Pip
  • 7 posts
  • Devices:ZTE Blade, SE k610i
http://android.modac...rom-stock-roms/ #2 post
you wont even need root

  • 0

#8
razzor1711

razzor1711

    Newbie

  • Members
  • Pip
  • 31 posts
do you mean romdump?

  • 0

#9
veektor

veektor

    Newbie

  • Members
  • Pip
  • 7 posts
  • Devices:ZTE Blade, SE k610i
yup

  • 0

#10
Arr Too

Arr Too

    Addict

  • Members
  • PipPipPipPipPip
  • 622 posts

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...

  • 0

#11
Sebastian404

Sebastian404

    Hardcore

  • Developer Team
  • PipPipPipPipPipPip
  • 2,104 posts
  • Gender:Male
  • Location:Somwhere Near Mountain View, California
  • Devices:lots of them
  • Twitter:@sebastian404

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/

  • 0

#12
veektor

veektor

    Newbie

  • Members
  • Pip
  • 7 posts
  • Devices:ZTE Blade, SE k610i

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.

  • 0




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users