[Samsung Gear S3] adfree:
Doing some exercises to dump partitons and/or whole memory via WiFi...

But have tiny problem... :o

https://xdaforums.com/smartwatch/galaxy-watch/rooting-samsung-galaxy-watch-active-t4003247

I can only test my SM-R760... no idea if only my problem... :o

Some Background Info... :D

SM-R760 with rooted ESF2 Tizen 4 Firmware...

sh-3.2# cat /proc/partitions
major minor #blocks name

7 0 384 loop0
7 1 34112 loop1
254 0 287772 zram0
179 0 3817472 mmcblk0
179 1 32768 mmcblk0p1
179 2 8192 mmcblk0p2
179 3 2048 mmcblk0p3
179 4 20480 mmcblk0p4
179 5 8192 mmcblk0p5
179 6 8192 mmcblk0p6
179 7 3072 mmcblk0p7
259 0 16384 mmcblk0p8
259 1 16384 mmcblk0p9
259 2 16384 mmcblk0p10
259 3 194560 mmcblk0p11
259 4 161792 mmcblk0p12
259 5 1985536 mmcblk0p13
259 6 1337344 mmcblk0p14
259 7 256 mmcblk0p15
179 24 512 mmcblk0rpmb
179 16 4096 mmcblk0boot1
179 8 4096 mmcblk0boot0

sh-3.2# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 1.3G 1.1G 200M 84% /
devtmpfs 340M 0 340M 0% /dev
/dev/mmcblk0p14 1.3G 1.1G 200M 84% /
/dev/mmcblk0p12 139M 73M 63M 54% /opt
/dev/mmcblk0p10 14M 253K 13M 2% /usr/lib/modules
tmpfs 352M 24K 352M 1% /dev/shm
tmpfs 352M 2.6M 349M 1% /run
tmpfs 352M 0 352M 0% /sys/fs/cgroup
tmpfs 352M 60K 352M 1% /tmp
/dev/loop0 384K 384K 0 100% /opt/share/zoneinfo
/dev/loop1 34M 34M 0 100% /usr/share/locale
/dev/mmcblk0p11 183M 101M 80M 56% /opt/system/csc
/dev/mmcblk0p2 6.8M 1.2M 5.0M 20% /csa
/dev/mmcblk0p13 1.9G 105M 1.8G 6% /opt/usr
tmpfs 71M 80K 71M 1% /run/user/5001
tmpfs 71M 0 71M 0% /run/user_ext/5001
/dev/mmcblk0p13 1.9G 105M 1.8G 6% /opt/usr/media
/dev/mmcblk0p13 1.9G 105M 1.8G 6% /opt/usr/apps
/dev/mmcblk0p13 1.9G 105M 1.8G 6% /opt/usr/home/owner/media
/dev/mmcblk0p13 1.9G 105M 1.8G 6% /opt/usr/media

sh-3.2# ls -l /dev/disk/by-partlabel
total 0
lrwxrwxrwx 1 root root 15 Feb 15 00:45 boot -> ../../mmcblk0p8
lrwxrwxrwx 1 root root 15 Feb 15 00:45 cm -> ../../mmcblk0p7
lrwxrwxrwx 1 root root 15 Feb 15 00:45 cpnvcore -> ../../mmcblk0p3
lrwxrwxrwx 1 root root 15 Feb 15 00:45 csa -> ../../mmcblk0p2
lrwxrwxrwx 1 root root 16 Feb 15 00:45 csc -> ../../mmcblk0p11
lrwxrwxrwx 1 root root 16 Feb 15 00:45 module -> ../../mmcblk0p10
lrwxrwxrwx 1 root root 15 Feb 15 00:45 param -> ../../mmcblk0p6
lrwxrwxrwx 1 root root 15 Feb 15 00:45 ramdisk1 -> ../../mmcblk0p5
lrwxrwxrwx 1 root root 15 Feb 15 00:45 ramdisk2 -> ../../mmcblk0p4
lrwxrwxrwx 1 root root 15 Feb 15 00:45 recovery -> ../../mmcblk0p9
lrwxrwxrwx 1 root root 16 Feb 15 00:45 rootfs -> ../../mmcblk0p14
lrwxrwxrwx 1 root root 16 Feb 15 00:45 steady -> ../../mmcblk0p15
lrwxrwxrwx 1 root root 16 Feb 15 00:45 system-data -> ../../mmcblk0p12
lrwxrwxrwx 1 root root 15 Feb 15 00:45 tup -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 16 Feb 15 00:45 user -> ../../mmcblk0p13

sh-3.2# ls -l /dev/disk/by-label
total 0
lrwxrwxrwx 1 root root 16 Feb 15 00:45 modules -> ../../mmcblk0p10
lrwxrwxrwx 1 root root 15 Feb 15 00:45 ramdisk -> ../../mmcblk0p5
lrwxrwxrwx 1 root root 15 Feb 15 00:45 ramdisk-recovery -> ../../mmcblk0p4
lrwxrwxrwx 1 root root 16 Feb 15 00:45 tizen-csc -> ../../mmcblk0p11
lrwxrwxrwx 1 root root 16 Feb 15 00:45 tizen-rootfs -> ../../mmcblk0p14
lrwxrwxrwx 1 root root 16 Feb 15 00:45 tizen-system-da -> ../../mmcblk0p12
lrwxrwxrwx 1 root root 16 Feb 15 00:45 tizen-user -> ../../mmcblk0p13

sh-3.2# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 384K 1 loop /opt/share/zoneinfo
loop1 7:1 0 33.3M 1 loop /usr/share/locale
mmcblk0 179:0 0 3.7G 0 disk
|-mmcblk0p1 179:1 0 32M 0 part
|-mmcblk0p2 179:2 0 8M 0 part /csa
|-mmcblk0p3 179:3 0 2M 0 part
|-mmcblk0p4 179:4 0 20M 0 part
|-mmcblk0p5 179:5 0 8M 0 part
|-mmcblk0p6 179:6 0 8M 0 part
|-mmcblk0p7 179:7 0 3M 0 part
|-mmcblk0p8 259:0 0 16M 0 part
|-mmcblk0p9 259:1 0 16M 0 part
|-mmcblk0p10 259:2 0 16M 0 part /usr/lib/modules
|-mmcblk0p11 259:3 0 190M 0 part /opt/system/csc
|-mmcblk0p12 259:4 0 158M 0 part /opt
|-mmcblk0p13 259:5 0 1.9G 0 part /opt/usr
|-mmcblk0p14 259:6 0 1.3G 0 part /
`-mmcblk0p15 259:7 0 256K 0 part
mmcblk0boot0 179:8 0 4M 1 disk
mmcblk0boot1 179:16 0 4M 1 disk
mmcblk0rpmb 179:24 0 512K 0 disk
zram0 254:0 0 281M 0 disk [SWAP]

With these infos I can create dump Commands with dd or cat or...

dd if=/dev/mmcblk0boot0 of=/opt/usr/media/bootloader0.bin
dd if=/dev/mmcblk0boot1 of=/opt/usr/media/bootloader1.bin
dd if=/dev/mmcblk0rpmb of=/opt/usr/media/rpmb.bin

dd if=/dev/mmcblk0p1 of=/opt/usr/media/tup.bin
dd if=/dev/mmcblk0p2 of=/opt/usr/media/csa.bin
dd if=/dev/mmcblk0p3 of=/opt/usr/media/cpnvcore.bin
dd if=/dev/mmcblk0p4 of=/opt/usr/media/ramdisk2.bin
dd if=/dev/mmcblk0p5 of=/opt/usr/media/ramdisk1.bin
dd if=/dev/mmcblk0p6 of=/opt/usr/media/param.bin
dd if=/dev/mmcblk0p7 of=/opt/usr/media/cm.bin
dd if=/dev/mmcblk0p8 of=/opt/usr/media/boot.bin
dd if=/dev/mmcblk0p9 of=/opt/usr/media/recovery.bin
dd if=/dev/mmcblk0p10 of=/opt/usr/media/module.bin
dd if=/dev/mmcblk0p11 of=/opt/usr/media/csc.bin
dd if=/dev/mmcblk0p12 of=/opt/usr/media/system-data.bin
[COLOR="Red"][B]dd if=/dev/mmcblk0p13 of=/opt/usr/media/user.bin
dd if=/dev/mmcblk0p14 of=/opt/usr/media/rootfs.bin[/B][/COLOR]
dd if=/dev/mmcblk0p15 of=/opt/usr/media/steady.bin

I am writing to usr partition p13... it is limited in size...

Whole eMMC is 4 GB...

sh-3.2# fdisk -l
?[1mDisk /dev/loop0: 33.3 MiB, 34930688 bytes, 68224 sectors
?[0mUnits: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

?[1mDisk /dev/loop1: 384 KiB, 393216 bytes, 768 sectors
?[0mUnits: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

?[1mDisk /dev/zram0: 281 MiB, 294678528 bytes, 71943 sectors
?[0mUnits: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

?[1mDisk /dev/mmcblk0: 3.7 GiB, 3909091328 bytes, 7634944 sectors
?[0mUnits: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 52444E41-494F-2044-4D4D-43204449534B

?[1mDevice?[0m ?[1m Start?[0m ?[1m End?[0m ?[1mSectors?[0m ?[1m Size?[0m ?[1mType?[0m
/dev/mmcblk0p1 8192 73727 65536 32M Microsoft basic data
/dev/mmcblk0p2 73728 90111 16384 8M Microsoft basic data
/dev/mmcblk0p3 90112 94207 4096 2M Microsoft basic data
/dev/mmcblk0p4 94208 135167 40960 20M Microsoft basic data
/dev/mmcblk0p5 135168 151551 16384 8M Microsoft basic data
/dev/mmcblk0p6 151552 167935 16384 8M Microsoft basic data
/dev/mmcblk0p7 167936 174079 6144 3M Microsoft basic data
/dev/mmcblk0p8 174080 206847 32768 16M Microsoft basic data
/dev/mmcblk0p9 206848 239615 32768 16M Microsoft basic data
/dev/mmcblk0p10 239616 272383 32768 16M Microsoft basic data
/dev/mmcblk0p11 272384 661503 389120 190M Microsoft basic data
/dev/mmcblk0p12 661504 985087 323584 158M Microsoft basic data
/dev/mmcblk0p13 985088 4956159 3971072 1.9G Microsoft basic data
/dev/mmcblk0p14 4956160 7630847 2674688 1.3G Microsoft basic data
/dev/mmcblk0p15 7630848 7631359 512 256K Microsoft basic data

?[1mDisk /dev/mmcblk0boot1: 4 MiB, 4194304 bytes, 8192 sectors
?[0mUnits: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

?[1mDisk /dev/mmcblk0boot0: 4 MiB, 4194304 bytes, 8192 sectors
?[0mUnits: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

It is possible to direct dump/write to PC... with SDB.

For instance:

sdb shell dd if=/dev/mmcblk0boot1>boot1.bin

this partition only contains 00 is empty...

My dumps via SDB contains 0D0D as additional 2 Bytes... spreed over the dumped file... :crying:

No idea why...

Limitation of SDB or TCP or Tizen 4 or... :eek:

Will try to find out... :silly:

Best Regards