[DEV][RECOVER-FILES][UNBRICK] HTC Jetstream Stock Dump & EMMC Layout - HTC Jetstream

The information and files provided here can be used to unbrick or reset your device.
- If your device is not bricked and you don't want to revert to stock, move along. -
Code:
# cat emmc
dev: size erasesize name
mmcblk0p24: 00fff600 00000200 "misc"
mmcblk0p23: 00fffc00 00000200 "recovery"
mmcblk0p22: 01000000 00000200 "boot"
mmcblk0p29: 3ffffc00 00000200 "system"
mmcblk0p30: 13fffe00 00000200 "cache"
mmcblk0p31: 2fffffe00 00000200 "userdata"
mmcblk0p32: 01fba800 00000200 "devlog"
mmcblk0p34: 00040000 00000200 "pdata"
mmcblk0p17: 02800000 00000200 "radio"
mmcblk0p21: 02000000 00000200 "adsp"
mmcblk0p19: 007ffc00 00000200 "radio_config"
mmcblk0p25: 00400000 00000200 "modem_st1"
mmcblk0p26: 00400000 00000200 "modem_st2"
mmcblk0p18: 02800000 00000200 "mdm9k"
mmcblk0p20: 007ffa00 00000200 "mdm9k_config"
mmcblk0p27: 00400000 00000200 "mdm_efs1"
mmcblk0p28: 00400000 00000200 "mdm_efs2"
Code:
# cat partitions
major minor #blocks name
179 0 31260672 mmcblk0
179 1 128 mmcblk0p1
179 2 256 mmcblk0p2
179 3 32367 mmcblk0p3
179 4 1 mmcblk0p4
179 5 16 mmcblk0p5
179 6 256 mmcblk0p6
179 7 20442 mmcblk0p7
179 8 256 mmcblk0p8
179 9 1024 mmcblk0p9
179 10 256 mmcblk0p10
179 11 2048 mmcblk0p11
179 12 1024 mmcblk0p12
179 13 32 mmcblk0p13
179 14 6144 mmcblk0p14
179 15 1024 mmcblk0p15
179 16 256 mmcblk0p16
179 17 40960 mmcblk0p17
179 18 40960 mmcblk0p18
179 19 8191 mmcblk0p19
179 20 8190 mmcblk0p20
179 21 32768 mmcblk0p21
179 22 16384 mmcblk0p22
179 23 16383 mmcblk0p23
179 24 16381 mmcblk0p24
179 25 4096 mmcblk0p25
179 26 4096 mmcblk0p26
179 27 4096 mmcblk0p27
179 28 4096 mmcblk0p28
179 29 1048575 mmcblk0p29
179 30 327679 mmcblk0p30
179 31 12582911 mmcblk0p31
179 32 32490 mmcblk0p32
179 33 4 mmcblk0p33
179 34 256 mmcblk0p34
179 35 16 mmcblk0p35
179 36 16908287 mmcblk0p36 (internal sdcard)
Dumplog:
Code:
# dd if=/dev/block/mmcblk0p1 of=/internal_sdcard/mmcblk0p1
256+0 records in
256+0 records out
131072 bytes (128.0KB) copied, 0.014832 seconds, 8.4MB/s
# dd if=/dev/block/mmcblk0p2 of=/internal_sdcard/mmcblk0p2
512+0 records in
512+0 records out
262144 bytes (256.0KB) copied, 0.013886 seconds, 18.0MB/s
# dd if=/dev/block/mmcblk0p3 of=/internal_sdcard/mmcblk0p3
64734+0 records in
64734+0 records out
33143808 bytes (31.6MB) copied, 3.866028 seconds, 8.2MB/s
# dd if=/dev/block/mmcblk0p4 of=/internal_sdcard/mmcblk0p4
2+0 records in
2+0 records out
1024 bytes (1.0KB) copied, 0.003601 seconds, 277.7KB/s
# dd if=/dev/block/mmcblk0p5 of=/internal_sdcard/mmcblk0p5
32+0 records in
32+0 records out
16384 bytes (16.0KB) copied, 0.006592 seconds, 2.4MB/s
# dd if=/dev/block/mmcblk0p6 of=/internal_sdcard/mmcblk0p6
512+0 records in
512+0 records out
262144 bytes (256.0KB) copied, 0.017121 seconds, 14.6MB/s
# dd if=/dev/block/mmcblk0p7 of=/internal_sdcard/mmcblk0p7
40885+0 records in
40885+0 records out
20933120 bytes (20.0MB) copied, 1.260467 seconds, 15.8MB/s
# dd if=/dev/block/mmcblk0p8 of=/internal_sdcard/mmcblk0p8
512+0 records in
512+0 records out
262144 bytes (256.0KB) copied, 0.017181 seconds, 14.6MB/s
# dd if=/dev/block/mmcblk0p9 of=/internal_sdcard/mmcblk0p9
2048+0 records in
2048+0 records out
1048576 bytes (1.0MB) copied, 0.046875 seconds, 21.3MB/s
# dd if=/dev/block/mmcblk0p10 of=/internal_sdcard/mmcblk0p10
512+0 records in
512+0 records out
262144 bytes (256.0KB) copied, 0.017792 seconds, 14.1MB/s
# dd if=/dev/block/mmcblk0p11 of=/internal_sdcard/mmcblk0p11
4096+0 records in
4096+0 records out
2097152 bytes (2.0MB) copied, 0.080353 seconds, 24.9MB/s
# dd if=/dev/block/mmcblk0p12 of=/internal_sdcard/mmcblk0p12
2048+0 records in
2048+0 records out
1048576 bytes (1.0MB) copied, 0.040375 seconds, 24.8MB/s
# dd if=/dev/block/mmcblk0p13 of=/internal_sdcard/mmcblk0p13
64+0 records in
64+0 records out
32768 bytes (32.0KB) copied, 0.007294 seconds, 4.3MB/s
# dd if=/dev/block/mmcblk0p14 of=/internal_sdcard/mmcblk0p14
12288+0 records in
12288+0 records out
6291456 bytes (6.0MB) copied, 1.137756 seconds, 5.3MB/s
# dd if=/dev/block/mmcblk0p15 of=/internal_sdcard/mmcblk0p15
2048+0 records in
2048+0 records out
1048576 bytes (1.0MB) copied, 0.046204 seconds, 21.6MB/s
# dd if=/dev/block/mmcblk0p16 of=/internal_sdcard/mmcblk0p16
512+0 records in
512+0 records out
262144 bytes (256.0KB) copied, 0.017791 seconds, 14.1MB/s
# dd if=/dev/block/mmcblk0p17 of=/internal_sdcard/mmcblk0p17
81920+0 records in
81920+0 records out
41943040 bytes (40.0MB) copied, 5.287995 seconds, 7.6MB/s
# dd if=/dev/block/mmcblk0p18 of=/internal_sdcard/mmcblk0p18
81920+0 records in
81920+0 records out
41943040 bytes (40.0MB) copied, 7.139099 seconds, 5.6MB/s
# dd if=/dev/block/mmcblk0p19 of=/internal_sdcard/mmcblk0p19
16382+0 records in
16382+0 records out
8387584 bytes (8.0MB) copied, 1.903229 seconds, 4.2MB/s
# dd if=/dev/block/mmcblk0p20 of=/internal_sdcard/mmcblk0p20
16381+0 records in
16381+0 records out
8387072 bytes (8.0MB) copied, 0.507782 seconds, 15.8MB/s
# dd if=/dev/block/mmcblk0p21 of=/internal_sdcard/mmcblk0p21
65536+0 records in
65536+0 records out
33554432 bytes (32.0MB) copied, 5.859466 seconds, 5.5MB/s
# dd if=/dev/block/mmcblk0p22 of=/internal_sdcard/mmcblk0p22
32768+0 records in
32768+0 records out
16777216 bytes (16.0MB) copied, 2.382599 seconds, 6.7MB/s
# dd if=/dev/block/mmcblk0p23 of=/internal_sdcard/mmcblk0p23
32766+0 records in
32766+0 records out
16776192 bytes (16.0MB) copied, 3.155335 seconds, 5.1MB/s
# dd if=/dev/block/mmcblk0p24 of=/internal_sdcard/mmcblk0p24
32763+0 records in
32763+0 records out
16774656 bytes (16.0MB) copied, 3.017365 seconds, 5.3MB/s
# dd if=/dev/block/mmcblk0p25 of=/internal_sdcard/mmcblk0p25
8192+0 records in
8192+0 records out
4194304 bytes (4.0MB) copied, 0.661377 seconds, 6.0MB/s
# dd if=/dev/block/mmcblk0p26 of=/internal_sdcard/mmcblk0p26
8192+0 records in
8192+0 records out
4194304 bytes (4.0MB) copied, 1.649597 seconds, 2.4MB/s
# dd if=/dev/block/mmcblk0p27 of=/internal_sdcard/mmcblk0p27
8192+0 records in
8192+0 records out
4194304 bytes (4.0MB) copied, 0.151947 seconds, 26.3MB/s
# dd if=/dev/block/mmcblk0p28 of=/internal_sdcard/mmcblk0p28
8192+0 records in
8192+0 records out
4194304 bytes (4.0MB) copied, 0.153412 seconds, 26.1MB/s
# dd if=/dev/block/mmcblk0p29 of=/internal_sdcard/mmcblk0p29
2097150+0 records in
2097150+0 records out
1073740800 bytes (1024.0MB) copied, 169.413941 seconds, 6.0MB/s
# dd if=/dev/block/mmcblk0p30 of=/internal_sdcard/mmcblk0p30
655359+0 records in
655359+0 records out
335543808 bytes (320.0MB) copied, 53.088073 seconds, 6.0MB/s
!31 not pulled!
# dd if=/dev/block/mmcblk0p32 of=/internal_sdcard/mmcblk0p32
64980+0 records in
64980+0 records out
33269760 bytes (31.7MB) copied, 3.125000 seconds, 10.2MB/s
# dd if=/dev/block/mmcblk0p33 of=/internal_sdcard/mmcblk0p33
8+0 records in
8+0 records out
4096 bytes (4.0KB) copied, 0.001190 seconds, 3.3MB/s
# dd if=/dev/block/mmcblk0p34 of=/internal_sdcard/mmcblk0p34
512+0 records in
512+0 records out
262144 bytes (256.0KB) copied, 0.012665 seconds, 19.7MB/s
# dd if=/dev/block/mmcblk0p35 of=/internal_sdcard/mmcblk0p35
32+0 records in
32+0 records out
16384 bytes (16.0KB) copied, 0.003998 seconds, 3.9MB/s
!36 not pulled!
Dumps are available at
http://bricked.de/index.php?action=verdiltedumps
You can download single partitions or a zip archive with all files.
If you need all files, choose the zip archive as it is considerably smaller (~700MB).
The device these got pulled from is S-ON unlocked and factory reset with TWRP installed.
Userdata (mmcblk0p31) and the internal sdcard (mmcblk0p36) were not dumped, since it's all user-stuff anyway.
Flash those files on your own risk.
No guarantees! If it kills your grandmother or your device, I am NOT responsible!
freenode irc: #aosp-jetstream

