[Android Q&A, Help & Troubleshooting] kdm6389:
Partitions of Alcatel Ideal 4060A

Alcatel Ideal 4060A

root@Pop445:/ #

#parted orignal layout, unit s (i.e in sectors)

Model: MMC P1J95K (sd/mmc)
Disk /dev/block/mmcblk0: 15302656s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 131072s 262143s 131072s fat16 modem
2 262144s 265215s 3072s tunning
3 265216s 267263s 2048s traceability
4 267264s 267265s 2s fsc
5 267266s 267281s 16s ssd
6 267282s 268305s 1024s sbl1
7 268306s 269329s 1024s sbl1bak
8 269330s 270353s 1024s rpm
9 270354s 271377s 1024s rpmbak
10 271378s 272401s 1024s tz
11 272402s 273425s 1024s tzbak
12 273426s 275473s 2048s pad
13 275474s 276497s 1024s hyp
14 276498s 277521s 1024s hypbak
15 277522s 280593s 3072s modemst1
16 280594s 283665s 3072s modemst2
17 283666s 285713s 2048s simlock
18 285714s 288785s 3072s efsdata
19 393216s 393279s 64s DDR
20 393280s 396351s 3072s fsg
21 396352s 396383s 32s sec
22 396384s 398431s 2048s aboot
23 398432s 400479s 2048s abootbak
24 400480s 466015s 65536s boot
25 466016s 531551s 65536s recovery
26 531552s 5898239s 5366688s ext2 system
27 5898240s 5963775s 65536s ext4 persist
28 5963776s 6004735s 40960s reserved
29 6004736s 6021119s 16384s splash
30 6021120s 6062079s 40960s ext4 tctpersist
31 6062080s 6082559s 20480s ext4 hdcp
32 6082560s 6082575s 16s fota
33 6082576s 6606863s 524288s ext4 cache
34 6606864s 6608911s 2048s misc
35 6608912s 6613007s 4096s persistent
36 6684672s 6686719s 2048s devinfo
37 6815744s 6816767s 1024s keystore
38 6816768s 6816831s 64s config
39 6816832s 6816959s 128s oem
40 6816960s 6823151s 6192s redbend
41 6823152s 6825199s 2048s ciqbp
42 6825200s 6827247s 2048s ciqap
43 6827248s 15302622s 8475375s ext4 userdata

---------- Post added at 04:19 AM ---------- Previous post was at 04:10 AM ----------

My current partition structure

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

Number Start End Size File system Name Flags
1 131072s 262143s 131072s fat16 modem
2 262144s 265215s 3072s tunning
3 265216s 267263s 2048s traceability
4 267264s 267265s 2s fsc
5 267266s 267281s 16s ssd
6 267282s 268305s 1024s sbl1
7 268306s 269329s 1024s sbl1bak
8 269330s 270353s 1024s rpm
9 270354s 271377s 1024s rpmbak
10 271378s 272401s 1024s tz
11 272402s 273425s 1024s tzbak
12 273426s 275473s 2048s pad
13 275474s 276497s 1024s hyp
14 276498s 277521s 1024s hypbak
15 277522s 280593s 3072s modemst1
16 280594s 283665s 3072s modemst2
17 283666s 285713s 2048s simlock
18 285714s 288785s 3072s efsdata
19 393216s 393279s 64s DDR
20 393280s 396351s 3072s fsg
21 396352s 396383s 32s sec
22 396384s 398431s 2048s aboot
23 398432s 400479s 2048s abootbak
24 400480s 466015s 65536s boot
25 466016s 531551s 65536s recovery
26 531552s 597087s 65536s ext4 persist
27 597088s 638047s 40960s reserved
28 638048s 654431s 16384s splash
29 654432s 695391s 40960s ext4 tctpersist
30 695392s 715871s 20480s ext4 hdcp
31 715872s 715887s 16s fota
32 715888s 717935s 2048s misc
33 717936s 722031s 4096s persistent
34 722032s 724079s 2048s devinfo
35 724080s 725103s 1024s keystore
36 725104s 725167s 64s config
37 725168s 725295s 128s oem
38 725296s 731487s 6192s redbend
39 731488s 733535s 2048s ciqbp
40 733536s 735583s 2048s ciqap
41 735584s 2752866s 2017283s ext4 system
42 2752867s 14778334s 12025468s ext4 userdata
43 14778335s 15302622s 524288s ext4 cache

(parted)

Considerable gain in user space!

You can make partition using this command

mkpartfs primary ext2 2752864s 14778334s #(start and end s is for sector)

you can convert ext2 partition int ext4 journal using following command in shell

tune2fs -j /dev/block/mmcblk0p42

e2fsck -fDp /dev/block/mmcblk0p42

tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p42

e2fsck -fDp /dev/block/mmcblk0p42

You might need to backup partition on FAT32 storage, which allow only 4G chunk, In that case you can use

Since size of data is more then 4GiB, we need smaller small chunk to save in FAT32, here 1G = 1073741824B

backup)

dd if=/dev/block/mmcblk0p42 conv=sync,noerror bs=1M | gzip -c | split -a2 -b1073741824 - /external_sd/data4g.split.dd.img.gz

restore)

cat /external_sd/data4g.split.dd.img.gz* | gunzip -c | dd of=/dev/block/mmcblk0p42