PDA

View Full Version : How to backup image relook


crodreamer
13-03-2008, 21:19
How to backup image relook


you need:

- One Hyperterminal

- One FTP client

- One mkdnimg.exe



In this example we make a full backup without the bootloader.



Step 1

Connect to the box using Hyperterminal.

Let the box boot completely.

(the commands you have to type in, are shown in bold)


Type:



> exit

BusyBox v1.00 (2006.03.24-09:26+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
[relook400 /tmp]$ cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00010000 "nor.config_welcome"
mtd1: 00140000 00010000 "nor.kernel"
mtd2: 00420000 00010000 "nor.root"
mtd3: 00230000 00010000 "nor.db"
mtd4: 00030000 00010000 "nor.boot"
mtd5: 00560000 00010000 "nor.kernel_root"
mtd6: 00790000 00010000 "nor.kernel_root_db"
mtd7: 007d0000 00010000 "nor.all_noboot"
mtd8: 00800000 00010000 "nor.all"
[relook400 /tmp]$ dd if=/dev/mtd/7 of=all_noboot
11008+0 records in
11008+0 records out
[relook400 /tmp]$ ls -al
drwxrwxrwt 2 root root 80 Apr 5 07:15 .
drwxrwxr-x 1 518 518 70 Mar 24 18:38 ..
-rw-r--r-- 1 root root 10 Apr 5 2006 ifstate
-rw-r--r-- 1 root root 5636096 Apr 5 07:15 kernel_root
[relook400 /tmp]$



Image is created in /tmp



Step2

FTP the image from the box into your computer



Step3

Start mkdnimg.exe

Select proper parameters and push “make�


Thx @franzjuve