Though there is useful things inside, I must say that few partitions were crippled and some overlaped with parts of MBR code.

Related

[req] at&t users read if you want a recovery

SORTED thanks to an ANON person
I'm heading into at&t store in the next few hours to grab one. I'll post what I find. Very excited to get my phone rooted.
Sent from my HTC Inspire 4G using xda app-developers app
pradeepd said:
I'm heading into at&t store in the next few hours to grab one. I'll post what I find. Very excited to get my phone rooted.
Sent from my HTC Inspire 4G using xda app-developers app
Click to expand...
Click to collapse
Make sure you give them a call before wasting a trip. Here in Socal i can't find 1 store that has them instock yet in a 15 mile radius. Half the stores i've called they had no idea what i was talking about like they never heard of the device, lol! Sad
deeznuts said:
Make sure you give them a call before wasting a trip. Here in Socal i can't find 1 store that has them instock yet in a 15 mile radius. Half the stores i've called they had no idea what i was talking about like they never heard of the device, lol! Sad
Click to expand...
Click to collapse
Thanks. In the bay area they at least know about the launch. The store called me and said they will receive 5 units this afternoon.
Sent from my HTC Inspire 4G using xda app-developers app
Haven't ever tried this on a stock recovery; keep getting
remount failed: Operation not permitted
Output from cat:
Code:
C:\android>adb shell cat /proc/emmc
dev: size erasesize name
mmcblk0p5: 00800000 00001000 "recovery"
mmcblk0p4: 00800000 00001000 "boot"
mmcblk0p16: 60000000 00001000 "system"
mmcblk0p17: 10000000 00001000 "cache"
mmcblk0p20: 00200000 00001000 "misc"
mmcblk0p1: 00600000 00001000 "wlan"
mmcblk0p2: 00200000 00001000 "WDM"
mmcblk0p25: 00200000 00001000 "pdata"
mmcblk0p3: 00600000 00001000 "radiocab"
mmcblk0p18: e00000000 00001000 "userdata"
mmcblk0p24: 01a00000 00001000 "devlog"
mmcblk0p19: 00200000 00001000 "extra"
mmcblk0p14: 03400000 00001000 "mdm9k"
mmcblk0p15: 00800000 00001000 "mdm9k_config"
mmcblk0p21: 00800000 00001000 "modem_st1"
mmcblk0p22: 00800000 00001000 "modem_st2"
and
Code:
C:\android>adb shell cat /proc/partitions
major minor #blocks name
179 0 61071360 mmcblk0
179 1 6144 mmcblk0p1
179 2 2048 mmcblk0p2
179 3 6144 mmcblk0p3
179 4 8192 mmcblk0p4
179 5 8192 mmcblk0p5
179 6 16384 mmcblk0p6
179 7 16384 mmcblk0p7
179 8 16384 mmcblk0p8
179 9 4096 mmcblk0p9
179 10 4096 mmcblk0p10
179 11 32768 mmcblk0p11
179 12 32768 mmcblk0p12
179 13 32768 mmcblk0p13
179 14 53248 mmcblk0p14
179 15 8192 mmcblk0p15
179 16 1572864 mmcblk0p16
179 17 262144 mmcblk0p17
179 18 58720256 mmcblk0p18
179 19 2048 mmcblk0p19
179 20 2048 mmcblk0p20
179 21 8192 mmcblk0p21
179 22 8192 mmcblk0p22
179 23 6144 mmcblk0p23
179 24 26624 mmcblk0p24
179 25 2048 mmcblk0p25
179 26 2048 mmcblk0p26
Lloir said:
can one of you run the following command and chuck the boot.img up for me please
run these commands via terminal
adb remount (prolly not needed just force of habit for myself)
adb shell
dd if=/dev/block/mmcblk0p4 of=/sdcard/boot.img
this will help me to get you guys a recovery
if that command didn't work run
adb shell cat /proc/emmc
and
adb shell cat /proc/partitions
(i doubt the partitions will be that different if at all from the International HOX+)
thanks guys
Lloir
Click to expand...
Click to collapse
if i knew how i would have already

[Request] Sprint HTC ONE Max Partition Layout

