[Samsung Galaxy Nexus] britoso:
Note that this is on a Nexus 5 (hammerhead) 32GB

Formatted /data in TWRP after I had a bootloop and TWRP was not able to wipe the data and cache partitions (old buggy version:rolleyes:)

Did not know it would delete my sdcard as well :(

Anyway trying this to recover it.

Partitions:

root@hammerhead:/ # find /dev/block/platform/ -name 'mmc*' -exec fdisk -l {} \;
me 'mmc*' -exec fdisk -l {} \; <

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p29: 0 MB, 5632 bytes
4 heads, 16 sectors/track, 0 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p29 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p28: 29.2 GB, 29236373504 bytes
4 heads, 16 sectors/track, 892223 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p28 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p27: 734 MB, 734003200 bytes
4 heads, 16 sectors/track, 22400 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p27 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p26: 31 MB, 31457280 bytes
4 heads, 16 sectors/track, 960 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p26 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p25: 1073 MB, 1073741824 bytes
4 heads, 16 sectors/track, 32768 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p25 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p24: 0 MB, 524288 bytes
4 heads, 16 sectors/track, 16 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p24 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p23: 0 MB, 524288 bytes
4 heads, 16 sectors/track, 16 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p23 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p22: 0 MB, 524288 bytes
4 heads, 16 sectors/track, 16 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p22 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p21: 3 MB, 3145728 bytes
4 heads, 16 sectors/track, 96 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p21 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p20: 23 MB, 23068672 bytes
4 heads, 16 sectors/track, 704 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p20 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p19: 23 MB, 23068672 bytes
4 heads, 16 sectors/track, 704 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p19 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p18: 23 MB, 23068672 bytes
4 heads, 16 sectors/track, 704 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p18 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p17: 3 MB, 3145728 bytes
4 heads, 16 sectors/track, 96 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p17 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p16: 16 MB, 16777216 bytes
4 heads, 16 sectors/track, 512 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p16 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p15: 16 MB, 16777216 bytes
4 heads, 16 sectors/track, 512 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p15 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p14: 0 MB, 524288 bytes
4 heads, 16 sectors/track, 16 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p14 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p13: 3 MB, 3145728 bytes
4 heads, 16 sectors/track, 96 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p13 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p12: 3 MB, 3145728 bytes
4 heads, 16 sectors/track, 96 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p12 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p11: 0 MB, 524288 bytes
4 heads, 16 sectors/track, 16 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p11 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p10: 0 MB, 524288 bytes
4 heads, 16 sectors/track, 16 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p10 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0rpmb: 4 MB, 4194304 bytes
4 heads, 16 sectors/track, 128 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0rpmb doesn't contain a valid partitio n table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p9: 0 MB, 524288 bytes
4 heads, 16 sectors/track, 16 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p9 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p8: 1 MB, 1048576 bytes
4 heads, 16 sectors/track, 32 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p8 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p7: 2 MB, 2097152 bytes
4 heads, 16 sectors/track, 64 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p7 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p6: 0 MB, 524288 bytes
4 heads, 16 sectors/track, 16 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p6 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p5: 0 MB, 524288 bytes
4 heads, 16 sectors/track, 16 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p5 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p4: 0 MB, 524288 bytes
4 heads, 16 sectors/track, 16 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p4 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p3: 0 MB, 524288 bytes
4 heads, 16 sectors/track, 16 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p3 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p2: 1 MB, 1048576 bytes
4 heads, 16 sectors/track, 32 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p2 doesn't contain a valid partition table

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p1: 67 MB, 67108864 bytes
4 heads, 16 sectors/track, 2048 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Device Boot Start End Bloc ks Id System
/dev/block/platform/msm_sdcc.1/mmcblk0p1p1 ? 12158374 29994462 5707548 15+ 72 Unknown
Partition 1 does not end on cylinder boundary
/dev/block/platform/msm_sdcc.1/mmcblk0p1p2 ? 2635774 32886216 9680141 20 65 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/platform/msm_sdcc.1/mmcblk0p1p3 ? 29216898 59467339 9680140 96 79 Unknown
Partition 3 does not end on cylinder boundary
/dev/block/platform/msm_sdcc.1/mmcblk0p1p4 ? 1 56831664 18186132 48 d Unknown
Partition 4 does not end on cylinder boundary

Partition table entries are not in disk order

Disk /dev/block/platform/msm_sdcc.1/mmcblk0: 31.2 GB, 31268536320 bytes
256 heads, 63 sectors/track, 3786 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes

Device Boot Start End Blocks Id System
/dev/block/platform/msm_sdcc.1/mmcblk0p1 1 266306 2147483647 + ee EFI GPT

I am unable to copy the partition to my PC via NC, I get a 0 byte file

user@mypc ~/nexus
$ nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p12.raw
0 B 0:00:00 [ 0 B/s] [<=> ]

These are the partitions I tried to get back the sdcard:

/dev/block/platform/msm_sdcc.1/mmcblk0p28 (29GB)

/dev/block/platform/msm_sdcc.1/by-name/userdata

Update: Fixed.

Solution: Install NC while installing cygwin :cowboy:

The windows compiled NC.exe was detected as a false positive hacktool by symantec

Recuva Results:

27.1GB

Found 7261 files in 604 seconds

unfortunately all the files are in one big folder and most of the filenames are missing/corrupt