Page 1 of 2

How can I dump all my tv memory to pc or to usb with putty?

Posted: Tue May 24, 2011 6:07 pm
by tempinbox
How can I dump all my tv memory to pc or to usb with putty?which command i have to use? is possibile to do this? i want to backup all my tv partitions to explore the files in it. Is possible to extract fw files?

Re: How can I dump all my tv memory to pc or to usb with putty?

Posted: Wed May 25, 2011 9:20 am
by juusso
Here is just an example, because you have to check existing partitions by command:

Code: Select all

cat /proc/partitions

Code: Select all

cat /dev/bml0/1 > /dtv/usb/sda1/bml1
cat /dev/bml0/2 > /dtv/usb/sda1/bml2
cat /dev/bml0/3 > /dtv/usb/sda1/bml3
cat /dev/bml0/4 > /dtv/usb/sda1/bml4
cat /dev/bml0/5 > /dtv/usb/sda1/bml5
cat /dev/bml0/6 > /dtv/usb/sda1/bml6
cat /dev/bml0/7 > /dtv/usb/sda1/bml7
cat /dev/bml0/8 > /dtv/usb/sda1/bml8
cat /dev/bml0/9 > /dtv/usb/sda1/bml9
cat /dev/bml0/10 > /dtv/usb/sda1/bml10
cat /dev/bml0/11 > /dtv/usb/sda1/bml11
cat /dev/bml0/12 > /dtv/usb/sda1/bml12
cat /dev/bml0/13 > /dtv/usb/sda1/bml13
cat /dev/bml0/14 > /dtv/usb/sda1/bml14
cat /dev/bml0/15 > /dtv/usb/sda1/bml15
cat /dev/bml0/16 > /dtv/usb/sda1/bml16
cat /dev/bml0/17 > /dtv/usb/sda1/bml17
cat /dev/bml0/18 > /dtv/usb/sda1/bml18
cat /dev/bml0/19 > /dtv/usb/sda1/bml19
cat /dev/bml0/20 > /dtv/usb/sda1/bml20
cat /dev/bml0/21 > /dtv/usb/sda1/bml21
cat /dev/bml0/c > /dtv/usb/sda1/bml0c

Re: How can I dump all my tv memory to pc or to usb with putty?

Posted: Sat May 28, 2011 11:19 pm
by tempinbox
juuso wrote:Here is just an example, because you have to check existing partitions by command:

Code: Select all

cat /proc/partitions

Code: Select all

cat /dev/bml0/1 > /dtv/usb/sda1/bml1
cat /dev/bml0/2 > /dtv/usb/sda1/bml2
cat /dev/bml0/3 > /dtv/usb/sda1/bml3
cat /dev/bml0/4 > /dtv/usb/sda1/bml4
cat /dev/bml0/5 > /dtv/usb/sda1/bml5
cat /dev/bml0/6 > /dtv/usb/sda1/bml6
cat /dev/bml0/7 > /dtv/usb/sda1/bml7
cat /dev/bml0/8 > /dtv/usb/sda1/bml8
cat /dev/bml0/9 > /dtv/usb/sda1/bml9
cat /dev/bml0/10 > /dtv/usb/sda1/bml10
cat /dev/bml0/11 > /dtv/usb/sda1/bml11
cat /dev/bml0/12 > /dtv/usb/sda1/bml12
cat /dev/bml0/13 > /dtv/usb/sda1/bml13
cat /dev/bml0/14 > /dtv/usb/sda1/bml14
cat /dev/bml0/15 > /dtv/usb/sda1/bml15
cat /dev/bml0/16 > /dtv/usb/sda1/bml16
cat /dev/bml0/17 > /dtv/usb/sda1/bml17
cat /dev/bml0/18 > /dtv/usb/sda1/bml18
cat /dev/bml0/19 > /dtv/usb/sda1/bml19
cat /dev/bml0/20 > /dtv/usb/sda1/bml20
cat /dev/bml0/21 > /dtv/usb/sda1/bml21
cat /dev/bml0/c > /dtv/usb/sda1/bml0c
Thanks!! :)

Re: How can I dump all my tv memory to pc or to usb with putty?

Posted: Sun May 29, 2011 2:05 pm
by tempinbox
I succesfully backup all but i obtain only file without extension how i can exctract this file now?

Re: How can I dump all my tv memory to pc or to usb with putty?

Posted: Mon May 30, 2011 1:48 pm
by tempinbox
zibri2 wrote:
tempinbox wrote:How can I dump all my tv memory to pc or to usb with putty?which command i have to use? is possibile to do this? i want to backup all my tv partitions to explore the files in it. Is possible to extract fw files?

Code: Select all

echo "#!/bin/sh" >backup.sh;mount|grep "(rw"|grep "utf8"|cut -d " " -f1,3,4|sed -e "s. . of=/dtv/usb/sda1."|sed -e "s/ type/.img bs=1024K/"|sed -e "s./dev.dd if=/dev." >>backup.sh; chmod 755 backup.sh
then execute backup.sh

(change sda1 in sda2 if needed)

result on 46D7000:
My generated backup.sh:

Code: Select all

