View Single Post
Old 01-26-2012, 03:56 AM   #3
Thor
Member
Thor will become famous soon enoughThor will become famous soon enoughThor will become famous soon enoughThor will become famous soon enoughThor will become famous soon enoughThor will become famous soon enough
 
Posts: 23
Karma: 550
Join Date: Jan 2012
Device: Kobo Aura H2O
Hi!

Based on the informations I found here: PRS-T1 Android Market Working (thanks to @j0534ng31 and @uboot )I wrote a litte backup script:

Code:
# mount external sd card
mount -t auto /dev/mmcblk0p1 /mnt/sd/
#
# make a backup of boot-block and mbr
dd if=/dev/mmcblk2 of=/mnt/sd/boot.bin bs=32768 count=800
#
# make a backup of recovery partition
dd if=/dev/mmcblk2p1 of=/mnt/sd/mmcblk2p1_recovery.img
# make a backup of linux tree partition
dd if=/dev/mmcblk2p2 of=/mnt/sd/mmcblk2p2_linuxtree2.img
# make a backup of fonts partition
dd if=/dev/mmcblk2p5 of=/mnt/sd/mmcblk2p5_fonts.img
# make a backup of dictionary partition
dd if=/dev/mmcblk2p6 of=/mnt/sd/mmcblk2p6_dictionary.img
# make a backup of data partition
dd if=/dev/mmcblk2p9 of=/mnt/sd/mmcblk2p9_data.img
# make a backup of system partition
dd if=/dev/mmcblk2p10 of=/mnt/sd/mmcblk2p10_system.img
#
# make a backup of internal sdcard partition READER
dd if=/dev/mmcblk2p4 of=/mnt/sd/mmcblk2p4_READER.img
# make a backup of internal sdcard partition SETTING
dd if=/dev/mmcblk2p7 of=/mnt/sd/mmcblk2p7_SETTING.img
# make a backup of partition preload
dd if=/dev/mmcblk2p8 of=/mnt/sd/mmcblk2p8_preload.img
#
# make a backup of link2sd ext3 partition on extsd-card
dd if=/dev/mmcblk0p2 of=/mnt/sd/mmcblk0p2_link2sd.img

sync
cd /
umount /mnt/sd
reboot
So you first must enter recovery mode. I made this with the app "@Test Mode". Start the app and choose "Reboot (Recovery)" in the right corner.
The reader restarts in recovery mode.

Then you must connect your pc with the reader and make it accessible via infos you find here: https://www.mobileread.com/forums/sho...1&postcount=28

If you have contact via pc to your reader in recovery mode (I choose PuTTY to connect to the virtual com-port) you are able to copy and paste the above script into the console which make a backup of all relevant partitions to your external sd card (make shure that you have enough free space on it!) and reboots the device.

I hope this helps a little bit and I do not miss a relevant information to backup in the script.

cheers.
Thor is offline   Reply With Quote