So I have a i9505G that i have rooted
Since there is some difference in some of the phones i though i would post this
Although i have done all this i have not tried to restore this information. and i am only doing this so you can backup you current ROM.
First you will have to find the SD card on your phone
look for it by typing "mount" in the adb shell and look for vfat
most external sdcards are going to be vfat (unless you partition them like for apps2sd)
on my phone the removable card is located /storage/extSdCard
now for the dumping
In adb shell type
su
dd if=/dev/block/platform/msm_sdcc.1/by-name/system of=/storage/extSdCard/system.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/recovery of=/storage/extSdCard/recovery.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/param of=/storage/extSdCard/param.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/boot of=/storage/extSdCard/boot.img
The full dump into a folder called 43dump on the sdcard
if you want to dump all the files you can list them by
ls -l /dev/block/platform/msm_sdcc.1/by-name/
This list all the partitions and were they are located
I am not sure but this might work on other phones also
I saw this command while looking at TWRP dev for the recovery on the i9505G
"ls -l /dev/block/platform/msm_sdcc.1/by-name/"
and the dd commands were from "bmbm" on my post from "[HOWTO] Unlocking i9505G bootloader"
i put one and one together and i think this will work.
I am going to try to flash the recovery vi fastboot later to see if the file works, since it should be signed it should work. (fastboot didn't work but dd it back did)
BTW has anyone found a way to turn "secure boot - disable" on the i9505G.
If you have a different' partition table "ls -l /dev/block/platform/msm_sdcc.1/by-name/" then the one I have listed please post it i think there would be alot of dev that could use this info.
I dumped this info into a file on the sd card for reference
su
cd storage/extSdCard
mount >mount.txt
ls -l /dev/block/platform/msm_sdcc.1/by-name/>partition.txt
to flash back a image
dd if=/storage/extSdCard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
Since there is some difference in some of the phones i though i would post this
Although i have done all this i have not tried to restore this information. and i am only doing this so you can backup you current ROM.
First you will have to find the SD card on your phone
look for it by typing "mount" in the adb shell and look for vfat
most external sdcards are going to be vfat (unless you partition them like for apps2sd)
Code:
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/secure tmpfs rw,relatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 rw,nosuid,nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,nosuid,nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/apnhlos /firmware vfat ro,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/platform/msm_sdcc.1/by-name/mdm /firmware-mdm vfat ro,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=cp437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/block/platform/msm_sdcc.1/by-name/efs /efs ext4 rw,nosuid,nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,errors=panic,data=ordered 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
/data/media /mnt/shell/emulated sdcardfs rw,nosuid,nodev,relatime,uid=1023,gid=1023 0 0
/dev/block/vold/179:33 /storage/extSdCard vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1023,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
now for the dumping
In adb shell type
su
dd if=/dev/block/platform/msm_sdcc.1/by-name/system of=/storage/extSdCard/system.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/recovery of=/storage/extSdCard/recovery.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/param of=/storage/extSdCard/param.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/boot of=/storage/extSdCard/boot.img
The full dump into a folder called 43dump on the sdcard
Code:
dd if=/dev/block/platform/msm_sdcc.1/by-name/aboot of=/storage/extSdCard/43dump/aboot.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/apnhlos of=/storage/extSdCard/43dump/apnhlos.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/backup of=/storage/extSdCard/43dump/backup.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/boot of=/storage/extSdCard/43dump/boot.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/cache of=/storage/extSdCard/43dump/cache.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/efs of=/storage/extSdCard/43dump/efs.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/fota of=/storage/extSdCard/43dump/fota.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/fsg of=/storage/extSdCard/43dump/fsg.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/m9kefs1 of=/storage/extSdCard/43dump/m9kefs1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/m9kefs2 of=/storage/extSdCard/43dump/m9kefs2.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/m9kefs3 of=/storage/extSdCard/43dump/m9kefs3.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/mdm of=/storage/extSdCard/43dump/mdm.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/misc of=/storage/extSdCard/43dump/misc.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst1 of=/storage/extSdCard/43dump/modemst1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst2 of=/storage/extSdCard/43dump/modemst2.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/pad of=/storage/extSdCard/43dump/pad.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/param of=/storage/extSdCard/43dump/param.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/persdata of=/storage/extSdCard/43dump/persdata.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/persist of=/storage/extSdCard/43dump/persist.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/recovery of=/storage/extSdCard/43dump/recovery.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/rpm of=/storage/extSdCard/43dump/rpm.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/sbl1 of=/storage/extSdCard/43dump/sbl1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/sbl2 of=/storage/extSdCard/43dump/sbl2.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/sbl3 of=/storage/extSdCard/43dump/sbl3.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/ssd of=/storage/extSdCard/43dump/ssd.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/system of=/storage/extSdCard/43dump/system.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/tz of=/storage/extSdCard/43dump/tz.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of=/storage/extSdCard/43dump/userdata.img
if you want to dump all the files you can list them by
ls -l /dev/block/platform/msm_sdcc.1/by-name/
This list all the partitions and were they are located
Code:
lrwxrwxrwx root root 1970-01-05 00:06 aboot -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 1970-01-05 00:06 apnhlos -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 1970-01-05 00:06 backup -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 1970-01-05 00:06 boot -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 1970-01-05 00:06 cache -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 1970-01-05 00:06 efs -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 1970-01-05 00:06 fota -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 1970-01-05 00:06 fsg -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 1970-01-05 00:06 m9kefs1 -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 1970-01-05 00:06 m9kefs2 -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 1970-01-05 00:06 m9kefs3 -> /dev/block/mmcblk0p15
lrwxrwxrwx root root 1970-01-05 00:06 mdm -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 1970-01-05 00:06 misc -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 1970-01-05 00:06 modemst1 -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 1970-01-05 00:06 modemst2 -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 1970-01-05 00:06 pad -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 1970-01-05 00:06 param -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 1970-01-05 00:06 persdata -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 1970-01-05 00:06 persist -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 1970-01-05 00:06 recovery -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 1970-01-05 00:06 rpm -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 1970-01-05 00:06 sbl1 -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 1970-01-05 00:06 sbl2 -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 1970-01-05 00:06 sbl3 -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 1970-01-05 00:06 ssd -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 1970-01-05 00:06 system -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 1970-01-05 00:06 tz -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 1970-01-05 00:06 userdata -> /dev/block/mmcblk0p28
I am not sure but this might work on other phones also
I saw this command while looking at TWRP dev for the recovery on the i9505G
"ls -l /dev/block/platform/msm_sdcc.1/by-name/"
and the dd commands were from "bmbm" on my post from "[HOWTO] Unlocking i9505G bootloader"
i put one and one together and i think this will work.
I am going to try to flash the recovery vi fastboot later to see if the file works, since it should be signed it should work. (fastboot didn't work but dd it back did)
BTW has anyone found a way to turn "secure boot - disable" on the i9505G.
If you have a different' partition table "ls -l /dev/block/platform/msm_sdcc.1/by-name/" then the one I have listed please post it i think there would be alot of dev that could use this info.
I dumped this info into a file on the sd card for reference
su
cd storage/extSdCard
mount >mount.txt
ls -l /dev/block/platform/msm_sdcc.1/by-name/>partition.txt
to flash back a image
dd if=/storage/extSdCard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
Last edited: