[Hardware Hacking General] LNRawz:
P875h

Name: LG Optimus F5 (Brazil)

Device: l1e_OPEN_BR

Vendor: lge

Rom: LGE JB 4.1.2

cat /proc/partitions

major minor #blocks name

179 0 7634944 mmcblk0
179 1 65536 mmcblk0p1
179 2 512 mmcblk0p2
179 3 512 mmcblk0p3
179 4 1024 mmcblk0p4
179 5 512 mmcblk0p5
179 6 512 mmcblk0p6
179 7 12288 mmcblk0p7
179 8 512 mmcblk0p8
179 9 1 mmcblk0p9
179 10 3072 mmcblk0p10
179 11 3072 mmcblk0p11
179 12 8192 mmcblk0p12
179 13 16384 mmcblk0p13
179 14 1292288 mmcblk0p14
179 15 5347328 mmcblk0p15
179 16 8192 mmcblk0p16
179 17 516096 mmcblk0p17
179 18 73728 mmcblk0p18
179 19 12288 mmcblk0p19
179 20 3072 mmcblk0p20
179 21 8 mmcblk0p21
179 22 8192 mmcblk0p22
179 23 32768 mmcblk0p23
179 24 32768 mmcblk0p24
179 25 512 mmcblk0p25
179 26 512 mmcblk0p26
179 27 51200 mmcblk0p27
179 28 512 mmcblk0p28
179 29 16384 mmcblk0p29
179 30 98287 mmcblk0p30
179 32 31166976 mmcblk1
179 33 31162880 mmcblk1p1

ls -la

lrwxrwxrwx root root 1970-02-03 10:09 aboot -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 1970-02-03 10:09 boot -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 1970-02-03 10:09 cache -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 1970-02-03 10:09 cust -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 1970-02-03 10:09 drm -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 1970-02-03 10:09 encrypt -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 1970-02-03 10:09 fota -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 1970-02-03 10:09 fsg -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 1970-02-03 10:09 grow -> /dev/block/mmcblk0p30
lrwxrwxrwx root root 1970-02-03 10:09 misc -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 1970-02-03 10:09 modem -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 1970-02-03 10:09 modemst1 -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 1970-02-03 10:09 modemst2 -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 1970-02-03 10:09 mpt -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 1970-02-03 10:09 pad -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 1970-02-03 10:09 persist -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 1970-02-03 10:09 recovery -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 1970-02-03 10:09 reserved -> /dev/block/mmcblk0p29
lrwxrwxrwx root root 1970-02-03 10:09 rpm -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 1970-02-03 10:09 rpmbak -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 1970-02-03 10:09 sbl1 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 1970-02-03 10:09 sbl2 -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 1970-02-03 10:09 sbl3 -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 1970-02-03 10:09 sns -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 1970-02-03 10:09 ssd -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 1970-02-03 10:09 system -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 1970-02-03 10:09 tombstones -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 1970-02-03 10:09 tz -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 1970-02-03 10:09 tzbak -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 1970-02-03 10:09 userdata -> /dev/block/mmcblk0p15

fdisk -l mmcblk0

Disk mmcblk0: 7818 MB, 7818182656 bytes
256 heads, 63 sectors/track, 946 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes

Device Boot Start End Blocks Id System
mmcblk0p1 1 266306 2147483647+ ee EFI GPT
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(0, 0, 1) logical=(0, 0, 2)
Partition 1 has different physical/logical endings:
phys=(1023, 255, 63) logical=(266305, 4, 4)

parted /dev/block/mmcblk0

GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
p
p
Model: MMC 008G92 (sd/mmc)
Disk /dev/block/mmcblk0: 7818MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 8389kB 75.5MB 67.1MB fat16 modem
2 75.5MB 76.0MB 524kB sbl1
3 76.0MB 76.5MB 524kB sbl2
4 76.5MB 77.6MB 1049kB sbl3
5 77.6MB 78.1MB 524kB aboot
6 78.1MB 78.6MB 524kB rpm
7 83.9MB 96.5MB 12.6MB boot
8 101MB 101MB 524kB tz
9 101MB 101MB 1024B pad
10 101MB 104MB 3146kB modemst1
11 104MB 107MB 3146kB modemst2
12 109MB 117MB 8389kB ext4 sns
13 117MB 134MB 16.8MB misc
14 134MB 1458MB 1323MB ext4 system
15 1458MB 6933MB 5476MB ext4 userdata
16 6933MB 6942MB 8389kB ext4 persist
17 6942MB 7470MB 528MB ext4 cache
18 7474MB 7550MB 75.5MB tombstones
19 7550MB 7562MB 12.6MB recovery
20 7562MB 7565MB 3146kB fsg
21 7565MB 7565MB 8192B ssd
22 7567MB 7575MB 8389kB ext4 drm
23 7575MB 7608MB 33.6MB fota
24 7608MB 7642MB 33.6MB ext4 mpt
25 7642MB 7643MB 524kB tzbak
26 7643MB 7643MB 524kB rpmbak
27 7643MB 7695MB 52.4MB ext4 cust
28 7695MB 7696MB 524kB encrypt
29 7701MB 7718MB 16.8MB reserved
30 7718MB 7818MB 101MB grow

gdisk -l /dev/block/mmcblk0

GPT fdisk (gdisk) version 0.8.4

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/block/mmcblk0: 15269888 sectors, 7.3 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 98101B32-BBE2-4BF2-A06E-2BB33D000C20
Partition table holds up to 32 entries
First usable sector is 34, last usable sector is 15269854
Partitions will be aligned on 2-sector boundaries
Total free space is 57292 sectors (28.0 MiB)

Number Start (sector) End (sector) Size Code Name
1 16384 147455 64.0 MiB 0700 modem
2 147456 148479 512.0 KiB FFFF sbl1
3 148480 149503 512.0 KiB FFFF sbl2
4 149504 151551 1024.0 KiB FFFF sbl3
5 151552 152575 512.0 KiB FFFF aboot
6 152576 153599 512.0 KiB FFFF rpm
7 163840 188415 12.0 MiB FFFF boot
8 196608 197631 512.0 KiB FFFF tz
9 197632 197633 1024 bytes FFFF pad
10 197634 203777 3.0 MiB FFFF modemst1
11 203778 209921 3.0 MiB FFFF modemst2
12 212992 229375 8.0 MiB 8300 sns
13 229376 262143 16.0 MiB FFFF misc
14 262144 2846719 1.2 GiB 8300 system
15 2846720 13541375 5.1 GiB 8300 userdata
16 13541376 13557759 8.0 MiB 8300 persist
17 13557760 14589951 504.0 MiB 8300 cache
18 14598144 14745599 72.0 MiB 8300 tombstones
19 14745600 14770175 12.0 MiB FFFF recovery
20 14770176 14776319 3.0 MiB FFFF fsg
21 14776320 14776335 8.0 KiB FFFF ssd
22 14778368 14794751 8.0 MiB 8300 drm
23 14794752 14860287 32.0 MiB FFFF fota
24 14860288 14925823 32.0 MiB 8300 mpt
25 14925824 14926847 512.0 KiB FFFF tzbak
26 14926848 14927871 512.0 KiB FFFF rpmbak
27 14927872 15030271 50.0 MiB 8300 cust
28 15030272 15031295 512.0 KiB FFFF encrypt
29 15040512 15073279 16.0 MiB FFFF reserved
30 15073280 15269854 96.0 MiB 8300 grow

mount

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/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/cust /cust ext4 ro,nosuid,nodev,relatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 rw,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 rw,nosuid,nodev,relatime,noauto_da_alloc,resuid=1000,errors=continue,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,nosuid,nodev,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 rw,nosuid,nodev,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/modem /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/sns /sns ext4 rw,nosuid,nodev,relatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/drm /persist-lg ext4 rw,nosuid,nodev,relatime,noauto_da_alloc,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/mpt /mpt ext4 rw,nosuid,nodev,relatime,noauto_da_alloc,data=ordered 0 0
/dev/fuse /storage/sdcard0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/vold/179:33 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

dmesg |grep "mmc"

