I wanted to extract boot.img from an existing rom, following this wiki:
http://android-dls.com/wiki/index.p..._Images#Structure_of_boot_and_recovery_images
But it seems that on Stock Rom (actually I'm using Zeus rom, based on stock) there is no /proc/mtd that would tell me where to find the "boot" partition. I think it should be one of these:
179 0 1912832 mmcblk0
179 1 128 mmcblk0p1
179 2 512 mmcblk0p2
179 3 6144 mmcblk0p3
179 4 6144 mmcblk0p4
179 5 2048 mmcblk0p5
179 6 2048 mmcblk0p6
179 7 8192 mmcblk0p7
179 8 660480 mmcblk0p8
179 9 1161088 mmcblk0p9
179 10 65536 mmcblk0p10
179 11 128 mmcblk0p11
179 12 128 mmcblk0p12
179 16 15637504 mmcblk1
179 17 15633408 mmcblk1p1
Do anyone know where the boot partition is hiding? Or have an idea on how to find where it is?
Here are some of the partitions:
Code:
loop0 =
/dev/block/mmcblk0 =
/dev/block/mmcblk0p1 =
/dev/block/mmcblk0p2 =
/dev/block/mmcblk0p3 = /boot
/dev/block/mmcblk0p4 = /recovery
/dev/block/mmcblk0p5 = /lgdrm
/dev/block/mmcblk0p6 = /dvp/userdata
/dev/block/mmcblk0p7 =
/dev/block/mmcblk0p8 = /system
/dev/block/mmcblk0p9 = /data
/dev/block/mmcblk0p10 = /cache
/dev/block/mmcblk0p11 =
/dev/block/mmcblk0p12 =
/dev/block/mmcblk1 =
/dev/block/mmcblk1p1 = /sdcard
dm-0 =
Help..Can any one upload log for S2 x526 command "fdisk /dev/block/mmcblk0 " while the phone is in TWRP.
I accidentally clicked resize partition in TWRP 3.1.1.0 x526 while converting to f2fs. Now the data partition is same as sdcard. Any way to reduce it to earlier size of 4GB. It is not causing any problem but i wont be able to create back up since data is fused to sdcard. My internal storage partition is missing . I tried these methods but nothing worked.
1. Install stock rom -
2. Install Lineage
3. Install AICP
I need e2fsck commands to restore it back. Can any one upload log for S2 x526 command "fdisk /dev/block/mmcblk0 " while the phone is in TWRP.
please provide fdisk -l /dev/block/mmcblk0 output. This command has to be run while the phone is in TWRp. I have attached mine.
Code:
C:\adb>adb shell
~#fdisk -l /dev/block/mmcblk0
fdisk -l /dev/block/mmcblk0
Found valid GPT with protective MBR; using GPT
Disk /dev/block/mmcblk0: 61071360 sectors, 1148M
Logical sector size: 512
Disk identifier (GUID): 98101b32-bbe2-4bf2-a06e-2bb33d000c20
Partition table holds up to 56 entries
First usable sector is 34, last usable sector is 61071326
Number Start (sector) End (sector) Size Code Name
1 131072 303103 84.0M 0700 modem
2 393216 393217 1024 0700 fsc
3 393218 393233 8192 0700 ssd
4 393234 394257 512K 0700 sbl1
5 394258 395281 512K 0700 sbl1bak
6 395282 396305 512K 0700 rpm
7 396306 397329 512K 0700 rpmbak
8 397330 401425 2048K 0700 tz
9 401426 405521 2048K 0700 tzbak
10 405522 406545 512K 0700 hyp
11 406546 407569 512K 0700 hypbak
12 407570 440337 16.0M 0700 dsp
13 440338 443409 1536K 0700 modemst1
14 443410 446481 1536K 0700 modemst2
15 446482 446483 1024 0700 OEMCONFIG
16 446484 577555 64.0M 0700 oeminfo
17 655360 655423 32768 0700 DDR
18 655424 658495 1536K 0700 fsg
19 658496 658527 16384 0700 sec
20 658528 760927 50.0M 0700 splash
21 760928 762975 1024K 0700 aboot
22 762976 765023 1024K 0700 abootbak
23 765024 896095 64.0M 0700 boot
24 896096 1027167 64.0M 0700 recovery
25 1027168 1029215 1024K 0700 devinfo
26 1048576 1114111 32.0M 0700 persist
27 1179648 9568255 4096M 0700 system
28 9568256 10092543 256M 0700 cache
29 10092544 10094591 1024K 0700 misc
30 10094592 10095615 512K 0700 factory
31 10095616 10096639 512K 0700 bootconfig
32 10096640 10097663 512K 0700 rootconfig
33 10097664 10098687 512K 0700 recoveryconfig
34 10098688 10099711 512K 0700 letvconfig
35 10099712 10100735 512K 0700 letveui
36 10100736 10101759 512K 0700 letvsecure
37 10101760 10102783 512K 0700 letvreserve
38 10102784 10164223 30.0M 0700 kernellog
39 10164224 10165247 512K 0700 keystore
40 10165248 10165311 32768 0700 config
41 10165312 10296383 64.0M 0700 oem
42 10354688 10354751 32768 0700 limits
43 10485760 10486783 512K 0700 mota
44 10486784 10487295 256K 0700 devcfg
45 10487296 10489343 1024K 0700 dip
46 10489344 10554879 32.0M 0700 mdtp
47 10554880 10555903 512K 0700 syscfg
48 10555904 10564095 4096K 0700 mcfg
49 10616832 10617343 256K 0700 cmnlib
50 10617344 10617855 256K 0700 keymaster
51 10617856 10618367 256K 0700 cmnlibbak
52 10618368 10618879 256K 0700 keymasterbak
53 10747904 10748415 256K 0700 apdp
54 10748416 10748927 256K 0700 msadp
55 10748928 10748943 8192 0700 dpo
56 10748944 61071326 23.9G 0700 userdata
Hi guys, i going to publish partition tables for our Redmi Note 8 Global (ginkgo variant).
This Thread is based on this thread.
The goal is to know partition table of our Redmi Note 8.
Code:
General Device Name: Redmi Note 8 Global
Manufacturer Product Name: M1908C3JH
Processor: Snapdragon 665
AOS version: Android P PKQ1.190616.001
Radio FW version: MPSS.AT.4.3.1-00270-NICOBAR_GEN_PACK-1.262213.1.269084.1
System FW version: Miui Global 11.0.9 (PCOMIXM)
Service Provider/ Branding: Unlocked
Country: Global
Output of command:
Code:
# parted /dev/block/mmcblk0 print
Code:
Model: MMC S0J9K9 (sd/mmc)
Disk /dev/block/mmcblk0: 125GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 20.5kB 28.7kB 8192B switch
2 28.7kB 36.9kB 8192B ssd
3 36.9kB 69.6kB 32.8kB secdata
4 69.6kB 102kB 32.8kB limits
5 102kB 135kB 32.8kB multiimgoem
6 135kB 168kB 32.8kB multiimgqti
7 168kB 233kB 65.5kB qupfw
8 233kB 299kB 65.5kB qupfwbak
9 299kB 365kB 65.5kB vbmeta
10 365kB 430kB 65.5kB vbmetabak
11 430kB 561kB 131kB xbl_config
12 561kB 692kB 131kB xbl_configbak
13 692kB 823kB 131kB devcfg
14 823kB 954kB 131kB devcfgbak
15 954kB 1049kB 94.2kB bk0
16 1049kB 1180kB 131kB storsec
17 1180kB 1311kB 131kB fsc
18 1311kB 1573kB 262kB apdp
19 1573kB 2097kB 524kB rpm
20 2097kB 2621kB 524kB rpmbak
21 2621kB 3146kB 524kB hyp
22 3146kB 3670kB 524kB hypbak
23 3670kB 4194kB 524kB keymaster
24 4194kB 4719kB 524kB keymasterbak
25 4719kB 5243kB 524kB cmnlib
26 5243kB 5767kB 524kB cmnlib64
27 5767kB 6291kB 524kB cmnlibbak
28 6291kB 6816kB 524kB cmnlib64bak
29 6816kB 7340kB 524kB keystore
30 7340kB 7864kB 524kB frp
31 7864kB 8389kB 524kB catefv
32 8389kB 8913kB 524kB uefivarstore
33 8913kB 9961kB 1049kB abl
34 9961kB 11.0MB 1049kB ablbak
35 11.0MB 12.1MB 1049kB ddr
36 12.1MB 13.1MB 1049kB bluetooth
37 13.1MB 14.2MB 1049kB bluetoothbak
38 14.2MB 15.2MB 1049kB misc
39 15.2MB 16.3MB 1049kB dip
40 16.3MB 17.3MB 1049kB toolsfv
41 17.3MB 18.4MB 1049kB catecontentfv
42 18.4MB 20.4MB 2097kB imagefv hidden
43 20.4MB 22.5MB 2097kB imagefvbak hidden
44 22.5MB 24.6MB 2097kB uefisecapp
45 24.6MB 26.7MB 2097kB uefisecappbak
46 26.7MB 28.8MB 2097kB cateloader
47 28.8MB 30.9MB 2097kB modemst1
48 30.9MB 33.0MB 2097kB modemst2
49 33.0MB 36.7MB 3670kB xbl
50 36.7MB 40.4MB 3670kB xblbak
51 40.4MB 44.6MB 4194kB tz
52 44.6MB 48.8MB 4194kB tzbak
53 48.8MB 53.0MB 4194kB mdtpsecapp
54 53.0MB 57.1MB 4194kB mdtpsecappbak
55 57.1MB 65.5MB 8389kB spunvm
56 65.5MB 67.1MB 1573kB bk1
57 67.1MB 83.9MB 16.8MB devinfo
58 83.9MB 92.3MB 8389kB logfs
59 92.3MB 103MB 10.5MB fsg
60 103MB 120MB 16.8MB ext4 metadata
61 120MB 134MB 14.7MB bk2
62 134MB 151MB 16.8MB oops
63 151MB 176MB 25.2MB dtbo
64 176MB 201MB 25.2MB dtbobak
65 201MB 235MB 33.6MB mdtp
66 235MB 268MB 33.6MB mdtpbak
67 268MB 302MB 33.6MB ext4 dsp
68 302MB 336MB 33.6MB ext4 dspbak
69 336MB 403MB 67.1MB ext4 persist
70 403MB 470MB 67.1MB ext4 persistbak
71 470MB 503MB 33.6MB logo
72 503MB 570MB 67.1MB boot
73 570MB 638MB 67.1MB bootbak
74 638MB 705MB 67.1MB splash
75 705MB 772MB 67.1MB logdump
76 772MB 839MB 67.1MB recovery
77 839MB 973MB 134MB rawdump
78 973MB 1107MB 134MB minidump
79 1107MB 1510MB 403MB exaid
80 1510MB 1778MB 268MB fat16 modem
81 1778MB 2047MB 268MB fat16 modembak
82 2047MB 2449MB 403MB ext4 cache
83 2449MB 2466MB 16.8MB gsort
84 2466MB 3540MB 1074MB ext4 cust
85 3540MB 5151MB 1611MB ext2 vendor
86 5151MB 9982MB 4832MB ext2 system
87 9982MB 125GB 115GB userdata
Output of command:
Code:
# gdisk /dev/block/mmcblk0
# p
Code:
Disk /dev/block/mmcblk0: 244285440 sectors, 116.5 GiB
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 4DAE07C7-651E-FE9A-E8E4-46303B32888B
Partition table holds up to 88 entries
Main partition table begins at sector 2 and ends at sector 23
First usable sector is 34, last usable sector is 244285406
Partitions will be aligned on 8-sector boundaries
Total free space is 6 sectors (3.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 40 55 8.0 KiB FFFF switch
2 56 71 8.0 KiB FFFF ssd
3 72 135 32.0 KiB FFFF secdata
4 136 199 32.0 KiB FFFF limits
5 200 263 32.0 KiB FFFF multiimgoem
6 264 327 32.0 KiB FFFF multiimgqti
7 328 455 64.0 KiB FFFF qupfw
8 456 583 64.0 KiB FFFF qupfwbak
9 584 711 64.0 KiB FFFF vbmeta
10 712 839 64.0 KiB FFFF vbmetabak
11 840 1095 128.0 KiB FFFF xbl_config
12 1096 1351 128.0 KiB FFFF xbl_configbak
13 1352 1607 128.0 KiB FFFF devcfg
14 1608 1863 128.0 KiB FFFF devcfgbak
15 1864 2047 92.0 KiB FFFF bk0
16 2048 2303 128.0 KiB FFFF storsec
17 2304 2559 128.0 KiB FFFF fsc
18 2560 3071 256.0 KiB FFFF apdp
19 3072 4095 512.0 KiB FFFF rpm
20 4096 5119 512.0 KiB FFFF rpmbak
21 5120 6143 512.0 KiB FFFF hyp
22 6144 7167 512.0 KiB FFFF hypbak
23 7168 8191 512.0 KiB FFFF keymaster
24 8192 9215 512.0 KiB FFFF keymasterbak
25 9216 10239 512.0 KiB FFFF cmnlib
26 10240 11263 512.0 KiB FFFF cmnlib64
27 11264 12287 512.0 KiB FFFF cmnlibbak
28 12288 13311 512.0 KiB FFFF cmnlib64bak
29 13312 14335 512.0 KiB FFFF keystore
30 14336 15359 512.0 KiB FFFF frp
31 15360 16383 512.0 KiB FFFF catefv
32 16384 17407 512.0 KiB FFFF uefivarstore
33 17408 19455 1024.0 KiB FFFF abl
34 19456 21503 1024.0 KiB FFFF ablbak
35 21504 23551 1024.0 KiB FFFF ddr
36 23552 25599 1024.0 KiB FFFF bluetooth
37 25600 27647 1024.0 KiB FFFF bluetoothbak
38 27648 29695 1024.0 KiB FFFF misc
39 29696 31743 1024.0 KiB FFFF dip
40 31744 33791 1024.0 KiB FFFF toolsfv
41 33792 35839 1024.0 KiB FFFF catecontentfv
42 35840 39935 2.0 MiB FFFF imagefv
43 39936 44031 2.0 MiB FFFF imagefvbak
44 44032 48127 2.0 MiB FFFF uefisecapp
45 48128 52223 2.0 MiB FFFF uefisecappbak
46 52224 56319 2.0 MiB FFFF cateloader
47 56320 60415 2.0 MiB FFFF modemst1
48 60416 64511 2.0 MiB FFFF modemst2
49 64512 71679 3.5 MiB FFFF xbl
50 71680 78847 3.5 MiB FFFF xblbak
51 78848 87039 4.0 MiB FFFF tz
52 87040 95231 4.0 MiB FFFF tzbak
53 95232 103423 4.0 MiB FFFF mdtpsecapp
54 103424 111615 4.0 MiB FFFF mdtpsecappbak
55 111616 127999 8.0 MiB FFFF spunvm
56 128000 131071 1.5 MiB FFFF bk1
57 131072 163839 16.0 MiB FFFF devinfo
58 163840 180223 8.0 MiB FFFF logfs
59 180224 200703 10.0 MiB FFFF fsg
60 200704 233471 16.0 MiB FFFF metadata
61 233472 262143 14.0 MiB FFFF bk2
62 262144 294911 16.0 MiB FFFF oops
63 294912 344063 24.0 MiB FFFF dtbo
64 344064 393215 24.0 MiB FFFF dtbobak
65 393216 458751 32.0 MiB FFFF mdtp
66 458752 524287 32.0 MiB FFFF mdtpbak
67 524288 589823 32.0 MiB FFFF dsp
68 589824 655359 32.0 MiB FFFF dspbak
69 655360 786431 64.0 MiB FFFF persist
70 786432 917503 64.0 MiB FFFF persistbak
71 917504 983039 32.0 MiB 8300 logo
72 983040 1114111 64.0 MiB FFFF boot
73 1114112 1245183 64.0 MiB FFFF bootbak
74 1245184 1376255 64.0 MiB FFFF splash
75 1376256 1507327 64.0 MiB FFFF logdump
76 1507328 1638399 64.0 MiB FFFF recovery
77 1638400 1900543 128.0 MiB FFFF rawdump
78 1900544 2162687 128.0 MiB FFFF minidump
79 2162688 2949119 384.0 MiB FFFF exaid
80 2949120 3473407 256.0 MiB 0700 modem
81 3473408 3997695 256.0 MiB FFFF modembak
82 3997696 4784127 384.0 MiB FFFF cache
83 4784128 4816895 16.0 MiB FFFF gsort
84 4816896 6914047 1024.0 MiB 8300 cust
85 6914048 10059775 1.5 GiB FFFF vendor
86 10059776 19496959 4.5 GiB FFFF system
87 19496960 244285406 107.2 GiB FFFF userdata
Some Filenames that refers to this corresponding partitions:
(according to Xioami flash_all.sh)
Code:
-qupfw(qupv3fw.elf)
-qupfwbak(qupv3fw.elf)
-vbmeta(vbmeta.img)
-vbmetabak(vbmeta.img)
-xbl_config(xbl_config.elf)
-xbl_configbak(xbl_config.elf)
-devcfg(devcfg.mbn)
-devcfgbak(devcfg.mbn)
-storsec(storsec.mbn)
-rpm(rpm.mbn)
-rpmbak(rpm.mbn)
-hyp(hyp.mbn)
-hypbak(hyp.mbn)
-keymaster(km4.mbn)
-keymasterbak(km4.mbn)
-cmnlib(cmnlib.mbn)
-cmnlib64(cmnlib64.mbn)
-cmnlibbak(cmnlib.mbn)
-cmnlib64bak(cmnlib64.mbn)
-abl(abl.elf)
-ablbak(abl.elf)
-bluetooth(BTFM.bin)
-bluetoothbak(BTFM.bin)
-imagefv(imagefv.elf)
-imagefvbak(imagefv.elf)
-uefisecapp(uefi_sec.mbn)
-uefisecappbak(uefi_sec.mbn)
-xbl(xbl.elf)
-xblbak(xbl.elf)
-tz(tz.mbn)
-tzbak(tz.mbn)
-logfs(logfs_ufs_8mb.bin)
-metadata(metadata.img)
-dtbo(dtbo.img)
-dtbobak(dtbo.img)
-dsp(dspso.bin)
-dspbak(dspso.bin)
-boot(boot.img)
-bootbak(boot.img)
-recovery(recovery.img)
-modem(NON-HLOS.bin)
-modembak(NON-HLOS.bin)
-cache(cache.img)
-cust(cust.img)
-vendor(vendor.img)
-system(system.img)
-userdata(userdata.img)
Partitions With By-name:
Code:
# ls -lsah /dev/block/bootdevice/by-name/
Code:
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 abl -> /dev/block/mmcblk0p33
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 ablbak -> /dev/block/mmcblk0p34
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 apdp -> /dev/block/mmcblk0p18
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 bk0 -> /dev/block/mmcblk0p15
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 bk1 -> /dev/block/mmcblk0p56
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 bk2 -> /dev/block/mmcblk0p61
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 bluetooth -> /dev/block/mmcblk0p36
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 bluetoothbak -> /dev/block/mmcblk0p37
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 boot -> /dev/block/mmcblk0p72
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 bootbak -> /dev/block/mmcblk0p73
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 cache -> /dev/block/mmcblk0p82
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 catecontentfv -> /dev/block/mmcblk0p41
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 catefv -> /dev/block/mmcblk0p31
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 cateloader -> /dev/block/mmcblk0p46
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 cmnlib -> /dev/block/mmcblk0p25
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 cmnlib64 -> /dev/block/mmcblk0p26
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 cmnlib64bak -> /dev/block/mmcblk0p28
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 cmnlibbak -> /dev/block/mmcblk0p27
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 cust -> /dev/block/mmcblk0p84
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 ddr -> /dev/block/mmcblk0p35
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 devcfg -> /dev/block/mmcblk0p13
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 devcfgbak -> /dev/block/mmcblk0p14
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 devinfo -> /dev/block/mmcblk0p57
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 dip -> /dev/block/mmcblk0p39
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 dsp -> /dev/block/mmcblk0p67
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 dspbak -> /dev/block/mmcblk0p68
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 dtbo -> /dev/block/mmcblk0p63
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 dtbobak -> /dev/block/mmcblk0p64
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 exaid -> /dev/block/mmcblk0p79
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 frp -> /dev/block/mmcblk0p30
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 fsc -> /dev/block/mmcblk0p17
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 fsg -> /dev/block/mmcblk0p59
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 gsort -> /dev/block/mmcblk0p83
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 hyp -> /dev/block/mmcblk0p21
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 hypbak -> /dev/block/mmcblk0p22
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 imagefv -> /dev/block/mmcblk0p42
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 imagefvbak -> /dev/block/mmcblk0p43
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 keymaster -> /dev/block/mmcblk0p23
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 keymasterbak -> /dev/block/mmcblk0p24
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 keystore -> /dev/block/mmcblk0p29
0 lrwxrwxrwx 1 root root 20 1970-07-11 22:12 limits -> /dev/block/mmcblk0p4
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 logdump -> /dev/block/mmcblk0p75
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 logfs -> /dev/block/mmcblk0p58
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 logo -> /dev/block/mmcblk0p71
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 mdtp -> /dev/block/mmcblk0p65
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 mdtpbak -> /dev/block/mmcblk0p66
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 mdtpsecapp -> /dev/block/mmcblk0p53
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 mdtpsecappbak -> /dev/block/mmcblk0p54
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 metadata -> /dev/block/mmcblk0p60
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 minidump -> /dev/block/mmcblk0p78
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 misc -> /dev/block/mmcblk0p38
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 modem -> /dev/block/mmcblk0p80
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 modembak -> /dev/block/mmcblk0p81
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 modemst1 -> /dev/block/mmcblk0p47
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 modemst2 -> /dev/block/mmcblk0p48
0 lrwxrwxrwx 1 root root 20 1970-07-11 22:12 multiimgoem -> /dev/block/mmcblk0p5
0 lrwxrwxrwx 1 root root 20 1970-07-11 22:12 multiimgqti -> /dev/block/mmcblk0p6
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 oops -> /dev/block/mmcblk0p62
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 persist -> /dev/block/mmcblk0p69
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 persistbak -> /dev/block/mmcblk0p70
0 lrwxrwxrwx 1 root root 20 1970-07-11 22:12 qupfw -> /dev/block/mmcblk0p7
0 lrwxrwxrwx 1 root root 20 1970-07-11 22:12 qupfwbak -> /dev/block/mmcblk0p8
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 rawdump -> /dev/block/mmcblk0p77
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 recovery -> /dev/block/mmcblk0p76
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 rpm -> /dev/block/mmcblk0p19
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 rpmbak -> /dev/block/mmcblk0p20
0 lrwxrwxrwx 1 root root 20 1970-07-11 22:12 secdata -> /dev/block/mmcblk0p3
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 splash -> /dev/block/mmcblk0p74
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 spunvm -> /dev/block/mmcblk0p55
0 lrwxrwxrwx 1 root root 20 1970-07-11 22:12 ssd -> /dev/block/mmcblk0p2
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 storsec -> /dev/block/mmcblk0p16
0 lrwxrwxrwx 1 root root 20 1970-07-11 22:12 switch -> /dev/block/mmcblk0p1
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 system -> /dev/block/mmcblk0p86
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 toolsfv -> /dev/block/mmcblk0p40
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 tz -> /dev/block/mmcblk0p51
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 tzbak -> /dev/block/mmcblk0p52
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 uefisecapp -> /dev/block/mmcblk0p44
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 uefisecappbak -> /dev/block/mmcblk0p45
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 uefivarstore -> /dev/block/mmcblk0p32
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 userdata -> /dev/block/mmcblk0p87
0 lrwxrwxrwx 1 root root 20 1970-07-11 22:12 vbmeta -> /dev/block/mmcblk0p9
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 vbmetabak -> /dev/block/mmcblk0p10
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 vendor -> /dev/block/mmcblk0p85
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 xbl -> /dev/block/mmcblk0p49
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 xbl_config -> /dev/block/mmcblk0p11
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 xbl_configbak -> /dev/block/mmcblk0p12
0 lrwxrwxrwx 1 root root 21 1970-07-11 22:12 xblbak -> /dev/block/mmcblk0p50
Partitions With By-Block:
Code:
# ls -lsah /dev/block/ | grep mmcblk0
Code:
0 brw------- 1 root root 179, 0 1970-07-11 22:12 mmcblk0
0 brw------- 1 root root 179, 1 1970-07-11 22:12 mmcblk0p1
0 brw------- 1 root root 179, 10 1970-07-11 22:12 mmcblk0p10
0 brw------- 1 root root 179, 11 1970-07-11 22:12 mmcblk0p11
0 brw------- 1 root root 179, 12 1970-07-11 22:12 mmcblk0p12
0 brw------- 1 root root 179, 13 1970-07-11 22:12 mmcblk0p13
0 brw------- 1 root root 179, 14 1970-07-11 22:12 mmcblk0p14
0 brw------- 1 root root 179, 15 1970-07-11 22:12 mmcblk0p15
0 brw------- 1 root root 179, 16 1970-07-11 22:12 mmcblk0p16
0 brw------- 1 root root 179, 17 1970-07-11 22:12 mmcblk0p17
0 brw------- 1 root root 179, 18 1970-07-11 22:12 mmcblk0p18
0 brw------- 1 root root 179, 19 1970-07-11 22:12 mmcblk0p19
0 brw------- 1 root root 179, 2 1970-07-11 22:12 mmcblk0p2
0 brw------- 1 root root 179, 20 1970-07-11 22:12 mmcblk0p20
0 brw------- 1 root root 179, 21 1970-07-11 22:12 mmcblk0p21
0 brw------- 1 root root 179, 22 1970-07-11 22:12 mmcblk0p22
0 brw------- 1 root root 179, 23 1970-07-11 22:12 mmcblk0p23
0 brw------- 1 root root 179, 24 1970-07-11 22:12 mmcblk0p24
0 brw------- 1 root root 179, 25 1970-07-11 22:12 mmcblk0p25
0 brw------- 1 root root 179, 26 1970-07-11 22:12 mmcblk0p26
0 brw------- 1 root root 179, 27 1970-07-11 22:12 mmcblk0p27
0 brw------- 1 root root 179, 28 1970-07-11 22:12 mmcblk0p28
0 brw------- 1 root root 179, 29 1970-07-11 22:12 mmcblk0p29
0 brw------- 1 root root 179, 3 1970-07-11 22:12 mmcblk0p3
0 brw------- 1 system system 179, 30 1970-07-11 22:12 mmcblk0p30
0 brw------- 1 root root 179, 31 1970-07-11 22:12 mmcblk0p31
0 brw------- 1 root root 259, 0 1970-07-11 22:12 mmcblk0p32
0 brw------- 1 root root 259, 1 1970-07-11 22:12 mmcblk0p33
0 brw------- 1 root root 259, 2 1970-07-11 22:12 mmcblk0p34
0 brw------- 1 root root 259, 3 1970-07-11 22:12 mmcblk0p35
0 brw------- 1 root root 259, 4 1970-07-11 22:12 mmcblk0p36
0 brw------- 1 root root 259, 5 1970-07-11 22:12 mmcblk0p37
0 brw------- 1 root root 259, 6 2020-07-19 01:28 mmcblk0p38
0 brw------- 1 root root 259, 7 1970-07-11 22:12 mmcblk0p39
0 brw------- 1 root root 179, 4 1970-07-11 22:12 mmcblk0p4
0 brw------- 1 root root 259, 8 1970-07-11 22:12 mmcblk0p40
0 brw------- 1 root root 259, 9 1970-07-11 22:12 mmcblk0p41
0 brw------- 1 root root 259, 10 1970-07-11 22:12 mmcblk0p42
0 brw------- 1 root root 259, 11 1970-07-11 22:12 mmcblk0p43
0 brw------- 1 root root 259, 12 1970-07-11 22:12 mmcblk0p44
0 brw------- 1 root root 259, 13 1970-07-11 22:12 mmcblk0p45
0 brw------- 1 root root 259, 14 1970-07-11 22:12 mmcblk0p46
0 brw------- 1 root root 259, 15 1970-07-11 22:12 mmcblk0p47
0 brw------- 1 root root 259, 16 1970-07-11 22:12 mmcblk0p48
0 brw------- 1 root root 259, 17 1970-07-11 22:12 mmcblk0p49
0 brw------- 1 root root 179, 5 1970-07-11 22:12 mmcblk0p5
0 brw------- 1 root root 259, 18 1970-07-11 22:12 mmcblk0p50
0 brw------- 1 root root 259, 19 1970-07-11 22:12 mmcblk0p51
0 brw------- 1 root root 259, 20 1970-07-11 22:12 mmcblk0p52
0 brw------- 1 root root 259, 21 1970-07-11 22:12 mmcblk0p53
0 brw------- 1 root root 259, 22 1970-07-11 22:12 mmcblk0p54
0 brw------- 1 root root 259, 23 1970-07-11 22:12 mmcblk0p55
0 brw------- 1 root root 259, 24 1970-07-11 22:12 mmcblk0p56
0 brw------- 1 root root 259, 25 1970-07-11 22:12 mmcblk0p57
0 brw------- 1 root root 259, 26 1970-07-11 22:12 mmcblk0p58
0 brw------- 1 root root 259, 27 1970-07-11 22:12 mmcblk0p59
0 brw------- 1 root root 179, 6 1970-07-11 22:12 mmcblk0p6
0 brw------- 1 root root 259, 28 1970-07-11 22:12 mmcblk0p60
0 brw------- 1 root root 259, 29 1970-07-11 22:12 mmcblk0p61
0 brw------- 1 root root 259, 30 1970-07-11 22:12 mmcblk0p62
0 brw------- 1 root root 259, 31 1970-07-11 22:12 mmcblk0p63
0 brw------- 1 root root 259, 32 1970-07-11 22:12 mmcblk0p64
0 brw------- 1 root root 259, 33 1970-07-11 22:12 mmcblk0p65
0 brw------- 1 root root 259, 34 1970-07-11 22:12 mmcblk0p66
0 brw------- 1 root root 259, 35 1970-07-11 22:12 mmcblk0p67
0 brw------- 1 root root 259, 36 1970-07-11 22:12 mmcblk0p68
0 brw------- 1 root root 259, 37 1970-07-11 22:12 mmcblk0p69
0 brw------- 1 root root 179, 7 1970-07-11 22:12 mmcblk0p7
0 brw------- 1 root root 259, 38 1970-07-11 22:12 mmcblk0p70
0 brw------- 1 root root 259, 39 1970-07-11 22:12 mmcblk0p71
0 brw------- 1 root root 259, 40 1970-07-11 22:12 mmcblk0p72
0 brw------- 1 root root 259, 41 1970-07-11 22:12 mmcblk0p73
0 brw------- 1 root root 259, 42 1970-07-11 22:12 mmcblk0p74
0 brw------- 1 root root 259, 43 1970-07-11 22:12 mmcblk0p75
0 brw------- 1 root root 259, 44 1970-07-11 22:12 mmcblk0p76
0 brw------- 1 root root 259, 45 1970-07-11 22:12 mmcblk0p77
0 brw------- 1 root root 259, 46 1970-07-11 22:12 mmcblk0p78
0 brw------- 1 root root 259, 47 1970-07-11 22:12 mmcblk0p79
0 brw------- 1 root root 179, 8 1970-07-11 22:12 mmcblk0p8
0 brw------- 1 root root 259, 48 1970-07-11 22:12 mmcblk0p80
0 brw------- 1 root root 259, 49 1970-07-11 22:12 mmcblk0p81
0 brw------- 1 root root 259, 50 1970-07-11 22:12 mmcblk0p82
0 brw------- 1 root root 259, 51 1970-07-11 22:12 mmcblk0p83
0 brw------- 1 root root 259, 52 1970-07-11 22:12 mmcblk0p84
0 brw------- 1 root root 259, 53 1970-07-11 22:12 mmcblk0p85
0 brw------- 1 root root 259, 54 1970-07-11 22:12 mmcblk0p86
0 brw------- 1 root root 259, 55 1970-07-11 22:12 mmcblk0p87
0 brw------- 1 root root 179, 9 1970-07-11 22:12 mmcblk0p9
0 brw------- 1 root root 179, 32 1970-07-11 22:12 mmcblk0rpmb
Output of:
Code:
# fastboot get_var anti
Code:
1
Hope this info helps for development reasons and you will find this beneficial.
PD: Sorry for my bad english. I'm live on Venezuela.
i flashed US ROM ,after i flashed JP ROM.Then I got an error in partition.sin and almost all partitions were corrupted.
I fixed it to some extent with fastboot, but flashmode is not working.
Gleen LED flashing every 3 seconds, does not recognize on computer.
My phone:502SO(JP Softbank)
Boot loader unlocked
Working:TWRP,Stock,fastboot
Broken:flashmode
Please tell me how to fix flash mode.
TWRP in fdisk -f /dev/block/mmcblk0
Code:
Found valid GPT with protective MBR; using GPT
Disk /dev/block/mmcblk0: 61071360 sectors, 1148M
Logical sector size: 512
Disk identifier (GUID): 98101b32-bbe2-4bf2-a06e-2bb33d000c20
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 61071326
Number Start (sector) End (sector) Size Code Name
1 256 4351 2048K 0700 TA
2 8192 40959 16.0M 0700 LTALabel
3 40960 45055 2048K 0700 xbl
4 45056 49151 2048K 0700 xblbak
5 49152 53247 2048K 0700 tz
6 53248 57343 2048K 0700 tzbak
7 57344 58343 500K 0700 rpm
8 58344 59343 500K 0700 rpmbak
9 59344 60367 512K 0700 hyp
10 60368 61391 512K 0700 hypbak
11 61392 62415 512K 0700 pmic
12 62416 63439 512K 0700 pmicbak
13 65536 69631 2048K 0700 fsg
14 69632 71679 1024K 0700 aboot
15 71680 73727 1024K 0700 abootbak
16 73728 204799 64.0M 0700 boot
17 204800 205823 512K 0700 keymaster
18 205824 206847 512K 0700 keymasterbak
19 206848 207359 256K 0700 cmnlib
20 207360 207871 256K 0700 cmnlibbak
21 207872 208383 256K 0700 cmnlib64
22 208384 208895 256K 0700 cmnlib64bak
23 208896 403455 95.0M 0700 modem
24 403456 436223 16.0M 0700 dsp
25 436224 436225 1024 0700 devinfo
26 436232 436743 256K 0700 apdp
27 436744 437255 256K 0700 msadp
28 437256 437257 1024 0700 dpo
29 437264 504111 32.6M 0700 splash
30 504112 506159 1024K 0700 ddr
31 506160 506415 128K 0700 sec
32 506416 506431 8192 0700 ssd
33 507904 511999 2048K 0700 modemst1
34 516096 520191 2048K 0700 modemst2
35 524288 1048575 256M 0700 cache
36 1048576 1114111 32.0M 0700 persist
37 1114112 1115135 512K 0700 keystore
38 1115136 1115391 128K 0700 devcfg
39 1115392 1115647 128K 0700 devcfgbak
40 1115648 1116671 512K 0700 frp
41 1116672 1120767 2048K 0700 sti
42 1120768 1939967 400M 0700 oem
43 1939968 2021887 40.0M 0700 s1sbl
44 2021888 2103807 40.0M 0700 s1sblbak
45 2103808 2234879 64.0M 0700 FOTAKernel
46 2234880 2300415 32.0M 0700 rdimage
47 2301952 2322431 10.0M 0700 apps_log
48 2326528 2359295 16.0M 0700 diag
49 2359296 2461695 50.0M 0700 carrier
50 2465792 2506751 20.0M 0700 Qnovo
51 2506752 2506951 100K 0700 tzs1attest
52 2506952 2507151 100K 0700 tzs1attestbak
53 2507152 2508175 512K 0700 tzs1sbl
54 2508176 2509199 512K 0700 tzs1sblbak
55 2514944 45744127 20.6G 0700 userdata
56 45744128 61063167 7480M 0700 system
I fixit.
sim1222 said:
TWRP in fdisk -f /dev/block/mmcblk0
Code:
Found valid GPT with protective MBR; using GPT
Disk /dev/block/mmcblk0: 61071360 sectors, 1148M
Logical sector size: 512
Disk identifier (GUID): 98101b32-bbe2-4bf2-a06e-2bb33d000c20
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 61071326
Number Start (sector) End (sector) Size Code Name
1 256 4351 2048K 0700 TA
2 8192 40959 16.0M 0700 LTALabel
3 40960 45055 2048K 0700 xbl
4 45056 49151 2048K 0700 xblbak
5 49152 53247 2048K 0700 tz
6 53248 57343 2048K 0700 tzbak
7 57344 58343 500K 0700 rpm
8 58344 59343 500K 0700 rpmbak
9 59344 60367 512K 0700 hyp
10 60368 61391 512K 0700 hypbak
11 61392 62415 512K 0700 pmic
12 62416 63439 512K 0700 pmicbak
13 65536 69631 2048K 0700 fsg
14 69632 71679 1024K 0700 aboot
15 71680 73727 1024K 0700 abootbak
16 73728 204799 64.0M 0700 boot
17 204800 205823 512K 0700 keymaster
18 205824 206847 512K 0700 keymasterbak
19 206848 207359 256K 0700 cmnlib
20 207360 207871 256K 0700 cmnlibbak
21 207872 208383 256K 0700 cmnlib64
22 208384 208895 256K 0700 cmnlib64bak
23 208896 403455 95.0M 0700 modem
24 403456 436223 16.0M 0700 dsp
25 436224 436225 1024 0700 devinfo
26 436232 436743 256K 0700 apdp
27 436744 437255 256K 0700 msadp
28 437256 437257 1024 0700 dpo
29 437264 504111 32.6M 0700 splash
30 504112 506159 1024K 0700 ddr
31 506160 506415 128K 0700 sec
32 506416 506431 8192 0700 ssd
33 507904 511999 2048K 0700 modemst1
34 516096 520191 2048K 0700 modemst2
35 524288 1048575 256M 0700 cache
36 1048576 1114111 32.0M 0700 persist
37 1114112 1115135 512K 0700 keystore
38 1115136 1115391 128K 0700 devcfg
39 1115392 1115647 128K 0700 devcfgbak
40 1115648 1116671 512K 0700 frp
41 1116672 1120767 2048K 0700 sti
42 1120768 1939967 400M 0700 oem
43 1939968 2021887 40.0M 0700 s1sbl
44 2021888 2103807 40.0M 0700 s1sblbak
45 2103808 2234879 64.0M 0700 FOTAKernel
46 2234880 2300415 32.0M 0700 rdimage
47 2301952 2322431 10.0M 0700 apps_log
48 2326528 2359295 16.0M 0700 diag
49 2359296 2461695 50.0M 0700 carrier
50 2465792 2506751 20.0M 0700 Qnovo
51 2506752 2506951 100K 0700 tzs1attest
52 2506952 2507151 100K 0700 tzs1attestbak
53 2507152 2508175 512K 0700 tzs1sbl
54 2508176 2509199 512K 0700 tzs1sblbak
55 2514944 45744127 20.6G 0700 userdata
56 45744128 61063167 7480M 0700 system
Can you teach me how do your treads I m just a newbie dont know anything
Click to expand...
Click to collapse
Hi,
As Redmi 4A are already pretty cheap I wanted to experiment a bit. I have two of them, which one of them had unlocked bootloader and second did not.
I used emmcdl.exe to dump all partitions from one with unlocked bootloader:
Code:
# PartNum PartName StartSec NumSecs
# PartNum PartName StartSec NumSecs
1 modem 131072 172032
2 fsc 393216 2
3 ssd 393218 16
4 sbl1 393234 1024
5 sbl1bak 394258 1024
6 rpm 395282 1024
7 rpmbak 396306 1024
8 tz 397330 4096
9 tzbak 401426 4096
10 devcfg 405522 512
11 devcfgbak 406034 512
12 dsp 406546 32768
13 modemst1 439314 3072
14 modemst2 442386 3072
15 DDR 524288 64
16 fsg 524352 3072
17 sec 527424 32
18 splash 655360 40960
19 aboot 786432 2048
20 abootbak 788480 2048
21 boot 790528 131072
22 recovery 921600 131072
23 devinfo 1052672 2048
24 system 1054720 6291456
25 cache 7471104 524288
26 persist 7995392 65536
27 misc 8060928 2048
28 keystore 8062976 1024
29 config 8064000 64
30 oem 8064064 131072
31 limits 8257536 64
32 mota 8388608 1024
33 dip 8389632 2048
34 mdtp 8391680 65536
35 syscfg 8457216 1024
36 mcfg 8458240 8192
37 lksecapp 8519680 256
38 lksecappbak 8519936 256
39 cmnlib 8520192 512
40 cmnlibbak 8520704 512
41 cmnlib64 8521216 512
42 cmnlib64bak 8521728 512
43 keymaster 8522240 512
44 keymasterbak 8522752 512
45 apdp 8650752 512
46 msadp 8651264 512
47 dpo 8651776 16
48 cust 8781824 1048576
49 userdata 9830400 51240927
and then I have written them to the second Redmi 4A (I dumped them again, checked CRC sums which were fine). I hoped I got clone of the phone. Unfortunately I did not. I lost imei's and what is more phone stopped charging. WiFi and other functions are working working.
Are persist and modemst partitions that contain information about sensors and imei's?
Do you have idea what may went wrong as clonning partitions went OK ?
.