In this example we make an "all.img"
Open a telnet session to the box
[You must be registered and logged in to see this link.] ~ # cd /tmp
[You must be registered and logged in to see this link.] /tmp # cat /proc/mtd
(response)
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"
[You must be registered and logged in to see this link.] /tmp # dd if=/dev/mtd/8 of=all
(response)
16384+0 records in
16384+0 records out
[You must be registered and logged in to see this link.] /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
[You must be registered and logged in to see this link.] /tmp #
Backup image is stored in /tmp
Step2
FTP the image from the box (/tmp) into your computer
Backup has no extension. In this case it's called:all
Step3
Start mkdnimg.exe
Select proper parameters and push “make”
Ready you are[You must be registered and logged in to see this image.]
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
you can make backup with:
# cat /dev/mtd/7 > /tmp/backup_mtd7.img
and you can restore it with:
# eraseall /dev/mtd/7
# cat /tmp/backup_mtd7.img > /dev/mtd/7
# eraseall /dev/mtd/7
# cat /tmp/backup_mtd7.img > /dev/mtd/7
I used it many times. (I have 200S with 64MB RAM, may have more cache buffer)
mkdnimg commands tested, because I could make a 250S image with it.