<5>[ 0.000000] Kernel command line: console=ttyHSL0,115200,n8 androidboot.hardware=l1e user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3 lpj=67724 uart_console=di
sable lge.rev=rev_10 lcd_maker_id=primary gpt=enable vmalloc=400m lge.batt_info=ds2704_l lge_handle_panic.hreset_enable=1 lge.bootcause=0x77665501 androidboot.emmc=t
rue androidboot.serialno=9e095922 lge.signed_image=false androidboot.baseband=msm
<6>[ 1.408820] mmc0: SDCC Version: 0x00000018
<6>[ 1.410376] mmc0: bam physical base=0x12402000
<6>[ 1.410407] mmc0: bam virtual base=0xe696c000
<6>[ 1.410468] mmc0: BAM device registered. bam_handle=0xe5340000
<6>[ 1.411048] mmc0: Qualcomm MSM SDCC-BAM at 0x0000000012402000 irq 130
<6>[ 1.411078] mmc0: Qualcomm MSM SDCC-DML at 0x0000000012400800
<3>[ 1.411139] mmc0: No card detect facilities available
<6>[ 1.413612] [LGE][MMC][mmc_rescan ( ) START!]
<6>[ 1.413856] mmc0: Qualcomm MSM SDCC-core at 0x0000000012400000 irq 136,0 dma -1 dmacrcri -1
<6>[ 1.413886] mmc0: Controller capabilities: 0x0000039e
<6>[ 1.413886] mmc0: 8 bit data mode enabled
<6>[ 1.413886] mmc0: 4 bit data mode disabled
<6>[ 1.413917] mmc0: polling status mode disabled
<6>[ 1.413917] mmc0: MMC clock 400000 -> 96000000 Hz, PCLK 0 Hz
<6>[ 1.413947] mmc0: Slot eject status = 0
<6>[ 1.413947] mmc0: Power save feature enable = 1
<6>[ 1.413947] mmc0: SPS-BAM data transfer mode available
<6>[ 1.414680] mmc1: SDCC Version: 0x00000018
<6>[ 1.419990] mmc1: bam physical base=0x12182000
<6>[ 1.420021] mmc1: bam virtual base=0xe69a8000
<6>[ 1.420051] mmc1: BAM device registered. bam_handle=0xe5340600
<6>[ 1.420601] mmc1: Qualcomm MSM SDCC-BAM at 0x0000000012182000 irq 128
<6>[ 1.420662] mmc1: Qualcomm MSM SDCC-DML at 0x0000000012180800
<6>[ 1.424080] mmc1: Qualcomm MSM SDCC-core at 0x0000000012180000 irq 134,657 dma -1 dmacrcri -1
<6>[ 1.424080] mmc1: Controller capabilities: 0x0000039e
<6>[ 1.424111] mmc1: 8 bit data mode disabled
<6>[ 1.424111] mmc1: 4 bit data mode enabled
<6>[ 1.424111] mmc1: polling status mode disabled
<6>[ 1.424141] mmc1: MMC clock 400000 -> 192000000 Hz, PCLK 0 Hz
<6>[ 1.424141] mmc1: Slot eject status = 0
<6>[ 1.424172] mmc1: Power save feature enable = 1
<6>[ 1.424172] mmc1: SPS-BAM data transfer mode available
<6>[ 1.585045] mmc0: new HS200 MMC card at address 0001
<6>[ 1.585075] [LGE][MMC][mmc_add_card ( )] mmc_hostname:mmc0, type:MMC
<6>[ 1.585808] mmcblk0: mmc0:0001 008G92 7.28 GiB
<6>[ 1.593682] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 p23 p24 p25 p26 p27 p28 p29 p30
<6>[ 1.605066] [LGE][MMC][mmc_add_card ( )] device_add & uevent posting complete!
<6>[ 1.605188] [LGE][MMC][mmc_rescan ( ) START!]
<4>[ 1.873218] mmc1: host does not support reading read-only switch. assuming write-enable.
<6>[ 1.875476] mmc1: new ultra high speed DDR50 SDHC card at address aaaa
<6>[ 1.875507] [LGE][MMC][mmc_add_card ( )] mmc_hostname:mmc1, type:SDHC
<6>[ 1.875873] mmcblk1: mmc1:aaaa SU32G 29.7 GiB
<6>[ 1.880573] mmcblk1: p1
<6>[ 1.880878] [LGE][MMC][mmc_add_card ( )] device_add & uevent posting complete!
<6>[ 2.073920] EXT4-fs (mmcblk0p27): mounted filesystem with ordered data mode. Opts: barrier=1,noauto_da_alloc
<6>[ 2.079902] EXT4-fs (mmcblk0p14): mounted filesystem with ordered data mode. Opts: barrier=1
<7>[ 2.087685] EXT4-fs (mmcblk0p15): ext4_orphan_cleanup: deleting unreferenced inode 83282
<7>[ 2.088295] EXT4-fs (mmcblk0p15): ext4_orphan_cleanup: deleting unreferenced inode 83281
<7>[ 2.091103] EXT4-fs (mmcblk0p15): ext4_orphan_cleanup: deleting unreferenced inode 74297
<7>[ 2.095315] EXT4-fs (mmcblk0p15): ext4_orphan_cleanup: deleting unreferenced inode 74176
<6>[ 2.095406] EXT4-fs (mmcblk0p15): 4 orphan inodes deleted
<6>[ 2.095437] EXT4-fs (mmcblk0p15): recovery complete
<6>[ 2.104867] EXT4-fs (mmcblk0p15): mounted filesystem with ordered data mode. Opts: nomblk_io_submit,errors=remount-ro
<6>[ 2.216816] EXT4-fs (mmcblk0p15): mounted filesystem with ordered data mode. Opts: barrier=1,noauto_da_alloc,errors=continue
<6>[ 2.242636] EXT4-fs (mmcblk0p17): mounted filesystem with ordered data mode. Opts: barrier=1
<6>[ 2.254021] EXT4-fs (mmcblk0p16): mounted filesystem with ordered data mode. Opts: barrier=1
<6>[ 2.273279] EXT4-fs (mmcblk0p12): mounted filesystem with ordered data mode. Opts: barrier=1,noauto_da_alloc
<6>[ 2.284877] EXT4-fs (mmcblk0p22): mounted filesystem with ordered data mode. Opts: barrier=1,noauto_da_alloc
<6>[ 2.296627] EXT4-fs (mmcblk0p24): mounted filesystem with ordered data mode. Opts: barrier=1,noauto_da_alloc
<3>[ 2.718022] [WALLPAPER] : Cmdline: console=ttyHSL0,115200,n8 androidboot.hardware=l1e user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3 lpj=67724 uart_console=
disable lge.rev=rev_10 lcd_maker_id=primary gpt=enable vmalloc=400m lge.batt_info=ds2704_l lge_handle_panic.hreset_enable=1 lge.bootcause=0x77665501 androidboot.emmc
=true androidboot.serialno=9e095922 lge.signed_image=false androidboot.baseband=msm
<6>[ 2.988066] EXT4-fs (mmcblk0p14): remount start. with rw
<6>[ 2.988097] EXT4-fs (mmcblk0p14): re-mounted. Opts: (null)
<6>[ 3.725835] EXT4-fs (mmcblk0p14): remount start. with ro
<6>[ 3.729192] EXT4-fs (mmcblk0p14): re-mounted. Opts: (null)
<6>[ 4.377872] EXT4-fs (mmcblk0p14): remount start. with ro
<6>[ 4.377903] EXT4-fs (mmcblk0p14): re-mounted. Opts: barrier=1
<6>[ 48.439279] EXT4-fs (mmcblk0p14): remount start. with rw
<6>[ 48.451823] EXT4-fs (mmcblk0p14): re-mounted. Opts: (null)
<6>[ 48.459545] EXT4-fs (mmcblk0p14): remount start. with rw
<6>[ 48.459575] EXT4-fs (mmcblk0p14): re-mounted. Opts: (null)
<6>[ 48.493941] EXT4-fs (mmcblk0p14): remount start. with rw
<6>[ 48.493972] EXT4-fs (mmcblk0p14): re-mounted. Opts: (null)
<6>[ 48.665313] EXT4-fs (mmcblk0p14): remount start. with ro
<6>[ 48.667266] EXT4-fs (mmcblk0p14): re-mounted. Opts: (null)
<6>[ 48.692965] EXT4-fs (mmcblk0p14): remount start. with ro
<6>[ 48.692995] EXT4-fs (mmcblk0p14): re-mounted. Opts: (null)
<6>[ 48.706363] EXT4-fs (mmcblk0p14): remount start. with ro
<6>[ 48.706394] EXT4-fs (mmcblk0p14): re-mounted. Opts: (null)

df

Filesystem Size Used Free Blksize
/dev 382.61M 64.00K 382.55M 4096
/mnt/asec 382.61M 0.00K 382.61M 4096
/mnt/obb 382.61M 0.00K 382.61M 4096
/cust 49.25M 8.00M 41.26M 4096
/system 1.22G 1.19G 25.46M 4096
/data 5.02G 882.30M 4.15G 4096
/cache 496.52M 8.71M 487.81M 4096
/persist 7.91M 4.74M 3.17M 4096
/firmware 63.95M 39.62M 24.33M 16384
/sns 7.91M 4.10M 3.81M 4096
/persist-lg 7.91M 4.15M 3.76M 4096
/mpt 31.54M 13.26M 18.28M 4096
/storage/sdcard0 5.02G 882.30M 4.15G 4096
/mnt/asec/com.nuance.swype.dtc-1 45.03M 41.78M 3.25M 4096

blkid

/dev/block/dm-0: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/block/mmcblk0p27: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/block/mmcblk0p24: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/block/mmcblk0p22: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/block/mmcblk0p17: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/block/mmcblk0p16: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/block/mmcblk0p15: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/block/mmcblk0p14: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/block/mmcblk0p12: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b"
/dev/block/mmcblk0p1: UUID="00BC-614E"