I have Samsung Fascinate running ICS. It's very easy to break the OS, such as: by improperly booting into recovery. I want to make a backup, which I could flash using ODIN.
Does anyone know what exactly partitions do I need to backup and what files do I need to put into ODIN tar, in order to get a correctly booting phone immediately after ODIN-flashing?
Here's my mounts:
root@android:/ # mount
rootfs / rootfs ro,noatime 0 0
tmpfs /dev tmpfs rw,nosuid,noatime,mode=0755 0 0
devpts /dev/pts devpts rw,noatime,mode=600 0 0
proc /proc proc rw,noatime 0 0
sysfs /sys sysfs rw,noatime 0 0
none /acct cgroup rw,noatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,noatime,mode=0755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,noatime,mode=0755,gid=1000 0 0
none /dev/cpuctl cgroup rw,noatime,cpu 0 0
/dev/block/mtdblock2 /system yaffs2 ro,noatime 0 0
/dev/block/mtdblock3 /cache yaffs2 rw,nosuid,nodev,noatime 0 0
/dev/block/mmcblk0p1 /data ext4 rw,nosuid,nodev,noatime,nodiratime,barrier=1,data=writeback,noauto_da_alloc 0 0
/dev/block/mtdblock4 /datadata yaffs2 rw,noatime 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,noatime 0 0
/dev/block/vold/179:9 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,noatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:9 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,noatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,noatime,size=0,mode=000,uid=0,gid=0 0 0
and all block devices:
root@android:/ # ls -l /dev/block
brw------- root root 7, 0 2012-05-11 11:33 loop0
brw------- root root 7, 1 2012-05-11 11:33 loop1
brw------- root root 7, 2 2012-05-11 11:33 loop2
brw------- root root 7, 3 2012-05-11 11:33 loop3
brw------- root root 7, 4 2012-05-11 11:33 loop4
brw------- root root 7, 5 2012-05-11 11:33 loop5
brw------- root root 7, 6 2012-05-11 11:33 loop6
brw------- root root 7, 7 2012-05-11 11:33 loop7
brw------- root root 179, 0 2012-05-11 11:33 mmcblk0
brw------- root root 179, 1 2012-05-11 11:33 mmcblk0p1
brw------- root root 179, 2 2012-05-11 11:33 mmcblk0p2
brw------- root root 179, 3 2012-05-11 11:33 mmcblk0p3
brw------- root root 179, 8 2012-05-11 11:33 mmcblk1
brw------- root root 179, 9 2012-05-11 11:33 mmcblk1p1
brw------- root root 31, 0 2012-05-11 11:33 mtdblock0
brw------- root root 31, 1 2012-05-11 11:33 mtdblock1
brw------- root root 31, 2 2012-05-11 11:33 mtdblock2
brw------- root root 31, 3 2012-05-11 11:33 mtdblock3
brw------- root root 31, 4 2012-05-11 11:33 mtdblock4
brw------- root root 31, 5 2012-05-11 11:33 mtdblock5
drwxr-xr-x root root 2012-05-11 11:33 platform
brw------- root root 1, 0 2012-05-11 11:33 ram0
brw------- root root 1, 1 2012-05-11 11:33 ram1
brw------- root root 1, 10 2012-05-11 11:33 ram10
brw------- root root 1, 11 2012-05-11 11:33 ram11
brw------- root root 1, 12 2012-05-11 11:33 ram12
brw------- root root 1, 13 2012-05-11 11:33 ram13
brw------- root root 1, 14 2012-05-11 11:33 ram14
brw------- root root 1, 15 2012-05-11 11:33 ram15
brw------- root root 1, 2 2012-05-11 11:33 ram2
brw------- root root 1, 3 2012-05-11 11:33 ram3
brw------- root root 1, 4 2012-05-11 11:33 ram4
brw------- root root 1, 5 2012-05-11 11:33 ram5
brw------- root root 1, 6 2012-05-11 11:33 ram6
brw------- root root 1, 7 2012-05-11 11:33 ram7
brw------- root root 1, 8 2012-05-11 11:33 ram8
brw------- root root 1, 9 2012-05-11 11:33 ram9
drwxr-xr-x root root 2012-05-11 11:33 vold
EDIT: I am aware of following methodology, I could use to restore phone:
- ODIN froyo or gingerbread image,
- ODIN clockworkmod with ICS fix,
- Install firmware from zip file
- Restore nandroid backup
My question is specifically, how do I avoid having to go through all of this, and just make ODIN-flashable restore.