[Samsung Galaxy Nexus] jago25_98:
What's the partition table layout for the i9250? Is it the same across different ROMS generally? I'm on Cyanogenmod11; 4.4.4 kitkat.

I accidently deleted more than I should of with factory wipe... I need to know the partition table layout to recovery data. Is it 512kb sectors or 4096kb? Cylinders? Heads?

Here's the rest of my investigations into this:

So far I'm using this guide:

http://www.df.lth.se/~jokke/androidfilerecovery/

Which references adb shell su -c "cat /dev/block/mmcblk0" | pv > mmcblk0.raw but running this from recovery (TWRP) results in a zero file. Running it from the system booted ends up with a ~16gb partition table that makes no sense to testdisk. Should I search for info on what the partition structure should be?

What should I be searching for for more info? Is a thread from July too old to bump:

http://xdaforums.com/show...1503595&page=7

Should I be approaching it from a linux point of view, plugging the phone in a dd if= / of= as if it's a USB drive?

TWRP has the option to mount... but on that page there is no button to click to actually mount the partitions. Maybe I should search for help with TWRP recovery. Not sure where to start.

The linux dd command doesn't seem to be possible anymore as the phone doesn't seem to mount as a drive anymore - it isn't listed by sudo fdisk -l

Keywords for searching seem to be mmcblk0, maybe EFI GPT, testdisk? The guide is quite old... should I even be using testdisk these days? build is CM11, maguro 4.4.4 KTU84Q, 3rd aug 2014, kernel 3.0.101

cat /cache/recovery/last_log (summary)

I:Settings storage is '/data/media/0'
I:Processing '/misc'
I:Processing '/boot'
I:Processing '/recovery'
I:Processing '/sbl'
I:Processing '/xloader'
I:Processing '/radio'
I:Processing '/efs'
I:Processing '/usb-otg'
I:Created '/usb-otg' folder.
Updating partition details...
I:Data backup size is 325MB, size: 13648MB, used: 326MB, free: 13158MB, in data/media: 0MB.
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
I:Unmounting main partitions...

Partition Logs:
/system | /dev/block/mmcblk0p10 | Size: 643MB Used: 495MB Free: 147MB Backup Size: 495MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent
Primary_Block_Device: /dev/block/mmcblk0p10
Display_Name: System
Storage_Name: System
Backup_Path: /system
Backup_Name: system
Backup_Display_Name: System
Storage_Path: /system
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files

/cache | /dev/block/mmcblk0p11 | Size: 425MB Used: 10MB Free: 414MB Backup Size: 10MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent
Primary_Block_Device: /dev/block/mmcblk0p11
Display_Name: Cache
Storage_Name: Cache
Backup_Path: /cache
Backup_Name: cache
Backup_Display_Name: Cache
Storage_Path: /cache
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files

/data | /dev/block/mmcblk0p12 | Size: 13648MB Used: 326MB Free: 13158MB Backup Size: 325MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Can_Be_Encrypted Has_Data_Media Can_Encrypt_Backup Use_Userdata_Encryption Is_Storage Is_Settings_Storage
Symlink_Path: /data/media/0
Symlink_Mount_Point: /sdcard
Primary_Block_Device: /dev/block/mmcblk0p12
Display_Name: Data
Storage_Name: Internal Storage
Backup_Path: /data
Backup_Name: data
Backup_Display_Name: Data
Storage_Path: /data/media/0
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files

/misc | /dev/block/mmcblk0p5 | Size: 4MB
Flags: IsPresent
Primary_Block_Device: /dev/block/mmcblk0p5
Display_Name: misc
Storage_Name: misc
Backup_Path: /misc
Backup_Name: misc
Backup_Display_Name: misc
Storage_Path: /misc
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/boot | /dev/block/mmcblk0p7 | Size: 8MB
Flags: Can_Be_Backed_Up IsPresent
Primary_Block_Device: /dev/block/mmcblk0p7
Display_Name: Boot
Storage_Name: boot
Backup_Path: /boot
Backup_Name: boot
Backup_Display_Name: Boot
Storage_Path: /boot
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/recovery | /dev/block/mmcblk0p8 | Size: 11MB
Flags: Can_Be_Backed_Up IsPresent
Primary_Block_Device: /dev/block/mmcblk0p8
Display_Name: Recovery
Storage_Name: recovery
Backup_Path: /recovery
Backup_Name: recovery
Backup_Display_Name: Recovery
Storage_Path: /recovery
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/sbl | /dev/block/mmcblk0p2 | Size: 3MB
Flags: IsPresent
Primary_Block_Device: /dev/block/mmcblk0p2
Display_Name: sbl
Storage_Name: sbl
Backup_Path: /sbl
Backup_Name: sbl
Backup_Display_Name: sbl
Storage_Path: /sbl
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/xloader | /dev/block/mmcblk0p1 | Size: 0MB
Flags: IsPresent
Primary_Block_Device: /dev/block/mmcblk0p1
Display_Name: xloader
Storage_Name: xloader
Backup_Path: /xloader
Backup_Name: xloader
Backup_Display_Name: xloader
Storage_Path: /xloader
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/radio | /dev/block/mmcblk0p9 | Size: 16MB
Flags: IsPresent
Primary_Block_Device: /dev/block/mmcblk0p9
Display_Name: radio
Storage_Name: radio
Backup_Path: /radio
Backup_Name: radio
Backup_Display_Name: radio
Storage_Path: /radio
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/efs | /dev/block/mmcblk0p3 | Size: 20MB
Flags: Can_Be_Wiped Can_Be_Backed_Up IsPresent
Primary_Block_Device: /dev/block/mmcblk0p3
Display_Name: EFS
Storage_Name: EFS
Backup_Path: /efs
Backup_Name: efs
Backup_Display_Name: EFS
Storage_Path: /efs
Current_File_System: emmc
Fstab_File_System: emmc
Backup_Method: dd

/usb-otg | | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB
Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Storage
Primary_Block_Device: /dev/block/sda1
Alternate_Block_Device: /dev/block/sda
Display_Name: USB OTG
Storage_Name: USB OTG
Backup_Path: /usb-otg
Backup_Name: usb-otg
Backup_Display_Name: USB OTG
Storage_Path: /usb-otg
Current_File_System: vfat
Fstab_File_System: vfat
Backup_Method: files

TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk again-mmcblk0.raw - 15 GB / 14 GiB
CHS 1917 255 63 - sector size=512

>[ Analyse ] Analyse current partition structure and search for lost partitions
[ Advanced ] Filesystem Utils
[ Geometry ] Change disk geometry
[ Options ] Modify options
[ Quit ] Return to disk selection

Note: Correct disk geometry is required for a successful recovery. 'Analyse'
process may give some warnings if it thinks the logical geometry is mismatched.

I've tried a few apps to recover too. DiskDigger found a few files... I got excited... but when it wrote out the files they didn't appear on the drive...

it's a bunch easier when you can eject the sdcard that's for sure!