Dear gents,

I have been a visitor for a long time and this is my first post in this forum.

I would like your help in order to make a ROM backup of my Android phone Cubot H1 with dd and relevant tools.
This is going to be a learning exercise for me and by the end I am hoping to make it into a guide for other users who want to make a backup of their chinese or noname phones.

To establish a basis I have the following:

  1. MediaTek MT6735P based phone.
  2. Android Version 5.1
  3. Root
  4. BusyBox ver1.24.1
  5. SSH access over Wifi with SSHDroid


So the first job is to identify what needs to be backed up. Recovery and Boot images are on the top of the list of priorities since I would like to recover from any problems that may arise.
But in the meantime I would like to identify my partitions and file-system.
I only know about fstab and df in a linux system so I will try to use those in order to get information.

So I am looking for fstab:
Code:
find -iname "*fstab*"
This returned a couple of files:
Code:
./system/etc/recovery.fstab
./fstab.mt6735
Looking into the "/system/etc/recovery.fstab" file i get the following:
Code:
# mount point	fstype		device			[device2]

/boot		emmc		boot
/cache		ext4		/dev/block/mmcblk0p4
/data		ext4		/dev/block/mmcblk0p5
/misc		emmc		misc
/recovery	emmc		recovery
/sdcard		vfat		/dev/block/mmcblk0p6
/system		ext4		/dev/block/mmcblk0p3
Looking into the "/fstab.mt6735" file i get the following:
Code:
# Android fstab file.
#<src>           <mnt_point>         <type>    <mnt_flags and options>                 <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK

/dev/block/platform/mtk-msdc.0/by-name/system     /system      ext4   ro						         wait
/dev/block/platform/mtk-msdc.0/by-name/userdata   /data        ext4   noatime,nosuid,nodev,noauto_da_alloc,discard               wait,check,resize,encryptable=/dev/block/platform/mtk-msdc.0/by-name/metadata
/dev/block/platform/mtk-msdc.0/by-name/cache      /cache       ext4   noatime,nosuid,nodev,noauto_da_alloc,discard               wait,check
/dev/block/platform/mtk-msdc.0/by-name/protect1   /protect_f   ext4   noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc   wait,check,autoformat
/dev/block/platform/mtk-msdc.0/by-name/protect2   /protect_s   ext4   noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc   wait,check,autoformat
/dev/block/platform/mtk-msdc.0/by-name/nvdata      /nvdata             ext4      noatime,nosuid,nodev,noauto_da_alloc,discard        wait,check,autoformat

#please add cip or persist on project fstab
#/dev/block/platform/mtk-msdc.0/by-name/persist    /persist     ext4   noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc   wait,check,autoformat
#/dev/block/platform/mtk-msdc.0/by-name/custom     /custom      ext4   ro                                                         wait
/devices/mtk-msdc.0/11230000.MSDC0   auto      vfat      defaults        voldmanaged=sdcard0:emmc@intsd,noemulatedsd
/devices/mtk-msdc.0/11240000.MSDC1  auto      vfat      defaults        voldmanaged=sdcard1:auto
/devices/platform/mt_usb                auto      vfat      defaults        voldmanaged=usbotg:auto