Can someone with the Sprint One Max post the partition layout please. Use this command in adb shell
cat proc/partitions
or
cat proc/emmc
benny3 said:
Can someone with the Sprint One Max post the partition layout please. Use this command in adb shell
cat proc/partitions
or
cat proc/emmc
Click to expand...
Click to collapse
7 0 4190 loop0
7 1 16664 loop1
7 2 2111 loop2
7 3 22901 loop3
179 0 30535680 mmcblk0
179 1 128 mmcblk0p1
179 2 256 mmcblk0p2
179 3 130671 mmcblk0p3
179 4 1 mmcblk0p4
179 5 16 mmcblk0p5
179 6 256 mmcblk0p6
179 7 15577 mmcblk0p7
179 8 256 mmcblk0p8
179 9 1024 mmcblk0p9
179 10 256 mmcblk0p10
179 11 2048 mmcblk0p11
179 12 2080 mmcblk0p12
179 13 5120 mmcblk0p13
179 14 1024 mmcblk0p14
179 15 1024 mmcblk0p15
179 16 61441 mmcblk0p16
179 17 8190 mmcblk0p17
179 18 5120 mmcblk0p18
179 19 4096 mmcblk0p19
179 20 23551 mmcblk0p20
179 21 1022 mmcblk0p21
179 22 4096 mmcblk0p22
179 23 4096 mmcblk0p23
179 24 20480 mmcblk0p24
179 25 4 mmcblk0p25
179 26 256 mmcblk0p26
179 27 16 mmcblk0p27
179 28 1280 mmcblk0p28
179 29 64 mmcblk0p29
179 30 1024 mmcblk0p30
179 31 256 mmcblk0p31
179 32 25600 mmcblk0p32
179 33 72870 mmcblk0p33
179 34 81920 mmcblk0p34
179 35 49151 mmcblk0p35
179 36 98303 mmcblk0p36
179 37 16384 mmcblk0p37
179 38 16383 mmcblk0p38
179 39 2490368 mmcblk0p39
179 40 65534 mmcblk0p40
179 41 393215 mmcblk0p41
179 42 26869760 mmcblk0p42
179 64 31166976 mmcblk1
179 65 31162880 mmcblk1p1
254 0 4189 dm-0
254 1 16663 dm-1
254 2 2110 dm-2
254 3 22900 dm-3
What command did you use? dang that didnt give the names
try this "ls -al /dev/block/platform/msm_sdcc.1/by-name"
or this"ls -al /dev/block/platform/msm_sdcc.1/by-num"
benny3 said:
What command did you use? dang that didnt give the names
try this "ls -al /dev/block/platform/msm_sdcc.1/by-name"
or this"ls -al /dev/block/platform/msm_sdcc.1/by-num"
Click to expand...
Click to collapse
cat proc/emmc
dev: size erasesize name
mmcblk0p21: 000ffa00 00000200 "misc"
mmcblk0p38: 00fffe00 00000200 "recovery"
mmcblk0p37: 01000000 00000200 "boot"
mmcblk0p39: 98000000 00000200 "system"
mmcblk0p28: 00140200 00000200 "local"
mmcblk0p41: 17fffe00 00000200 "cache"
mmcblk0p42: 668000000 00000200 "userdata"
mmcblk0p24: 01400000 00000200 "devlog"
mmcblk0p26: 00040000 00000200 "pdata"
mmcblk0p29: 00010000 00000200 "extra"
mmcblk0p34: 05000000 00000200 "radio"
mmcblk0p16: 03c00400 00000200 "adsp"
mmcblk0p15: 00100000 00000200 "dsps"
mmcblk0p18: 00500000 00000200 "wcnss"
mmcblk0p17: 007ffa00 00000200 "radio_conf
mmcblk0p22: 00400000 00000200 "modem_st1"
mmcblk0p23: 00400000 00000200 "modem_st2"
mmcblk0p31: 00040000 00000200 "skylink"
mmcblk0p32: 01900000 00000200 "carrier"
mmcblk0p30: 00100000 00000200 "cdma_recor
mmcblk0p20: 016ffc00 00000200 "reserve_1"
mmcblk0p35: 02fffc00 00000200 "reserve_2"
mmcblk0p36: 05fffc00 00000200 "reserve_3"
mmcblk0p40: 03fffa00 00000200 "reserve_4"
mmcblk0p33: 04729a00 00000200 "reserve"
lawnguy said:
cat proc/emmc
dev: size erasesize name
mmcblk0p21: 000ffa00 00000200 "misc"
mmcblk0p38: 00fffe00 00000200 "recovery"
mmcblk0p37: 01000000 00000200 "boot"
mmcblk0p39: 98000000 00000200 "system"
mmcblk0p28: 00140200 00000200 "local"
mmcblk0p41: 17fffe00 00000200 "cache"
mmcblk0p42: 668000000 00000200 "userdata"
mmcblk0p24: 01400000 00000200 "devlog"
mmcblk0p26: 00040000 00000200 "pdata"
mmcblk0p29: 00010000 00000200 "extra"
mmcblk0p34: 05000000 00000200 "radio"
mmcblk0p16: 03c00400 00000200 "adsp"
mmcblk0p15: 00100000 00000200 "dsps"
mmcblk0p18: 00500000 00000200 "wcnss"
mmcblk0p17: 007ffa00 00000200 "radio_conf
mmcblk0p22: 00400000 00000200 "modem_st1"
mmcblk0p23: 00400000 00000200 "modem_st2"
mmcblk0p31: 00040000 00000200 "skylink"
mmcblk0p32: 01900000 00000200 "carrier"
mmcblk0p30: 00100000 00000200 "cdma_recor
mmcblk0p20: 016ffc00 00000200 "reserve_1"
mmcblk0p35: 02fffc00 00000200 "reserve_2"
mmcblk0p36: 05fffc00 00000200 "reserve_3"
mmcblk0p40: 03fffa00 00000200 "reserve_4"
mmcblk0p33: 04729a00 00000200 "reserve"
Click to expand...
Click to collapse
And i thank you very much sir!!
based on the number of blocks from the m7 partition table,heres my best guess to cover whats not listed in the post above:
Code:
major minor #blocks name
7 0 4190 loop0
7 1 16664 loop1
7 2 2111 loop2
7 3 22901 loop3
179 0 30535680 mmcblk0
179 1 128 mmcblk0p1 sbl1
179 2 256 mmcblk0p2 sbl2
179 3 130671 mmcblk0p3 pg1fs
179 4 1 mmcblk0p4 ?
179 5 16 mmcblk0p5 board info
179 6 256 mmcblk0p6 mfg
179 7 5577 mmcblk0p7 pg2fs
179 8 256 mmcblk0p8 sbl2_update
179 9 1024 mmcblk0p9 sbl3
179 10 256 mmcblk0p10 rpm
179 11 2048 mmcblk0p11 tz
179 12 2080 mmcblk0p12 hboot
179 13 5120 mmcblk0p13 sp1
179 14 1024 mmcblk0p14 wifi
179 15 1024 mmcblk0p15 dsps
179 16 61441 mmcblk0p16 adsp
179 17 8190 mmcblk0p17 radio_conf
179 18 5120 mmcblk0p18 wcnss
179 19 4096 mmcblk0p19 ?
179 20 23551 mmcblk0p20 reserve_1
179 21 1022 mmcblk0p21 misc
179 22 4096 mmcblk0p22 modem_st1
179 23 4096 mmcblk0p23 modem_st2
179 24 20480 mmcblk0p24 devlog
179 25 4 mmcblk0p25 debug_config
179 26 256 mmcblk0p26 pdata
179 27 16 mmcblk0p27 control
179 28 1280 mmcblk0p28 local
179 29 64 mmcblk0p29 extra
179 30 1024 mmcblk0p30 cdma_recor
179 31 256 mmcblk0p31 skylink
179 32 25600 mmcblk0p32 carrier
179 33 72870 mmcblk0p33 reserve
179 34 81920 mmcblk0p34 radio
179 35 49151 mmcblk0p35 reserve_2
179 36 98303 mmcblk0p36 reserve_3
179 37 16384 mmcblk0p37 boot
179 38 16383 mmcblk0p38 recovery
179 39 2490368 mmcblk0p39 system
179 40 65534 mmcblk0p40 reserve_4
179 41 393215 mmcblk0p41 cache
179 42 26869760 mmcblk0p42 userdata
179 64 31166976 mmcblk1
179 65 31162880 mmcblk1p1
254 0 4189 dm-0
254 1 16663 dm-1
254 2 2110 dm-2
254 3 22900 dm-3

[Info] List of LG G2 D802 32GB devices and partitions