#!/bin/sh
dd if=/dev/stl0/12 of=/dtv/usb/sda2/mtd_rwarea.img bs=1024K
dd if=/dev/mmcblk0p5 of=/dtv/usb/sda2/mtd_contents.img bs=1024K
dd if=/dev/mmcblk0p8 of=/dtv/usb/sda2/mtd_rwcommon.img bs=1024K
dd if=/dev/mmcblk0p1 of=/dtv/usb/sda2/mtd_swu.img bs=1024K
dd if=/dev/mmcblk0p3 of=/dtv/usb/sda2/mtd_emanual.img bs=1024K
The result:

Code: Select all

19+1 records in
19+1 records out
20447232 bytes (19.5MB) copied, 1.603919 seconds, 12.2MB/s
250+0 records in
250+0 records out
262144000 bytes (250.0MB) copied, 12.660334 seconds, 19.7MB/s
997+1 records in
997+1 records out
1046437888 bytes (998.0MB) copied, 51.481068 seconds, 19.4MB/s
200+0 records in
200+0 records out
209715200 bytes (200.0MB) copied, 11.334895 seconds, 17.6MB/s
150+0 records in
150+0 records out
157286400 bytes (150.0MB) copied, 7.786140 seconds, 19.3MB/s[code]

:D

[b]Note:[/b]
This script will backup only the writable partitions.
(What's the need to backup a read-only partition?)[/quote]
 Sorry but i try your procedure but it doesn't work can you explain me what i've to do?
these are my partitions:
/mtd_rwarea/network_opt # mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/sam type tmpfs (rw)
none on /dtv type tmpfs (rw)
none on /dsm type tmpfs (rw)
none on /core type tmpfs (rw)
none on /tmp type tmpfs (rw)
/dev/stl0/14 on /mtd_rwarea type rfs (rw,codepage=utf8,vfat,fcache(blks)=128)
/dev/stl0/19 on /mtd_rocommon type squashfs (ro)
/dev/stl0/15 on /mtd_exe type rfs (ro,codepage=cp949,vfat,fcache(blks)=128)
/dev/stl0/16 on /mtd_appdata type squashfs (ro)
/dev/stl0/13 on /mtd_contents type rfs (rw,codepage=utf8,vfat,fcache(blks)=128)
/dev/stl0/20 on /mtd_swu type rfs (rw,codepage=cp949,vfat,fcache(blks)=128)
/dev/stl0/21 on /mtd_rwcommon type rfs (rw,codepage=utf8,vfat,fcache(blks)=128)
what i've to do?

Re: How can I dump all my tv memory to pc or to usb with putty?

Posted: Mon May 30, 2011 7:07 pm
by tempinbox
zibri2 wrote:execute my script (it is a single line.. not TWO)

then it should produce a file named backup.sh

try

cat backup.sh
I try and i get this error:

/mtd_rwarea/network_opt # echo "#!/bin/sh" >backup.sh;mount|grep "(rw"|grep "utf
8"|cut -d " " -f1,3,4|sed -e "s. . of=/dtv/usb/sda1."|sed -e "s/ type/.img bs=10
24K/"|sed -e "s./dev.dd if=/dev." >>backup.sh; chmod 755 backup.sh
/mtd_rwarea/network_opt # cat backup.sh
#!/bin/sh
dd if=/dev/stl0/14 of=/dtv/usb/sda1/mtd_rwarea.img bs=1024K
dd if=/dev/stl0/13 of=/dtv/usb/sda1/mtd_contents.img bs=1024K
dd if=/dev/stl0/21 of=/dtv/usb/sda1/mtd_rwcommon.img bs=1024K
dd if=/dev/sda of=/dtv/usb/sda1/dtv/usb/sda.img bs=1024K
/mtd_rwarea/network_opt # ./ backup.sh
/dtv/network_opt/sh: ./: Permission denied
/mtd_rwarea/network_opt # ./backup.sh
./backup.sh: line 2: dd: not found
./backup.sh: line 3: dd: not found
./backup.sh: line 4: dd: not found
./backup.sh: line 5: dd: not found

Re: How can I dump all my tv memory to pc or to usb with putty?

Posted: Mon May 30, 2011 8:42 pm
by tempinbox
zibri2 wrote:There is a line too much..

The script should be:


#!/bin/sh
dd if=/dev/stl0/14 of=/dtv/usb/sda1/mtd_rwarea.img bs=1024K
dd if=/dev/stl0/13 of=/dtv/usb/sda1/mtd_contents.img bs=1024K
dd if=/dev/stl0/21 of=/dtv/usb/sda1/mtd_rwcommon.img bs=1024K


But you should have "dd" in your busybox!
That is the script the i obtain after to execute the command
echo "#!/bin/sh" >backup.sh;mount|grep "(rw"|grep "utf
8"|cut -d " " -f1,3,4|sed -e "s. . of=/dtv/usb/sda1."|sed -e "s/ type/.img bs=10
24K/"|sed -e "s./dev.dd if=/dev." >>backup.sh; chmod 755 backup.sh

How to fix that? how add "dd" to busybox"? please help me.
Thanks ina dvance and thanks for your reply