Using df (since df -h is not recognised):
Code:
df
Returns:
Code:
Filesystem               Size     Used     Free   Blksize
/dev                   970.1M    72.0K   970.0M   4096
/sys/fs/cgroup         970.1M    12.0K   970.1M   4096
/mnt/asec              970.1M     0.0K   970.1M   4096
/mnt/obb               970.1M     0.0K   970.1M   4096
/mnt/media_rw          970.1M     0.0K   970.1M   4096
/mnt/media_rw/sdcard0    29.3G    13.6G    15.7G   16384
/storage/usbotg        970.1M     0.0K   970.1M   4096
/system                  1.5G   979.7M   508.2M   4096
/data                   12.3G     2.7G     9.6G   4096
/cache                 387.4M     2.8M   384.7M   4096
/protect_f               5.8M    60.0K     5.8M   4096
/protect_s               5.8M    56.0K     5.8M   4096
/nvdata                 27.5M     2.2M    25.3M   4096
/mnt/cd-rom              1.2M     1.2M     0.0K   2048
/storage/sdcard1        12.2G     2.7G     9.5G   4096
/mnt/secure/asec        29.3G    13.6G    15.7G   16384
/storage/sdcard0        29.3G    13.6G    15.7G   16384
By now I am a bit confused as to where the recovery partition is saved, but the fstab file pointed me to a directory which looks promising:
Code:
# ls -la /dev/block/platform/mtk-msdc.0/by-name/                                                                                                                   
drwxr-xr-x    2 root     root           500 Jan  1  2015 .
drwxr-xr-x    4 root     root           660 Jan  1  2015 ..
lrwxrwxrwx    1 root     root            20 Jan  1  2015 boot -> /dev/block/mmcblk0p7
lrwxrwxrwx    1 root     root            21 Jan  1  2015 cache -> /dev/block/mmcblk0p21
lrwxrwxrwx    1 root     root            21 Jan  1  2015 expdb -> /dev/block/mmcblk0p10
lrwxrwxrwx    1 root     root            21 Jan  1  2015 flashinfo -> /dev/block/mmcblk0p23
lrwxrwxrwx    1 root     root            21 Jan  1  2015 frp -> /dev/block/mmcblk0p17
lrwxrwxrwx    1 root     root            21 Jan  1  2015 keystore -> /dev/block/mmcblk0p14
lrwxrwxrwx    1 root     root            20 Jan  1  2015 lk -> /dev/block/mmcblk0p5
lrwxrwxrwx    1 root     root            20 Jan  1  2015 logo -> /dev/block/mmcblk0p9
lrwxrwxrwx    1 root     root            21 Jan  1  2015 metadata -> /dev/block/mmcblk0p19
lrwxrwxrwx    1 root     root            21 Jan  1  2015 nvdata -> /dev/block/mmcblk0p18
lrwxrwxrwx    1 root     root            20 Jan  1  2015 nvram -> /dev/block/mmcblk0p2
lrwxrwxrwx    1 root     root            21 Jan  1  2015 oemkeystore -> /dev/block/mmcblk0p12
lrwxrwxrwx    1 root     root            20 Jan  1  2015 para -> /dev/block/mmcblk0p6
lrwxrwxrwx    1 root     root            20 Jan  1  2015 proinfo -> /dev/block/mmcblk0p1
lrwxrwxrwx    1 root     root            20 Jan  1  2015 protect1 -> /dev/block/mmcblk0p3
lrwxrwxrwx    1 root     root            20 Jan  1  2015 protect2 -> /dev/block/mmcblk0p4
lrwxrwxrwx    1 root     root            20 Jan  1  2015 recovery -> /dev/block/mmcblk0p8
lrwxrwxrwx    1 root     root            21 Jan  1  2015 seccfg -> /dev/block/mmcblk0p11
lrwxrwxrwx    1 root     root            21 Jan  1  2015 secro -> /dev/block/mmcblk0p13
lrwxrwxrwx    1 root     root            21 Jan  1  2015 system -> /dev/block/mmcblk0p20
lrwxrwxrwx    1 root     root            21 Jan  1  2015 tee1 -> /dev/block/mmcblk0p15
lrwxrwxrwx    1 root     root            21 Jan  1  2015 tee2 -> /dev/block/mmcblk0p16
lrwxrwxrwx    1 root     root            21 Jan  1  2015 userdata -> /dev/block/mmcblk0p22
so now I can see that the boot partition and recovery partition are here:
Code:
lrwxrwxrwx    1 root     root            20 Jan  1  2015 boot -> /dev/block/mmcblk0p7
lrwxrwxrwx    1 root     root            20 Jan  1  2015 recovery -> /dev/block/mmcblk0p8
I want to backup those on my sdcard so I run:
Code:
# dd if=/dev/block/mmcblk0p7 of=/sdcard/ROM/boot.img
32768+0 records in
32768+0 records out
16777216 bytes (16.0MB) copied, 2.796447 seconds, 5.7MB/s
# dd if=/dev/block/mmcblk0p8 of=/sdcard/ROM/recovery.img                                                                                                     
32768+0 records in
32768+0 records out
16777216 bytes (16.0MB) copied, 3.019284 seconds, 5.3MB/s
So my question now is :
Are these images correct? If so why they have the same size? I would expect different sizes.
What else do I need to back up in order to make sure I could re-flash the whole ROM in case I have a problem?