To run this commands you need a rooted device with BusyBox and parted.
Code:
[email protected]:/ #[COLOR="Blue"] [B]cat /proc/partitions[/B][/COLOR]
major minor #blocks name
179 0 30535680 mmcblk0
179 1 65536 mmcblk0p1
179 2 1024 mmcblk0p2
179 3 512 mmcblk0p3
179 4 512 mmcblk0p4
179 5 1024 mmcblk0p5
179 6 1024 mmcblk0p6
179 7 16384 mmcblk0p7
179 8 1024 mmcblk0p8
179 9 1 mmcblk0p9
179 10 3072 mmcblk0p10
179 11 3072 mmcblk0p11
179 12 1 mmcblk0p12
179 13 16384 mmcblk0p13
179 14 32768 mmcblk0p14
179 15 16384 mmcblk0p15
179 16 3072 mmcblk0p16
179 17 512 mmcblk0p17
179 18 512 mmcblk0p18
179 19 1 mmcblk0p19
179 20 512 mmcblk0p20
179 21 8192 mmcblk0p21
179 22 8192 mmcblk0p22
179 23 32768 mmcblk0p23
179 24 32768 mmcblk0p24
179 25 32768 mmcblk0p25
179 26 512 mmcblk0p26
179 27 1024 mmcblk0p27
179 28 1024 mmcblk0p28
179 29 8 mmcblk0p29
179 30 2834432 mmcblk0p30
179 31 622592 mmcblk0p31
259 0 81920 mmcblk0p32
259 1 16384 mmcblk0p33
259 2 49152 mmcblk0p34
259 3 26460160 mmcblk0p35
259 4 61423 mmcblk0p36
179 32 4096 mmcblk0rpmb
Code:
[email protected]:/ # [B][COLOR="Blue"]ls -l /dev/block/platform/msm_sdcc.1/by-num/[/COLOR][/B]
lrwxrwxrwx root root 1970-01-15 23:14 p1 -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 1970-01-15 23:14 p10 -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 1970-01-15 23:14 p11 -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 1970-01-15 23:14 p12 -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 1970-01-15 23:14 p13 -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 1970-01-15 23:14 p14 -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 1970-01-15 23:14 p15 -> /dev/block/mmcblk0p15
lrwxrwxrwx root root 1970-01-15 23:14 p16 -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 1970-01-15 23:14 p17 -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 1970-01-15 23:14 p18 -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 1970-01-15 23:14 p19 -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 1970-01-15 23:14 p2 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 1970-01-15 23:14 p20 -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 1970-01-15 23:14 p21 -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 1970-01-15 23:14 p22 -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 1970-01-15 23:14 p23 -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 1970-01-15 23:14 p24 -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 1970-01-15 23:14 p25 -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 1970-01-15 23:14 p26 -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 1970-01-15 23:14 p27 -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 1970-01-15 23:14 p28 -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 1970-01-15 23:14 p29 -> /dev/block/mmcblk0p29
lrwxrwxrwx root root 1970-01-15 23:14 p3 -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 1970-01-15 23:14 p30 -> /dev/block/mmcblk0p30
lrwxrwxrwx root root 1970-01-15 23:14 p31 -> /dev/block/mmcblk0p31
lrwxrwxrwx root root 1970-01-15 23:14 p32 -> /dev/block/mmcblk0p32
lrwxrwxrwx root root 1970-01-15 23:14 p33 -> /dev/block/mmcblk0p33
lrwxrwxrwx root root 1970-01-15 23:14 p34 -> /dev/block/mmcblk0p34
lrwxrwxrwx root root 1970-01-15 23:14 p35 -> /dev/block/mmcblk0p35
lrwxrwxrwx root root 1970-01-15 23:14 p36 -> /dev/block/mmcblk0p36
lrwxrwxrwx root root 1970-01-15 23:14 p4 -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 1970-01-15 23:14 p5 -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 1970-01-15 23:14 p6 -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 1970-01-15 23:14 p7 -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 1970-01-15 23:14 p8 -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 1970-01-15 23:14 p9 -> /dev/block/mmcblk0p9
Code:
[email protected]:/ # [B][COLOR="Blue"]ls -l /dev/block/platform/msm_sdcc.1/by-name/[/COLOR][/B]
lrwxrwxrwx root root 1970-01-15 23:14 DDR -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 1970-01-15 23:14 aboot -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 1970-01-15 23:14 boot -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 1970-01-15 23:14 cache -> /dev/block/mmcblk0p31
lrwxrwxrwx root root 1970-01-15 23:14 cust -> /dev/block/mmcblk0p34
lrwxrwxrwx root root 1970-01-15 23:14 dbi -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 1970-01-15 23:14 dbibak -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 1970-01-15 23:14 drm -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 1970-01-15 23:14 encrypt -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 1970-01-15 23:14 fota -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 1970-01-15 23:14 fsc -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 1970-01-15 23:14 fsg -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 1970-01-15 23:14 grow -> /dev/block/mmcblk0p36
lrwxrwxrwx root root 1970-01-15 23:14 laf -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 1970-01-15 23:14 misc -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 1970-01-15 23:14 modem -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 1970-01-15 23:14 modemst1 -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 1970-01-15 23:14 modemst2 -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 1970-01-15 23:14 mpt -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 1970-01-15 23:14 pad -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 1970-01-15 23:14 pad1 -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 1970-01-15 23:14 pad2 -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 1970-01-15 23:14 persist -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 1970-01-15 23:14 rct -> /dev/block/mmcblk0p29
lrwxrwxrwx root root 1970-01-15 23:14 recovery -> /dev/block/mmcblk0p15
lrwxrwxrwx root root 1970-01-15 23:14 rpm -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 1970-01-15 23:14 rpmbak -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 1970-01-15 23:14 sbl1 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 1970-01-15 23:14 sns -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 1970-01-15 23:14 spare -> /dev/block/mmcblk0p33
lrwxrwxrwx root root 1970-01-15 23:14 ssd -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 1970-01-15 23:14 system -> /dev/block/mmcblk0p30
lrwxrwxrwx root root 1970-01-15 23:14 tombstones -> /dev/block/mmcblk0p32
lrwxrwxrwx root root 1970-01-15 23:14 tz -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 1970-01-15 23:14 tzbak -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 1970-01-15 23:14 userdata -> /dev/block/mmcblk0p35
Code:
[email protected]:/ # [B][COLOR="Blue"]parted /dev/block/mmcblk0[/COLOR][/B]
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) print
print
Model: MMC 032GE4 (sd/mmc)
Disk /dev/block/mmcblk0: 31.3GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 16.8MB 83.9MB 67.1MB fat16 modem
2 83.9MB 84.9MB 1049kB sbl1
3 84.9MB 85.5MB 524kB dbi
4 101MB 101MB 524kB DDR
5 117MB 118MB 1049kB aboot
6 118MB 120MB 1049kB rpm
7 134MB 151MB 16.8MB boot
8 151MB 152MB 1049kB tz
9 152MB 152MB 1024B pad
10 168MB 171MB 3146kB modemst1
11 171MB 174MB 3146kB modemst2
12 174MB 174MB 1024B pad1
13 185MB 201MB 16.8MB misc
14 201MB 235MB 33.6MB ext4 persist
15 235MB 252MB 16.8MB recovery
16 252MB 255MB 3146kB fsg
17 268MB 269MB 524kB fsc
18 269MB 269MB 524kB ssd
19 269MB 269MB 1024B pad2
20 269MB 270MB 524kB encrypt
21 285MB 294MB 8389kB ext4 drm
22 294MB 302MB 8389kB ext4 sns
23 302MB 336MB 33.6MB laf
24 336MB 369MB 33.6MB fota
25 369MB 403MB 33.6MB ext4 mpt
26 403MB 403MB 524kB dbibak
27 403MB 404MB 1049kB rpmbak
28 404MB 405MB 1049kB tzbak
29 405MB 405MB 8192B rct
30 419MB 3322MB 2902MB ext4 system
31 3322MB 3959MB 638MB ext4 cache
32 3959MB 4043MB 83.9MB tombstones
33 4043MB 4060MB 16.8MB spare
34 4060MB 4110MB 50.3MB ext4 cust
35 4110MB 31.2GB 27.1GB ext4 userdata
36 31.2GB 31.3GB 62.9MB grow
Code:
[email protected]:/ # [B][COLOR="Blue"]mount[/COLOR][/B]
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,resuid=1000,errors=continue,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/sns /sns ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=continue,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/drm /persist-lg ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=continue,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/mpt /mpt ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=continue,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=continue,data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,errors=continue,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/cust /cust ext4 ro,seclabel,nosuid,nodev,relatime,noauto_da_alloc,data=ordered 0 0
tmpfs /storage/emulated tmpfs rw,seclabel,nosuid,nodev,relatime,mode=050,gid=1028 0 0
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/legacy fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/0/Android/obb fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/legacy fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/legacy/Android/obb fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
Code:
[email protected]:/ # [B][COLOR="Blue"]df[/COLOR][/B]
Filesystem Size Used Free Blksize
/dev 926.51M 128.00K 926.39M 4096
/sys/fs/cgroup 926.51M 12.00K 926.50M 4096
/mnt/asec 926.51M 0.00K 926.51M 4096
/mnt/obb 926.51M 0.00K 926.51M 4096
/system 2.66G 2.17G 495.23M 4096
/data 24.80G 20.77G 4.03G 4096
/sns 7.83M 4.03M 3.80M 4096
/persist-lg 7.83M 4.35M 3.48M 4096
/mpt 31.46M 12.96M 18.49M 4096
/cache 597.97M 9.59M 588.38M 4096
/persist 31.46M 4.05M 27.41M 4096
/firmware 63.95M 52.36M 11.59M 16384
/cust 46.22M 8.18M 38.04M 4096
/storage/emulated 926.51M 0.00K 926.51M 4096
/mnt/shell/emulated 24.80G 20.77G 4.03G 4096
/storage/emulated/legacy 24.80G 20.77G 4.03G 4096
/storage/emulated/0 24.80G 20.77G 4.03G 4096
/storage/emulated/0/Android/obb 24.80G 20.77G 4.03G 4096
/storage/emulated/legacy 24.80G 20.77G 4.03G 4096
/storage/emulated/legacy/Android/obb 24.80G 20.77G 4.03G 4096
Code:
[email protected]:/ # [B][COLOR="Blue"]find /dev/block/platform/msm_sdcc.1/ -name 'mmc*' -exec fdisk -l {} \;[/COLOR][/B]
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p36: 62 MB, 62897664 bytes
4 heads, 16 sectors/track, 1919 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p36 doesn't contain a valid partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p35: 27.0 GB, 27095203840 bytes
4 heads, 16 sectors/track, 826880 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p35 doesn't contain a valid partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p34: 50 MB, 50331648 bytes
4 heads, 16 sectors/track, 1536 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p34 doesn't contain a valid partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p33: 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/mmcblk0p33 doesn't contain a valid partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p32: 83 MB, 83886080 bytes
4 heads, 16 sectors/track, 2560 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p32 doesn't contain a valid partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p31: 637 MB, 637534208 bytes
4 heads, 16 sectors/track, 19456 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p31 doesn't contain a valid partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p30: 2902 MB, 2902458368 bytes
4 heads, 16 sectors/track, 88576 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p30 doesn't contain a valid partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p29: 0 MB, 8192 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: 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/mmcblk0p28 doesn't contain a valid partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p27: 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/mmcblk0p27 doesn't contain a valid partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p26: 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/mmcblk0p26 doesn't contain a valid partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p25: 33 MB, 33554432 bytes
4 heads, 16 sectors/track, 1024 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: 33 MB, 33554432 bytes
4 heads, 16 sectors/track, 1024 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: 33 MB, 33554432 bytes
4 heads, 16 sectors/track, 1024 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: 8 MB, 8388608 bytes
4 heads, 16 sectors/track, 256 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: 8 MB, 8388608 bytes
4 heads, 16 sectors/track, 256 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: 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/mmcblk0p20 doesn't contain a valid partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p19: 0 MB, 1024 bytes
4 heads, 16 sectors/track, 0 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: 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/mmcblk0p18 doesn't contain a valid partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p17: 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/mmcblk0p17 doesn't contain a valid partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p16: 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/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: 33 MB, 33554432 bytes
4 heads, 16 sectors/track, 1024 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: 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/mmcblk0p13 doesn't contain a valid partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p12: 0 MB, 1024 bytes
4 heads, 16 sectors/track, 0 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: 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/mmcblk0p11 doesn't contain a valid partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p10: 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/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 partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p9: 0 MB, 1024 bytes
4 heads, 16 sectors/track, 0 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: 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/mmcblk0p7 doesn't contain a valid partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p6: 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/mmcblk0p6 doesn't contain a valid partition table
Disk /dev/block/platform/msm_sdcc.1/mmcblk0p5: 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/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 Blocks Id System
/dev/block/platform/msm_sdcc.1/mmcblk0p1p1 ? 12158374 29994462 570754815+ 72 Unknown
Partition 1 does not end on cylinder boundary
/dev/block/platform/msm_sdcc.1/mmcblk0p1p2 ? 2635774 32886216 968014120 65 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/platform/msm_sdcc.1/mmcblk0p1p3 ? 29216898 59467339 968014096 79 Unknown
Partition 3 does not end on cylinder boundary
/dev/block/platform/msm_sdcc.1/mmcblk0p1p4 ? 1 56831664 1818613248 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
Additional links:
[GUIDE] Making Dump Files Out of Android Device Partitions
parted from cyanogenmod repo
The 4 partitions modified by AutoRec are the following, so backup with dd before applying.
bender_007 said:
^ aboot, boot, laf + recovery
Click to expand...
Click to collapse
I had this question elsewhere as well - can we force our phone into QH-USB 9006 mode ? This shows all the other partitions like aboot, boot, recovery etc and is directly flashable using "dd" . I recovered my bricked phone through this method, but I was in QH USB 9008 mode... not sure how to get this for people who are stuck in LG boot screen (and can neither get to download mode or fastboot)
sandys1 said:
I had this question elsewhere as well - can we force our phone into QH-USB 9006 mode ? This shows all the other partitions like aboot, boot, recovery etc and is directly flashable using "dd" . I recovered my bricked phone through this method, but I was in QH USB 9008 mode... not sure how to get this for people who are stuck in LG boot screen (and can neither get to download mode or fastboot)
Click to expand...
Click to collapse
Didn't try either using dd to write a custom recovery being root either. Gor the QH USB 9008 mode here's a guide.
[FIX] Unbrick LG G2 stuck in Qualcomm HS-USB QDLoader 9008 mode
so what's grow partition function? i managed to delete it to give some extra space on userdata.
hyperionx7 said:
so what's grow partition function? i managed to delete it to give some extra space on userdata.
Click to expand...
Click to collapse
You deleted a system partition that you don't know what's for to get 62.9MB more space?

