how to make a full backup image?

digidude

Sheep worrier.
VIP Member
Joined
Aug 8, 2001
Messages
24,754
Reaction score
3,741
Location
The edge.
im trying to make a full backup image, to include settings and plugins already installed

ive tried some stuff via telnet, that gave me a 4.50M .img file, but the original is 5.94M and if i try to install the backup ive made, its not recognised as a valid file

can anyone tell me if its possible?

cheers

dd
 
What version box are you using? - making backups is different for each box.

For a dreambox 500 -

you telent into the box and issue this command:

cat /dev/mtd/3 > /tmp/image.img

That makes an image and stores it in tmp and the image will be called image.img

If you can't get that to work - just use dreamup to make a backup.
 
Last edited:
ive done that, and the image is a different size to the original

i cant use dreamup as it is a linux box, but not a dreambox
 
If it's not a dreambox and a different kind of box (were not telepathic m8) you'll need to be specific on the make and model.
 
ita a new TM500 and TM600 linux receiver

This is the dreambox section m8? surely you're gonna be better going to a sat forum that has a TM section.

As for the command above:

cat /dev/mtd/3 > /tmp/image.img

That backs up mtd - partition 3, I have no idea what partitions a TM uses -

dreambox memory is split into the following:

mtd0: 00600000 00020000 "DreamBOX cramfs"
mtd1: 001c0000 00020000 "DreamBOX jffs2"
mtd2: 00040000 00020000 "DreamBOX OpenBIOS"
mtd3: 007c0000 00020000 "DreamBOX (w/o bootloader)"
mtd4: 00800000 00020000 "DreamBOX (w/ bootloader)"
mtd5: 004e0000 00020000 "DreamBOX SquashedFS"

Maybe you need to save a partition with the bootloader:

cat /dev/mtd/4 > /tmp/image.img

I don't have a tm so I'm not sure how it uses it's flash m8.
 
to find out the partitions for the tm's
telnet in and

more /proc/mtd

then copy and paste the output here.

With bootloader can be dangerous so I wouldn't ever advise it.
 
cheers for the help peeps

nowhere has a TM500/600 section yet as theyre so new, not even availoable to the public yet, and DW is going to be the main source for the images for them

but as theyre linux and based on the enigma1 images, i thought the best place to get help would be from the dreambox peeps :)
 
are you going to post the results of the

more /proc/mtd

I'm curious to the layout of the partitions.

Did you solve the backup problem ?
 
Id be interested myself :) come on Digi how did you get on ?
 
are you going to post the results of the

more /proc/mtd

I'm curious to the layout of the partitions.

Did you solve the backup problem ?

still not managed to make a working backup, the pain in the arse is that to try it, i have to install all the stuff i want, try a backup, then factory reset to find that id dont work lol

heres the info

[Technomate(TM500) /> more /proc/mtd
dev: size erasesize name
mtd0: 00010000 00002000 "ENV"
mtd1: 00030000 00010000 "Logo"
mtd2: 000f0000 00010000 "linux"
mtd3: 004c0000 00010000 "ROOT Suqashfs"
mtd4: 001e0000 00010000 "var jffs2"
mtd5: 00030000 00010000 "bootloader"
mtd6: 007d0000 00010000 "ALL (8M)"
[Technomate(TM500) />
 
ive tried all 7 of the above, and none of them are the right size, or are recognised as a valid update file, is there a way to merge option 3 and 4 to create one image backup?
 
If you want to merge two files together in windows you just need to type a command like this into a windows dos box:

copy/b part1.img+part2.img final.img


Basically this joins part1.img to part2.img to create a final.img.

I take it you know how to use dos m8 - if not here's a spastic tut.

Make a folder in your c drive called 'image' and put part1.img & part2.img

In windows, goto 'all programs/accessories/command promt' and in the window type:

cd \image
copy/b part1.img+part2.img final.img

Now you should see your final.img


That's one way to merge those files m8.

Here's an example to join two txt files - just run the batch file to create the new text file.
 
Last edited:
you cannot just flash the backup image onto the box because uboot( on TM and iTgate boxes) is looking for headers in the backup that tells it which STB you have!.(explains the size difference too btw )

you can only restore it by reversing the dd command ;)
:Smokin:
 
you cannot just flash the backup image onto the box because uboot( on TM and iTgate boxes) is looking for headers in the backup that tells it which STB you have!.(explains the size difference too btw )

you can only restore it by reversing the dd command ;)
:Smokin:


is this the case even when using the receiver itself with telnet commands to create the backup image?
 
yes,,,

making a image from cvs the squashfs image gets a uboot header on it, this is the the box uboot to work with, maily just containing information about which box its for.

when you do a dd backup this info is not added, its raw data,
you should be able to do mabie something like this
Code:
You don't have permission to view the code content. Log in or register now.

only thing being that might stop it if kernel has the mtd partitions locked but even that we can get round.

i havent tested that digidude on a tm500 but how i get round things on its sister boxes ;)
 
yes,,,

making a image from cvs the squashfs image gets a uboot header on it, this is the the box uboot to work with, maily just containing information about which box its for.

when you do a dd backup this info is not added, its raw data,
you should be able to do mabie something like this
Code:
You don't have permission to view the code content. Log in or register now.

only thing being that might stop it if kernel has the mtd partitions locked but even that we can get round.

i havent tested that digidude on a tm500 but how i get round things on its sister boxes ;)


would this (if it works) also backup the var folder for plugins etc?
 
does the box have network capability ?
if so you can ftp files into the /var as it's jffs.
 
Back
Top