Search

Google Ads

How to backup an image using telnet and mkdnimg

Denktenk's cookery Class

Please note that at the time of editing (May 2009) mkdnimg does not support the 91HD / 250HD

Ingredients:
- Puttytel, a free telnet client can be found here
- mkdnimg can be found here (mkdnimg.exe works with wine 1.0.1 on debian linux)

In this example we make an all.img

Step 1
Open a telnet session to the box (enter user/pass).
Commands are set in bold character.:

root@relook ~ # cd /tmp
root@relook /tmp # cat /proc/mtd
(response, will be different in DGS and enigma)
dev: size erasesize name
mtd0: 00040000 00010000 nor.config_welcome
mtd1: 001e0000 00010000 nor.db
mtd2: 00460000 00010000 nor.root
mtd3: 00150000 00010000 nor.kernel
mtd4: 00030000 00010000 nor.boot
mtd5: 005b0000 00010000 nor.kernel_root
mtd6: 00790000 00010000 nor.kernel_root_db
mtd7: 007d0000 00010000 nor.all_noboot
mtd8: 00800000 00010000 nor.all
mtd9: 0189ffff 00001000 highram
root@relook /tmp # dd if=/dev/mtd/8 of=all
(response)
16384+0 records in
16384+0 records out
root@relook /tmp # ls -al
(response)
drwxrwxrwt 2 root root 0 Oct 29 08:45 .
drwxr-xr-x 16 1003 1003 178 Sep 18 21:07 ..
--S-s-T 1 root root 8 Jan 1 1970 .CCcam.nodeid
srw-rw-rw- 1 root root 0 Jan 1 1970 .emud.socket
-rw-r-r- 1 root root 0 Jan 1 1970 .enigma
srwxr-xr-x 1 root root 0 Jan 1 1970 .listen.camd.socket
-rw-r-r- 1 root root 8388608 Oct 29 08:45 all
srw-rw-rw- 1 root root 0 Jan 1 1970 camd.socket
-rw-rw-rw- 2 root root 185 Oct 29 08:45 ecm.info
-rw-rw-rw- 2 root root 185 Oct 29 08:45 ecm0.info
srwxr-xr-x 1 root root 0 Jan 1 1970 hotplug.socket
-rw-r-r- 1 root root 325 Jan 1 1970 iplog.log
srwxr-xr-x 1 root root 0 Jan 1 1970 mmi.socket
root@relook /tmp #

Backup image is stored in /tmp

Step 2

FTP the image from the box (/tmp) into your computer
Backup has no extension. In this case it's called:all

Step 3

Start mkdnimg.exe

Select proper parameters and push: make

Ready you are

If you want to backup eg an all_noboot
you change this command:
dd if=/dev/mtd/8 of=all
into this command:
dd if=/dev/mtd/7 of=all_noboot

Special notes for CubeRevo / IP9000HD

(1) There is not enough room in /tmp for the file produced
from the dd command. If you have a hard disk, you can put it in /media;
if you have a USB stick you can put it in /mnt/usb/usb0.

(2)Also, /dev/mtd is somewhat different. It consists of /dev/mtd0 to /dev/mtd8
Each corresponds to a different image type. When you give the command

[NLB cuberevo /media]$ cat /proc/mtd

the result is something like

dev: size erasesize name
mtd0: 00040000 00020000 "nor.boot"
mtd1: 00020000 00020000 "nor.config_welcome"
mtd2: 00200000 00020000 "nor.kernel"
mtd3: 013a0000 00020000 "nor.root"
mtd4: 00a00000 00020000 "nor.db"
mtd5: 015a0000 00020000 "nor.kernel_root"
mtd6: 01fa0000 00020000 "nor.kernel_root_db"
mtd7: 01fc0000 00020000 "nor.all_noboot"
mtd8: 02000000 00020000 "nor.all"

Therefore, to backup an "all" image to hard disk, the
command is:

[NLB cuberevo /]$ cd /media
[NLB cuberevo /media]$ dd if=/dev/mtd8 of=all
(response)
65536+0 records in
65536+0 records out

If you wanted a all_noboot image, it would be
[NLB cuberevo /media]$ dd if=/dev/mtd7 of=all_noboot

and similarly for other image types.

Now you should do a 'sync' command
[NLB cuberevo /]$ sync

Confirm the file has been created:
NLB cuberevo /media]$ ls -al

amongst the files listed should be one called all.

You should copy this to your computer hard disk and use the latest version of
mkdnimg which can be found here
to create your image.


backup_a_restorable_image.txt · Last modified: 2009/12/15 22:26

Login

Username:     Password: Remember me
Register now! | Lost Password?

Who's Online

22 user(s) are online (3 user(s) are browsing Wiki)

Members: 11 | Guests: 11 | lopen, henkeman, sango10, LennartS, dinwal, reaper7, thipau, ha6oi, zgeorgiev, piree, alus, more...

New Members

| ochmo 2010/7/31 | | pakos 2010/7/31 | | saltello 2010/7/31 | | djslider 2010/7/31 | | abdul1508 2010/7/31 |

Powered by Linux Server by Apache Database by MySQL Rendered by PHP Templates by Smarty CMS by Xoops Wiki by Dokuwiki Blog by Wordpress
 
Addicted to DGStation :-) Hosted by ProxisNET           Browse Happy Get Opera! Get Firefox! Get Safari!

About | Copyright | Credits | Disclaimer | Webmaster © 2004 - 2010 denktenk.com, all rights reserved