Super Bricked H830

So i have super bricked my tmobile lg g5 after i tried to flash a h850 zip. I know stupid idea. I had the phone rooted and bootloader unlocked. I used twrp and when i try to load the zip it work then it said no os. So i tried to restore with my backup but failed so i tried to turn off phone so i could go to download mode to restore the phone........IT IS DEAD now does nothing only thing it shows on computer is lg g5 qualcomm hs usb 9008 if anyone has any info or can help me please let me know. Thanks
send to lg for warranty repair or tmobile if u have insurance. no other fix.
the bootstack for the h830 vs all other G5 variants is very different will always result with a brick.
other G5s cannot flash H830 stuff.. and can't flash other G5 stuff onto H830.
That sucks as I don't have a receipt since purchased off eBay. Can't sent to anyone and get fixed. Looks like I have a nice paper weight until someone starts selling motherboards
I won a LG G5 from Wind mobile here in Canada no receipt, In the terms it is won without a warranty my phone motherboard fried in 10 days no fault of mine so i contacted LG Canada They will fix any out of warranty phone for a flat rate here of $150.00 plus tax and one way shipping it might be worth while to send it back to them for repair.
vhicke said:
That sucks as I don't have a receipt since purchased off eBay. Can't sent to anyone and get fixed. Looks like I have a nice paper weight until someone starts selling motherboards
Click to expand...
Click to collapse
sometimes you can luck out and get by without a receipt.. especially if the device has not been out for a year (the normal warranty period).
Or see if you can get the receipt or a scan from whoever you bought it from on eBay.
:fingers-crossed:
Only downside is that it is a tmobile phone and I am in Canada. So lg Canada probably will not help me. They guy on eBay is no help email 5 times no answer.
This is why people buy apple products. One trip to the apple Genius Bar and would of had a new phone already. To bad apple phones suck compared to lg g5
vhicke said:
This is why people buy apple products. One trip to the apple Genius Bar and would of had a new phone already. To bad apple phones suck compared to lg g5
Click to expand...
Click to collapse
No. Its why people are impatient. It only ever leads to misery if you don't know what you are doing..
Didn't mean that to come across as being a know-it-all or superior. Just trying to point out... Dont be impatient, if you're unsure about somethin... do some research and try to understand what you're about to do, it will save you a lot of hassle/grief in the long run.
Anarchist77 said:
Dont be impatient, if you're unsure about somethin... do some research and try to understand what you're about to do, it will save you a lot of hassle/grief in the long run.
Click to expand...
Click to collapse
This. A lot of problems wouldn't exist if people took a bit of time beforehand.
what I find amusing is @autoprime told you it would brick in http://forum.xda-developers.com/showthread.php?t=3387595 but you flashed it before waiting for a reply. I hope you get it sorted, bricks are no fun.
Sent from my Nexus 6P using Tapatalk
I agree with autoprime. Even without receipts, some warranties are upheld just based on the time the device has been available to consumers. Give LG a shout and see what they have to say. Worse that can happen is stuck back where you are now. Good luck whatever you decide.:fingers-crossed:
midgarsfinest said:
I agree with autoprime. Even without receipts, some warranties are upheld just based on the time the device has been available to consumers. Give LG a shout and see what they have to say. Worse that can happen is stuck back where you are now. Good luck whatever you decide.:fingers-crossed:
Click to expand...
Click to collapse
Definitely this... Different issue, but my MS Band 2 tore, and Microsoft RMA'd it with no questions asked and no receipt...All because it was still within the first year of release. Nothing to lose at this point... Go for it! And good luck.
Anarchist77 said:
Dont be impatient, if you're unsure about somethin... do some research and try to understand what you're about to do, it will save you a lot of hassle/grief in the long run.
Click to expand...
Click to collapse
I have learned this as well over time. It's always better to wait until you are fully prepared and have a specific plan, hopefully with anecdotal evidence from others performing the same action. And always check MD5 / SHA-1 before you flash
kchannel9 said:
I have learned this as well over time. It's always better to wait until you are fully prepared and have a specific plan, hopefully with anecdotal evidence from others performing the same action. And always check MD5 / SHA-1 before you flash
Click to expand...
Click to collapse
Not a bad template for following any kind of guide actually. I found myself halfway through tutorials before reading comments and reviews that strongly discouraged what I was setting myself up to do.
One example was when I modded my first Nintendo Wii. A little over halfway, and after hours of downloading and extracting files, and purchasing an SD card, I read a review that it only worked on certain versions of the Wii. Further research helped me discover my Wii was one of the non-working versions.
Point being, a little research and digging can go a long way to avoid what could be preventable problems, regardless of what we're doing. Sadly, I'm an expert at failure lol. [emoji41]
"We've all done things we regret. It's how you respond that defines who you are."
kdz extract linux sd card write done
command link https://mega.nz/#!cJ9WUAiA!TSt9L5G3C...n8vx0pQ9ToxCFw
https://forum.xda-developers.com/g4/...-qfil-t3748946
---------- Post added at 12:03 PM ---------- Previous post was at 11:57 AM ----------
[email protected]:~/Downloads$ sudo dmesg -c >> /dev/null
[sudo] password for aaya:
[email protected]:~/Downloads$ dmesg
[email protected]:~/Downloads$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 58,4 GiB, 62730010624 bytes, 122519552 sectors
Units: 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: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 122519551 122517504 58,4G c W95 FAT32 (LBA)
[email protected]:~/Downloads$ cd kdz
[email protected]:~/Downloads/kdz$ sudo -s
[email protected]:~/Downloads/kdz# dd if=PrimaryGPT.bin of=/dev/sdb
48+0 records in
48+0 records out
24576 bytes (25 kB, 24 KiB) copied, 0,0441583 s, 557 kB/s
[email protected]:~/Downloads/kdz# sync
[email protected]ya-Aspire-E1-531:~/Downloads/kdz# ls -la /dev/disk/by-partlabel
total 0
drwxr-xr-x 2 root root 60 Луу 18 19:32 .
drwxr-xr-x 7 root root 140 Луу 18 19:32 ..
lrwxrwxrwx 1 root root 10 Луу 18 18:35 EFI\x20System\x20Partition -> ../../sda1
[email protected]:~/Downloads/kdz# cd kdz
bash: cd: kdz: No such file or directory
[email protected]:~/Downloads/kdz# for i in $(ls *.bin |egrep -v "(GPT|userdata)");do echo dd if=$i of=/dev/disk/by-partlabel/${i/\.bin};done
dd if=abootbak.bin of=/dev/disk/by-partlabel/abootbak
dd if=aboot.bin of=/dev/disk/by-partlabel/aboot
dd if=apdp.bin of=/dev/disk/by-partlabel/apdp
dd if=boot.bin of=/dev/disk/by-partlabel/boot
dd if=cache.bin of=/dev/disk/by-partlabel/cache
dd if=cdt.bin of=/dev/disk/by-partlabel/cdt
dd if=cmnlib64bak.bin of=/dev/disk/by-partlabel/cmnlib64bak
dd if=cmnlib64.bin of=/dev/disk/by-partlabel/cmnlib64
dd if=cmnlibbak.bin of=/dev/disk/by-partlabel/cmnlibbak
dd if=cmnlib.bin of=/dev/disk/by-partlabel/cmnlib
dd if=ddr.bin of=/dev/disk/by-partlabel/ddr
dd if=devcfgbak.bin of=/dev/disk/by-partlabel/devcfgbak
dd if=devcfg.bin of=/dev/disk/by-partlabel/devcfg
dd if=devinfo.bin of=/dev/disk/by-partlabel/devinfo
dd if=dip.bin of=/dev/disk/by-partlabel/dip
dd if=dpo.bin of=/dev/disk/by-partlabel/dpo
dd if=drm.bin of=/dev/disk/by-partlabel/drm
dd if=eksst.bin of=/dev/disk/by-partlabel/eksst
dd if=encrypt.bin of=/dev/disk/by-partlabel/encrypt
dd if=factory.bin of=/dev/disk/by-partlabel/factory
dd if=fota.bin of=/dev/disk/by-partlabel/fota
dd if=fsc.bin of=/dev/disk/by-partlabel/fsc
dd if=fsg.bin of=/dev/disk/by-partlabel/fsg
dd if=grow2.bin of=/dev/disk/by-partlabel/grow2
dd if=grow3.bin of=/dev/disk/by-partlabel/grow3
dd if=grow4.bin of=/dev/disk/by-partlabel/grow4
dd if=grow5.bin of=/dev/disk/by-partlabel/grow5
dd if=grow6.bin of=/dev/disk/by-partlabel/grow6
dd if=grow.bin of=/dev/disk/by-partlabel/grow
dd if=hypbak.bin of=/dev/disk/by-partlabel/hypbak
dd if=hyp.bin of=/dev/disk/by-partlabel/hyp
dd if=keymasterbak.bin of=/dev/disk/by-partlabel/keymasterbak
dd if=keymaster.bin of=/dev/disk/by-partlabel/keymaster
dd if=keystore.bin of=/dev/disk/by-partlabel/keystore
dd if=lafbak.bin of=/dev/disk/by-partlabel/lafbak
dd if=laf.bin of=/dev/disk/by-partlabel/laf
dd if=misc.bin of=/dev/disk/by-partlabel/misc
dd if=modem.bin of=/dev/disk/by-partlabel/modem
dd if=modemst1.bin of=/dev/disk/by-partlabel/modemst1
dd if=modemst2.bin of=/dev/disk/by-partlabel/modemst2
dd if=mpt.bin of=/dev/disk/by-partlabel/mpt
dd if=msadp.bin of=/dev/disk/by-partlabel/msadp
dd if=persist.bin of=/dev/disk/by-partlabel/persist
dd if=pmicbak.bin of=/dev/disk/by-partlabel/pmicbak
dd if=pmic.bin of=/dev/disk/by-partlabel/pmic
dd if=raw_resourcesbak.bin of=/dev/disk/by-partlabel/raw_resourcesbak
dd if=raw_resources.bin of=/dev/disk/by-partlabel/raw_resources
dd if=rct.bin of=/dev/disk/by-partlabel/rct
dd if=recoverybak.bin of=/dev/disk/by-partlabel/recoverybak
dd if=recovery.bin of=/dev/disk/by-partlabel/recovery
dd if=reserve.bin of=/dev/disk/by-partlabel/reserve
dd if=rpmbak.bin of=/dev/disk/by-partlabel/rpmbak
dd if=rpm.bin of=/dev/disk/by-partlabel/rpm
dd if=sec.bin of=/dev/disk/by-partlabel/sec
dd if=sns.bin of=/dev/disk/by-partlabel/sns
dd if=spare1.bin of=/dev/disk/by-partlabel/spare1
dd if=spare2.bin of=/dev/disk/by-partlabel/spare2
dd if=ssd.bin of=/dev/disk/by-partlabel/ssd
dd if=system.bin of=/dev/disk/by-partlabel/system
dd if=tzbak.bin of=/dev/disk/by-partlabel/tzbak
dd if=tz.bin of=/dev/disk/by-partlabel/tz
dd if=xbl2bak.bin of=/dev/disk/by-partlabel/xbl2bak
dd if=xbl2.bin of=/dev/disk/by-partlabel/xbl2
dd if=xblbak.bin of=/dev/disk/by-partlabel/xblbak
dd if=xbl.bin of=/dev/disk/by-partlabel/xbl
[email protected]:~/Downloads/kdz# for i in $(ls *.bin |egrep -v "(GPT|userdata)");do dd if=$i of=/dev/disk/by-partlabel/${i/\.bin};done
4096+0 records in
4096+0 records out
2097152 bytes (2,1 MB, 2,0 MiB) copied, 0,0645802 s, 32,5 MB/s
4096+0 records in
4096+0 records out
2097152 bytes (2,1 MB, 2,0 MiB) copied, 0,033826 s, 62,0 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0139195 s, 37,7 MB/s
81920+0 records in
81920+0 records out
41943040 bytes (42 MB, 40 MiB) copied, 0,538989 s, 77,8 MB/s
1048576+0 records in
1048576+0 records out
536870912 bytes (537 MB, 512 MiB) copied, 6,8639 s, 78,2 MB/s
8+0 records in
8+0 records out
4096 bytes (4,1 kB, 4,0 KiB) copied, 0,000314755 s, 13,0 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00478674 s, 110 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00568034 s, 92,3 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00660332 s, 79,4 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00483936 s, 108 MB/s
4096+0 records in
4096+0 records out
2097152 bytes (2,1 MB, 2,0 MiB) copied, 0,0297275 s, 70,5 MB/s
256+0 records in
256+0 records out
131072 bytes (131 kB, 128 KiB) copied, 0,00236585 s, 55,4 MB/s
256+0 records in
256+0 records out
131072 bytes (131 kB, 128 KiB) copied, 0,00274482 s, 47,8 MB/s
2048+0 records in
2048+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 0,0135021 s, 77,7 MB/s
2048+0 records in
2048+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 0,0120692 s, 86,9 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0153506 s, 34,2 MB/s
20480+0 records in
20480+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0,13946 s, 75,2 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00688644 s, 76,1 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0049967 s, 105 MB/s
135168+0 records in
135168+0 records out
69206016 bytes (69 MB, 66 MiB) copied, 1,01334 s, 68,3 MB/s
8192+0 records in
8192+0 records out
4194304 bytes (4,2 MB, 4,0 MiB) copied, 0,0511182 s, 82,1 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00611613 s, 85,7 MB/s
4096+0 records in
4096+0 records out
2097152 bytes (2,1 MB, 2,0 MiB) copied, 0,0170799 s, 123 MB/s
8+0 records in
8+0 records out
4096 bytes (4,1 kB, 4,0 KiB) copied, 0,000273026 s, 15,0 MB/s
8+0 records in
8+0 records out
4096 bytes (4,1 kB, 4,0 KiB) copied, 0,000179081 s, 22,9 MB/s
8+0 records in
8+0 records out
4096 bytes (4,1 kB, 4,0 KiB) copied, 0,000323429 s, 12,7 MB/s
8+0 records in
8+0 records out
4096 bytes (4,1 kB, 4,0 KiB) copied, 0,00018018 s, 22,7 MB/s
8+0 records in
8+0 records out
4096 bytes (4,1 kB, 4,0 KiB) copied, 0,000267083 s, 15,3 MB/s
7080+0 records in
7080+0 records out
3624960 bytes (3,6 MB, 3,5 MiB) copied, 0,0571791 s, 63,4 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00556187 s, 94,3 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00537099 s, 97,6 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00457723 s, 115 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0146511 s, 35,8 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00600904 s, 87,2 MB/s
98304+0 records in
98304+0 records out
50331648 bytes (50 MB, 48 MiB) copied, 0,67333 s, 74,8 MB/s
98304+0 records in
98304+0 records out
50331648 bytes (50 MB, 48 MiB) copied, 0,616455 s, 81,6 MB/s
65536+0 records in
65536+0 records out
33554432 bytes (34 MB, 32 MiB) copied, 0,404057 s, 83,0 MB/s
176128+0 records in
176128+0 records out
90177536 bytes (90 MB, 86 MiB) copied, 1,1437 s, 78,8 MB/s
4096+0 records in
4096+0 records out
2097152 bytes (2,1 MB, 2,0 MiB) copied, 0,0244209 s, 85,9 MB/s
4096+0 records in
4096+0 records out
2097152 bytes (2,1 MB, 2,0 MiB) copied, 0,0240775 s, 87,1 MB/s
65536+0 records in
65536+0 records out
33554432 bytes (34 MB, 32 MiB) copied, 0,426183 s, 78,7 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00713832 s, 73,4 MB/s
65536+0 records in
65536+0 records out
33554432 bytes (34 MB, 32 MiB) copied, 0,405352 s, 82,8 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0956617 s, 5,5 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00720851 s, 72,7 MB/s
8192+0 records in
8192+0 records out
4194304 bytes (4,2 MB, 4,0 MiB) copied, 0,0700125 s, 59,9 MB/s
8192+0 records in
8192+0 records out
4194304 bytes (4,2 MB, 4,0 MiB) copied, 0,0754277 s, 55,6 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0422099 s, 12,4 MB/s
82944+0 records in
82944+0 records out
42467328 bytes (42 MB, 40 MiB) copied, 0,51604 s, 82,3 MB/s
82944+0 records in
82944+0 records out
42467328 bytes (42 MB, 40 MiB) copied, 0,542084 s, 78,3 MB/s
64+0 records in
64+0 records out
32768 bytes (33 kB, 32 KiB) copied, 0,00882342 s, 3,7 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0230715 s, 22,7 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0240835 s, 21,8 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,00557492 s, 94,0 MB/s
12288+0 records in
12288+0 records out
6291456 bytes (6,3 MB, 6,0 MiB) copied, 0,100289 s, 62,7 MB/s
8192+0 records in
8192+0 records out
4194304 bytes (4,2 MB, 4,0 MiB) copied, 0,0708991 s, 59,2 MB/s
4096+0 records in
4096+0 records out
2097152 bytes (2,1 MB, 2,0 MiB) copied, 0,042133 s, 49,8 MB/s
1024+0 records in
1024+0 records out
524288 bytes (524 kB, 512 KiB) copied, 0,0214201 s, 24,5 MB/s
dd: writing to '/dev/disk/by-partlabel/system': No space left on device
1740777+0 records in
1740776+0 records out
891277312 bytes (891 MB, 850 MiB) copied, 11,3213 s, 78,7 MB/s
dd: writing to '/dev/disk/by-partlabel/tzbak': No space left on device
1+0 records in
0+0 records out
0 bytes copied, 0,0257604 s, 0,0 kB/s
dd: writing to '/dev/disk/by-partlabel/tz': No space left on device
1+0 records in
0+0 records out
0 bytes copied, 0,0130488 s, 0,0 kB/s
dd: writing to '/dev/disk/by-partlabel/xbl2bak': No space left on device
1+0 records in
0+0 records out
0 bytes copied, 0,0112316 s, 0,0 kB/s
dd: writing to '/dev/disk/by-partlabel/xbl2': No space left on device
1+0 records in
0+0 records out
0 bytes copied, 0,00448855 s, 0,0 kB/s
dd: writing to '/dev/disk/by-partlabel/xblbak': No space left on device
1+0 records in
0+0 records out
0 bytes copied, 0,00429619 s, 0,0 kB/s
dd: writing to '/dev/disk/by-partlabel/xbl': No space left on device
1+0 records in
0+0 records out
0 bytes copied, 0,00457151 s, 0,0 kB/s
[email protected]re-E1-531:~/Downloads/kdz#

Accessing /dev/block/dm-2 with write access

I'm using a Xiaomi Redmi Note 9S with MIUI 11.0.10 which is Android 10. There seems to be some bug with root that can soft-brick your phone. When you boot into TWRP, it can no longer mount the System partition - pressing it, will do nothing.
So I connect via adb to the phone. It's root adb and I am root according to "whoami".
cat /proc/partitions output:
Code:
~ # cat /proc/partitions
major minor #blocks name
1 0 8192 ram0
1 1 8192 ram1
1 2 8192 ram2
1 3 8192 ram3
1 4 8192 ram4
1 5 8192 ram5
1 6 8192 ram6
1 7 8192 ram7
1 8 8192 ram8
1 9 8192 ram9
1 10 8192 ram10
1 11 8192 ram11
1 12 8192 ram12
1 13 8192 ram13
1 14 8192 ram14
1 15 8192 ram15
8 0 120479744 sda
8 1 8 sda1
8 2 32768 sda2
8 3 1024 sda3
8 4 512 sda4
8 5 512 sda5
8 6 131072 sda6
8 7 1048576 sda7
8 8 131072 sda8
8 9 131072 sda9
8 10 64 sda10
8 11 64 sda11
8 12 16384 sda12
8 13 393216 sda13
8 14 393216 sda14
8 15 16384 sda15
259 0 8192 sda16
259 1 8388608 sda17
259 2 109786956 sda18
8 16 8192 sdb
8 17 7168 sdb1
8 18 128 sdb2
8 64 4194304 sde
8 65 512 sde1
8 66 4096 sde2
8 67 512 sde3
8 68 262144 sde4
8 69 1024 sde5
8 70 4096 sde6
8 71 32768 sde7
8 72 8192 sde8
8 73 32768 sde9
8 74 512 sde10
8 75 512 sde11
8 76 512 sde12
8 77 128 sde13
8 78 64 sde14
8 79 2048 sde15
259 3 2048 sde16
259 4 512 sde17
259 5 4096 sde18
259 6 512 sde19
259 7 262144 sde20
259 8 1024 sde21
259 9 4096 sde22
259 10 32768 sde23
259 11 8192 sde24
259 12 32768 sde25
259 13 512 sde26
259 14 512 sde27
259 15 512 sde28
259 16 128 sde29
259 17 64 sde30
259 18 2048 sde31
259 19 2048 sde32
259 20 4 sde33
259 21 1024 sde34
259 22 256 sde35
259 23 8192 sde36
259 24 33424 sde37
259 25 4 sde38
259 26 1024 sde39
259 27 8192 sde40
259 28 2048 sde41
259 29 65536 sde42
259 30 128 sde43
259 31 32 sde44
259 32 32 sde45
259 33 512 sde46
259 34 28 sde47
259 35 512 sde48
259 36 1024 sde49
259 37 64 sde50
259 38 131072 sde51
259 39 24576 sde52
259 40 64 sde53
259 41 24576 sde54
259 42 131072 sde55
8 32 8192 sdc
8 33 7168 sdc1
8 34 128 sdc2
8 80 131072 sdf
8 81 104 sdf1
8 82 2048 sdf2
8 83 2048 sdf3
8 84 10240 sdf4
8 85 128 sdf5
8 48 131072 sdd
8 49 104 sdd1
8 50 128 sdd2
8 51 1024 sdd3
253 0 934804 dm-0
253 1 1403780 dm-1
253 2 2356452 dm-2
df -h output after flashing new .EU ROM - this is how it should look like:
Code:
~ # df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 2.7G 752.0K 2.7G 0% /dev
tmpfs 2.7G 0 2.7G 0% /mnt
tmpfs 2.7G 0 2.7G 0% /apex
tmpfs 2.7G 6.4M 2.7G 0% /tmp
/dev/block/sda18 104.7G 14.5G 90.2G 14% /data
/dev/block/sda18 104.7G 14.5G 90.2G 14% /sdcard
/dev/block/dm-1 1.3G 1.2G 33.4M 97% /vendor
/dev/block/sda13 356.0M 428.0K 328.7M 0% /cache
/dev/block/dm-2 2.2G 2.1G 109.5M 95% /system_root
/dev/block/dm-2 2.2G 2.1G 109.5M 95% /system
df -h output - what it actually looks like after soft-brick:
Code:
~ # df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 2.7G 752.0K 2.7G 0% /dev
tmpfs 2.7G 0 2.7G 0% /mnt
tmpfs 2.7G 0 2.7G 0% /apex
tmpfs 2.7G 2.6M 2.7G 0% /tmp
/dev/block/sda13 356.0M 1.1M 328.0M 0% /cache
/dev/block/sda18 104.7G 15.3G 89.4G 15% /data
/dev/block/sda18 104.7G 15.3G 89.4G 15% /sdcard
Trying to mount the "dm" devices, you can mount dm-0 and dm-1, but dm-2 (which should be system) fails:
Code:
~ # mount -r /dev/block/dm-2 /fufu/ -v -t ext4
mount: mounting /dev/block/dm-2 on /fufu/ failed: Read-only file system
DM-verity is disabled:
Code:
adb enable-verity
verity not enabled - ENG build
e2fsck fails because it claims to have no write access:
Code:
~ # e2fsck /dev/block/dm-2
e2fsck 1.44.4 (18-Aug-2018)
e2fsck: Operation not permitted while trying to open /dev/block/dm-2
You must have r/w access to the filesystem or be root
~ # whoami
root
File system is still intact. You can "dd" the dm-2 partition to some other place and access it via Linux or an ext4 viewer on Windows (https://www.diskinternals.com/linux-reader/ for example). You can also do it via adb: "adb pull /dev/block/dm-2"
When mounting (see above) and then looking in the log (dmesg):
Code:
<6>[ 1057.614782] EXT4-fs (dm-2): INFO: recovery required on readonly filesystem
<3>[ 1057.614797] EXT4-fs (dm-2): write access unavailable, cannot proceed
tune2fs for dm-1 and dm-2:
Code:
~ # tune2fs -l /dev/block/dm-1
tune2fs 1.44.4 (18-Aug-2018)
Filesystem volume name: vendor
Last mounted on: <not available>
Filesystem UUID: 6d16bab1-58d9-3c5d-8f14-f608f924affd
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode filetype extent sparse_super large_file uninit_bg
Filesystem flags: unsigned_directory_hash
Default mount options: (none)
Filesystem state: clean
Errors behavior: Remount read-only
Filesystem OS type: Linux
Inode count: 87824
Block count: 350944
Reserved block count: 0
Free blocks: 12643
Free inodes: 84860
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 87
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 7984
Inode blocks per group: 499
Last mount time: n/a
Last write time: Thu Jan 1 08:00:00 1970
Mount count: 0
Maximum mount count: -1
Last checked: Thu Jan 1 08:00:00 1970
Check interval: 0 (<none>)
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory hash: tea
Journal backup: inode blocks
~ # tune2fs -l /dev/block/dm-2
tune2fs 1.44.4 (18-Aug-2018)
Filesystem volume name: /
Last mounted on: /
Filesystem UUID: bbcb9ad2-245d-035f-a549-7d500312efe1
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode filetype needs_recovery extent sparse_super large_file uninit_bg
Filesystem flags: unsigned_directory_hash
Default mount options: (none)
Filesystem state: clean
Errors behavior: Remount read-only
Filesystem OS type: Linux
Inode count: 147456
Block count: 589113
Reserved block count: 0
Free blocks: 32124
Free inodes: 142168
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 143
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
Last mount time: Sun Aug 2 03:07:27 2020
Last write time: Thu Jan 1 08:00:00 1970
Mount count: 4
Maximum mount count: -1
Last checked: Thu Jan 1 08:00:00 1970
Check interval: 0 (<none>)
Lifetime writes: 692 kB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory hash: tea
Journal backup: inode blocks
-> dm-2 has a flag called "needs_recovery" set.
- I can run e2fsck on the dd exported image of dm-2 which recovers it fine, but I cannot dd it back to dm-2 - again no write access:
Code:
~ # dd if=/sdcard/systemfile.img of=/dev/block/dm-2
dd: writing '/dev/block/dm-2': Operation not permitted
1+0 records in
0+0 records out
0 bytes (0B) copied, 0.000131 seconds, 0B/s
Ideas how I can write anything to /dev/block/dm-2 (I also cannot change anything via tune2fs to the other dm devices).
Thank you
@herlgl You should take a look at this or this. Good luck!
have you solved? how?

Categories

Resources