[Sony Xperia XA Questions & Answers] reyalPreyalP:
Hi. I have F3111 and I can't flash any firmware with flashtool. I think I messed up with partitions, because I accidentally removed "lk" partition through parted. I recreated it and I can normally boot into OS or TWRP recovery, but partition is probably empty. Flashtool is stuck when flashing "partitions.sin".

29/020/2022 14:20:19 - INFO - Flashtool 0.9.34.0
29/020/2022 14:20:19 - INFO - Searching for a web proxy
29/020/2022 14:20:19 - INFO - A proxy has been found. Using it as default
29/020/2022 14:20:19 - INFO - Syncing devices from github
29/020/2022 14:20:19 - INFO - Opening devices repository.
29/020/2022 14:20:19 - INFO - Scanning devices folder for changes.
29/020/2022 14:20:22 - INFO - Pulling changes from github.
29/020/2022 14:20:23 - INFO - Devices sync finished.
29/020/2022 14:20:23 - INFO - Loading devices database
29/020/2022 14:20:23 - INFO - Loaded 131 devices
29/020/2022 14:20:23 - INFO - Starting phone detection
29/020/2022 14:20:25 - INFO - Device disconnected
29/020/2022 14:20:38 - INFO - Selected Bundle for Sony Xperia XA(F3111). FW release : 33.3.A.0.127_R2B. Customization : F3111_Customized CE1_1302-4691
29/020/2022 14:20:38 - INFO - Preparing files for flashing
29/020/2022 14:20:49 - INFO - Please connect your device into flashmode.
29/020/2022 14:20:58 - INFO - Using Gordon gate drivers version 3.1.0.0
29/020/2022 14:20:58 - INFO - Opening device for R/W
29/020/2022 14:20:58 - INFO - Device ready for R/W.
29/020/2022 14:20:58 - INFO - Reading device information
29/020/2022 14:20:58 - INFO - Phone ready for flashmode operations.
29/020/2022 14:20:58 - INFO - Opening TA partition 2
29/020/2022 14:20:58 - INFO - Current device : F3111 - RQ30038RTS - 1302-4476_R8A - 1300-9502_33.2.A.2.73 - GENERIC_33.2.A.3.105
29/020/2022 14:20:58 - INFO - Closing TA partition
29/020/2022 14:20:58 - INFO - Start Flashing
29/020/2022 14:20:58 - INFO - Processing loader.sin
29/020/2022 14:20:58 - INFO - Checking header
29/020/2022 14:20:58 - INFO - Flashing data
29/020/2022 14:20:58 - INFO - Loader : S1_Root_cf2a - Version : MT6755_13 / Boot version : S1_Boot_MT6755_M0.MP6_16 / Bootloader status : ROOTED
29/020/2022 14:20:58 - INFO - Max packet size set to 8M
29/020/2022 14:20:58 - INFO - USB buffer size set to 512K
29/020/2022 14:20:59 - INFO - Parsing boot delivery
29/020/2022 14:20:59 - INFO - Found a template session. Using it : C:\Users\FaboThePlayer\.flashTool\firmwares\prepared\33.3.fsc
29/020/2022 14:20:59 - INFO - Set loader configuration : [00 01 00 00 00 0C]
29/020/2022 14:20:59 - INFO - Opening TA partition 2
29/020/2022 14:20:59 - INFO - Writing TA unit 00002774. Value : 01
29/020/2022 14:20:59 - INFO - Closing TA partition
29/021/2022 14:21:00 - INFO - Processing partitions.sin
29/021/2022 14:21:00 - INFO - Checking header
29/021/2022 14:21:00 - INFO - Flashing data
29/021/2022 14:22:09 - ERROR - Processing of partitions.sin finished with errors.
29/021/2022 14:22:09 - INFO - Flashing finished.
29/021/2022 14:22:09 - INFO - Please unplug and start your phone
29/021/2022 14:22:09 - INFO - For flashtool, Unknown Sources and Debugging must be checked in phone settings

Before messing with partitions flashtool worked perfectly. In log you can see template session, I think if I could remove it, I could flash again without any issues. So, I tried to go to that directory. It shows only when I'm flashing firmware and is used by flashtool at this moment, so can't remove it. Also, I'm sure that this template session is stored somewhere in phone, not PC. Tried to wipe /userdata, it's stored somewhere deeper than that.

I have full log of what have I messed up that day.

Microsoft Windows [Version 10.0.22000.739]
(c) Microsoft Corporation. Wszelkie prawa zastrzeżone.

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot devices
RQ30038RTS fastboot

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery "D:\Pliki\Rooting itp\SONY XPERIA XA\rootpack 33.2.A.2.73\recovery.img"
target reported max download size of 134217728 bytes
sending 'recovery' (12768 KB)...
OKAY [ 0.550s]
writing 'recovery'...
OKAY [ 0.711s]
finished. total time: 1.263s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash boot "D:\Pliki\Rooting itp\SONY XPERIA XA\rootpack 33.2.A.2.73\boot.img"
target reported max download size of 134217728 bytes
sending 'boot' (11696 KB)...
OKAY [ 0.505s]
writing 'boot'...
OKAY [ 0.182s]
finished. total time: 0.688s

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached
* daemon not running; starting now at tcp:5037
* daemon started successfully
RQ30038RTS unauthorized

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached
RQ30038RTS unauthorized

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached
RQ30038RTS unauthorized

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached
RQ30038RTS unauthorized

C:\Program Files (x86)\Minimal ADB and Fastboot>adb push "D:\Pliki\Rooting itp\SONY XPERIA XA\Magisk-v21.0.zip" /sdcard
D:\Pliki\Rooting itp\SONY XPERIA XA\Magisk-v21.0.zip: 1 file pushed. 7.2 MB/s (6196156 bytes in 0.821s)

C:\Program Files (x86)\Minimal ADB and Fastboot>adb install "D:\Pliki\Rooting itp\F-Droid.apk"
D:\Pliki\Rooting itp\F-Droid.apk: 1 file pushed. 6.2 MB/s (8165518 bytes in 1.252s)
pkg: /data/local/tmp/F-Droid.apk
Success

C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot recovery

C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot recovery

C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot recovery

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached

C:\Program Files (x86)\Minimal ADB and Fastboot>
C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached
RQ30038RTS device

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached
RQ30038RTS device

C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot recovery

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached
RQ30038RTS recovery

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached
RQ30038RTS recovery

C:\Program Files (x86)\Minimal ADB and Fastboot>adb push "D:\Pliki\Rooting itp\parted_gdisk_fdisk_mkfs.ext4-ARM\parted" /
D:\Pliki\Rooting itp\parted_gdisk_fdisk_mkfs.ext4-ARM\parted: 1 file pushed. 4.4 MB/s (464372 bytes in 0.101s)

C:\Program Files (x86)\Minimal ADB and Fastboot>adb push "D:\Pliki\Rooting itp\parted_gdisk_fdisk_mkfs.ext4-ARM\gdisk" /
D:\Pliki\Rooting itp\parted_gdisk_fdisk_mkfs.ext4-ARM\gdisk: 1 file pushed. 7.8 MB/s (572212 bytes in 0.070s)

C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell
~ # umount /data
~ # parted /dev/block/mmc0blk0
/sbin/sh: parted: not found
~ # parted /dev/block/mmc0blk0
/sbin/sh: parted: Permission denied
~ # parted /dev/block/mmc0blk0
/sbin/sh: parted: Permission denied
~ # mount /data
~ # exit

C:\Program Files (x86)\Minimal ADB and Fastboot>adb devices
List of devices attached
RQ30038RTS recovery

C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell su
/sbin/sh: su: not found

C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell
~ # umount /data
~ # parted
/sbin/sh: parted: Permission denied
~ # parteds
/sbin/sh: parteds: not found
~ # mount /data
~ # exot
/sbin/sh: exot: not found
~ # exit

C:\Program Files (x86)\Minimal ADB and Fastboot>adb push "D:\Pliki\Rooting itp\parted_gdisk_fdisk_mkfs.ext4-ARM\mkfs.ext4" /sbin
D:\Pliki\Rooting itp\parted_gdisk_fdisk_mkfs.ext4-ARM\mkfs.ext4: 1 file pushed. 7.3 MB/s (415040 bytes in 0.054s)

C:\Program Files (x86)\Minimal ADB and Fastboot>adb push "D:\Pliki\Rooting itp\parted_gdisk_fdisk_mkfs.ext4-ARM\parted" /sbin
D:\Pliki\Rooting itp\parted_gdisk_fdisk_mkfs.ext4-ARM\parted: 1 file pushed. 6.8 MB/s (464372 bytes in 0.065s)

C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell
~ # chmod 777 /sbin/parted
~ # chmod 777 /sbin/mkfs
chmod: /sbin/mkfs: No such file or directory
~ # chmod 777 /sbin/mkfs.ext34
chmod: /sbin/mkfs.ext34: No such file or directory
~ # chmod 777 /sbin/mkfs.ext3
chmod: /sbin/mkfs.ext3: No such file or directory
~ # chmod 777 /sbin/mkfs.ext4
~ # parted /dev/block/mmc0blk0
Error: Could not stat device /dev/block/mmc0blk0 - No such file or directory.
Retry/Cancel? camn
Retry/Cancel? cancel
~ # parted /dev/block/mmc0blk0
Error: Could not stat device /dev/block/mmc0blk0 - No such file or directory.
Retry/Cancel? retru y
Error: Could not stat device /dev/block/mmc0blk0 - No such file or directory.
Retry/Cancel? retry
Error: Could not stat device /dev/block/mmc0blk0 - No such file or directory.
Retry/Cancel? cancel
~ # umount /data
~ #
~ # parted /dev/block/mmcblk0
GNU Parted 3.2
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) resizepart 3 16 10G
Error: Can't have overlapping partitions.
(parted) resizepart 16 10G
Error: Can't have overlapping partitions.
(parted) resizepart 15 10G
Error: Can't have overlapping partitions.
(parted) rezi s
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) resizepart 10 5G
Error: Can't have overlapping partitions.
(parted) resizepart 3 2G
Error: Can't have overlapping partitions.
(parted) resizepart 1 2
Partition number? exit
Error: Expecting a partition number.
(parted) resizepart 2 1G
Error: Can't have overlapping partitions.
(parted) print
Model: MMC Q313MB (sd/mmc)
Disk /dev/block/mmcblk0: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 524kB 2621kB 2097kB ta
2 2621kB 13.1MB 10.5MB ext4 protect1
3 13.1MB 25.2MB 12.1MB ext4 protect2
4 25.2MB 41.9MB 16.8MB ext4 ltalabel
5 41.9MB 83.9MB 41.9MB fotakernel
6 83.9MB 84.4MB 524kB para
7 84.4MB 94.9MB 10.5MB expdb
8 94.9MB 95.9MB 1049kB frp
9 95.9MB 96.2MB 262kB ppl
10 96.2MB 130MB 33.6MB ext4 nvdata
11 130MB 163MB 33.6MB metadata
12 163MB 168MB 4456kB ext4 persist
13 168MB 168MB 262kB seccfg
14 168MB 176MB 8389kB oemkeystore
15 176MB 180MB 3146kB proinfo
16 180MB 205MB 25.2MB md1img
17 205MB 210MB 4981kB md1dsp
18 210MB 214MB 4194kB md1arm7
19 214MB 219MB 5243kB md3img
20 219MB 224MB 5243kB nvram
21 224MB 225MB 1049kB lk
22 225MB 226MB 1049kB lk2
23 226MB 268MB 41.9MB boot
24 268MB 277MB 8389kB logo
25 277MB 282MB 5243kB tee1
26 282MB 287MB 5243kB tee2
27 287MB 294MB 6291kB secro
28 294MB 302MB 8389kB keystore
29 302MB 319MB 16.8MB ext4 apps_log
30 319MB 336MB 16.8MB ext4 diag
31 336MB 646MB 310MB ext4 oem
32 646MB 856MB 210MB ext4 cache
33 856MB 881MB 25.2MB ext4 Qnovo
34 881MB 12.0GB 11.1GB ext4 userdata
35 12.0GB 15.6GB 3607MB ext4 system
36 15.6GB 15.6GB 16.8MB flashinfo

(parted) rez si
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) resizepart 34 8G
Warning: Partition /dev/block/mmcblk0p34 is being used. Are you sure you want to
continue?
parted: invalid token: 8G
Yes/No? no
(parted) rm 34
Warning: Partition /dev/block/mmcblk0p34 is being used. Are you sure you want to
continue?
Yes/No? y
Error: Partition(s) 34 on /dev/block/mmcblk0 have been written, but we have been
unable to inform the kernel of the change, probably because it/they are in use.
As a result, the old partition(s) will remain in use. You should reboot now
before making further changes.
Ignore/Cancel? rm21
parted: invalid token: rm
Ignore/Cancel? rm 21
parted: invalid token: rm
Ignore/Cancel? cancel
(parted) rm 21
Error: Partition(s) 34 on /dev/block/mmcblk0 have been written, but we have been
unable to inform the kernel of the change, probably because it/they are in use.
As a result, the old partition(s) will remain in use. You should reboot now
before making further changes.
Ignore/Cancel? cancel
(parted) print
Model: MMC Q313MB (sd/mmc)
Disk /dev/block/mmcblk0: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 524kB 2621kB 2097kB ta
2 2621kB 13.1MB 10.5MB ext4 protect1
3 13.1MB 25.2MB 12.1MB ext4 protect2
4 25.2MB 41.9MB 16.8MB ext4 ltalabel
5 41.9MB 83.9MB 41.9MB fotakernel
6 83.9MB 84.4MB 524kB para
7 84.4MB 94.9MB 10.5MB expdb
8 94.9MB 95.9MB 1049kB frp
9 95.9MB 96.2MB 262kB ppl
10 96.2MB 130MB 33.6MB ext4 nvdata
11 130MB 163MB 33.6MB metadata
12 163MB 168MB 4456kB ext4 persist
13 168MB 168MB 262kB seccfg
14 168MB 176MB 8389kB oemkeystore
15 176MB 180MB 3146kB proinfo
16 180MB 205MB 25.2MB md1img
17 205MB 210MB 4981kB md1dsp
18 210MB 214MB 4194kB md1arm7
19 214MB 219MB 5243kB md3img
20 219MB 224MB 5243kB nvram
22 225MB 226MB 1049kB lk2
23 226MB 268MB 41.9MB boot
24 268MB 277MB 8389kB logo
25 277MB 282MB 5243kB tee1
26 282MB 287MB 5243kB tee2
27 287MB 294MB 6291kB secro
28 294MB 302MB 8389kB keystore
29 302MB 319MB 16.8MB ext4 apps_log
30 319MB 336MB 16.8MB ext4 diag
31 336MB 646MB 310MB ext4 oem
32 646MB 856MB 210MB ext4 cache
33 856MB 881MB 25.2MB ext4 Qnovo
35 12.0GB 15.6GB 3607MB ext4 system
36 15.6GB 15.6GB 16.8MB flashinfo

(parted) resizepart 35 5 G
Error: Can't have the end before the start! (start sector=23445504
length=-13679878)
(parted) resizepart 35 9G
Error: Can't have the end before the start! (start sector=23445504
length=-5867378)
(parted) resizepart 35 9G 15G
Error: Can't have the end before the start! (start sector=23445504
length=-5867378)
(parted) resizepart 35 9G 15G
Partition number? re ex
Error: Expecting a partition number.
(parted) e
(parted) resizepart 35 13G
Warning: Shrinking a partition can cause data loss, are you sure you want to
continue?
Yes/No? yes
Error: Partition(s) 34 on /dev/block/mmcblk0 have been written, but we have been
unable to inform the kernel of the change, probably because it/they are in use.
As a result, the old partition(s) will remain in use. You should reboot now
before making further changes.
Ignore/Cancel? cancel
(parted) print
Model: MMC Q313MB (sd/mmc)
Disk /dev/block/mmcblk0: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 524kB 2621kB 2097kB ta
2 2621kB 13.1MB 10.5MB ext4 protect1
3 13.1MB 25.2MB 12.1MB ext4 protect2
4 25.2MB 41.9MB 16.8MB ext4 ltalabel
5 41.9MB 83.9MB 41.9MB fotakernel
6 83.9MB 84.4MB 524kB para
7 84.4MB 94.9MB 10.5MB expdb
8 94.9MB 95.9MB 1049kB frp
9 95.9MB 96.2MB 262kB ppl
10 96.2MB 130MB 33.6MB ext4 nvdata
11 130MB 163MB 33.6MB metadata
12 163MB 168MB 4456kB ext4 persist
13 168MB 168MB 262kB seccfg
14 168MB 176MB 8389kB oemkeystore
15 176MB 180MB 3146kB proinfo
16 180MB 205MB 25.2MB md1img
17 205MB 210MB 4981kB md1dsp
18 210MB 214MB 4194kB md1arm7
19 214MB 219MB 5243kB md3img
20 219MB 224MB 5243kB nvram
22 225MB 226MB 1049kB lk2
23 226MB 268MB 41.9MB boot
24 268MB 277MB 8389kB logo
25 277MB 282MB 5243kB tee1
26 282MB 287MB 5243kB tee2
27 287MB 294MB 6291kB secro
28 294MB 302MB 8389kB keystore
29 302MB 319MB 16.8MB ext4 apps_log
30 319MB 336MB 16.8MB ext4 diag
31 336MB 646MB 310MB ext4 oem
32 646MB 856MB 210MB ext4 cache
33 856MB 881MB 25.2MB ext4 Qnovo
35 12.0GB 13.0GB 996MB ext4 system
36 15.6GB 15.6GB 16.8MB flashinfo

(parted) printcancelyes resizepart 35 13G(parted) ex (parted) ex
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) resize part
Partition number? re exit
Error: Expecting a partition number.
(parted) resizepart 35 15G
Error: Partition(s) 34 on /dev/block/mmcblk0 have been written, but we have been
unable to inform the kernel of the change, probably because it/they are in use.
As a result, the old partition(s) will remain in use. You should reboot now
before making further changes.
Ignore/Cancel? CANCEL
(parted) print
Model: MMC Q313MB (sd/mmc)
Disk /dev/block/mmcblk0: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 524kB 2621kB 2097kB ta
2 2621kB 13.1MB 10.5MB ext4 protect1
3 13.1MB 25.2MB 12.1MB ext4 protect2
4 25.2MB 41.9MB 16.8MB ext4 ltalabel
5 41.9MB 83.9MB 41.9MB fotakernel
6 83.9MB 84.4MB 524kB para
7 84.4MB 94.9MB 10.5MB expdb
8 94.9MB 95.9MB 1049kB frp
9 95.9MB 96.2MB 262kB ppl
10 96.2MB 130MB 33.6MB ext4 nvdata
11 130MB 163MB 33.6MB metadata
12 163MB 168MB 4456kB ext4 persist
13 168MB 168MB 262kB seccfg
14 168MB 176MB 8389kB oemkeystore
15 176MB 180MB 3146kB proinfo
16 180MB 205MB 25.2MB md1img
17 205MB 210MB 4981kB md1dsp
18 210MB 214MB 4194kB md1arm7
19 214MB 219MB 5243kB md3img
20 219MB 224MB 5243kB nvram
22 225MB 226MB 1049kB lk2
23 226MB 268MB 41.9MB boot
24 268MB 277MB 8389kB logo
25 277MB 282MB 5243kB tee1
26 282MB 287MB 5243kB tee2
27 287MB 294MB 6291kB secro
28 294MB 302MB 8389kB keystore
29 302MB 319MB 16.8MB ext4 apps_log
30 319MB 336MB 16.8MB ext4 diag
31 336MB 646MB 310MB ext4 oem
32 646MB 856MB 210MB ext4 cache
33 856MB 881MB 25.2MB ext4 Qnovo
35 12.0GB 15.0GB 2996MB ext4 system
36 15.6GB 15.6GB 16.8MB flashinfo

(parted) resizepart 35 15G 6
Error: Can't have the end before the start! (start sector=23445504
length=-23414253)
(parted) resizepart 35 16G
Error: Partition(s) 34 on /dev/block/mmcblk0 have been written, but we have been
unable to inform the kernel of the change, probably because it/they are in use.
As a result, the old partition(s) will remain in use. You should reboot now
before making further changes.
Ignore/Cancel? cancel
(parted) pa ri
Model: MMC Q313MB (sd/mmc)
Disk /dev/block/mmcblk0: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 524kB 2621kB 2097kB ta
2 2621kB 13.1MB 10.5MB ext4 protect1
3 13.1MB 25.2MB 12.1MB ext4 protect2
4 25.2MB 41.9MB 16.8MB ext4 ltalabel
5 41.9MB 83.9MB 41.9MB fotakernel
6 83.9MB 84.4MB 524kB para
7 84.4MB 94.9MB 10.5MB expdb
8 94.9MB 95.9MB 1049kB frp
9 95.9MB 96.2MB 262kB ppl
10 96.2MB 130MB 33.6MB ext4 nvdata
11 130MB 163MB 33.6MB metadata
12 163MB 168MB 4456kB ext4 persist
13 168MB 168MB 262kB seccfg
14 168MB 176MB 8389kB oemkeystore
15 176MB 180MB 3146kB proinfo
16 180MB 205MB 25.2MB md1img
17 205MB 210MB 4981kB md1dsp
18 210MB 214MB 4194kB md1arm7
19 214MB 219MB 5243kB md3img
20 219MB 224MB 5243kB nvram
22 225MB 226MB 1049kB lk2
23 226MB 268MB 41.9MB boot
24 268MB 277MB 8389kB logo
25 277MB 282MB 5243kB tee1
26 282MB 287MB 5243kB tee2
27 287MB 294MB 6291kB secro
28 294MB 302MB 8389kB keystore
29 302MB 319MB 16.8MB ext4 apps_log
30 319MB 336MB 16.8MB ext4 diag
31 336MB 646MB 310MB ext4 oem
32 646MB 856MB 210MB ext4 cache
33 856MB 881MB 25.2MB ext4 Qnovo
35 12.0GB 15.6GB 3613MB ext4 system
36 15.6GB 15.6GB 16.8MB flashinfo

(parted) re3
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) res
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) exit
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) exit
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) exit
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) exit
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) exit
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) help
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) exit
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) stop
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) exit
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) adbn
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) adbs
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) adb
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) shell
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) shelladb exitstopexithelpexitres pricancelresizepart 35 16G (parted) print CANCELresizepart 35 15G(parted) exit resizepartprint cancelyes resizepart 35 13G(parted) ex (parted) exresizepart 35 9G 15G 5G(parted) print cancelrm 21 cancelrm 21 y rm 34no resizepart 34 8G print
Model: MMC Q313MB (sd/mmc)
Disk /dev/block/mmcblk0: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 524kB 2621kB 2097kB ta
2 2621kB 13.1MB 10.5MB ext4 protect1
3 13.1MB 25.2MB 12.1MB ext4 protect2
4 25.2MB 41.9MB 16.8MB ext4 ltalabel
5 41.9MB 83.9MB 41.9MB fotakernel
6 83.9MB 84.4MB 524kB para
7 84.4MB 94.9MB 10.5MB expdb
8 94.9MB 95.9MB 1049kB frp
9 95.9MB 96.2MB 262kB ppl
10 96.2MB 130MB 33.6MB ext4 nvdata
11 130MB 163MB 33.6MB metadata
12 163MB 168MB 4456kB ext4 persist
13 168MB 168MB 262kB seccfg
14 168MB 176MB 8389kB oemkeystore
15 176MB 180MB 3146kB proinfo
16 180MB 205MB 25.2MB md1img
17 205MB 210MB 4981kB md1dsp
18 210MB 214MB 4194kB md1arm7
19 214MB 219MB 5243kB md3img
20 219MB 224MB 5243kB nvram
22 225MB 226MB 1049kB lk2
23 226MB 268MB 41.9MB boot
24 268MB 277MB 8389kB logo
25 277MB 282MB 5243kB tee1
26 282MB 287MB 5243kB tee2
27 287MB 294MB 6291kB secro
28 294MB 302MB 8389kB keystore
29 302MB 319MB 16.8MB ext4 apps_log
30 319MB 336MB 16.8MB ext4 diag
31 336MB 646MB 310MB ext4 oem
32 646MB 856MB 210MB ext4 cache
33 856MB 881MB 25.2MB ext4 Qnovo
35 12.0GB 15.6GB 3613MB ext4 system
36 15.6GB 15.6GB 16.8MB flashinfo

(parted) help
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) mkpart ext4
File system type? [ext2]? exot
parted: invalid token: ex
File system type? [ext2]? exit
parted: invalid token: exit
File system type? [ext2]? exit
parted: invalid token: exit
File system type? [ext2]? no
parted: invalid token: no
File system type? [ext2]? ext4
Start? no
Error: Invalid number.
(parted) mkpart
Partition name? []? system
File system type? [ext2]? ext4
Start? t y
Error: Invalid number.
(parted) mkpart
Partition name? []? system
File system type? [ext2]? ext4
Start? yes
Error: Invalid number.
(parted) mkj p
Partition name? []? mk ex
File system type? [ext2]? s
parted: invalid token: s
File system type? [ext2]? exit
parted: invalid token: exit
File system type? [ext2]? ext4
Start? exit
Error: Invalid number.
(parted) mkpart
Partition name? []? system
File system type? [ext2]? ext4
Start? exit
Error: Invalid number.
(parted) mkpart
Partition name? []? userdata
File system type? [ext2]? ext4
Start? 881MB
End? 11.1GB
Error: Partition(s) 21, 34 on /dev/block/mmcblk0 have been written, but we have
been unable to inform the kernel of the change, probably because it/they are in
use. As a result, the old partition(s) will remain in use. You should reboot
now before making further changes.
Ignore/Cancel? cancel
(parted) print
Model: MMC Q313MB (sd/mmc)
Disk /dev/block/mmcblk0: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 524kB 2621kB 2097kB ta
2 2621kB 13.1MB 10.5MB ext4 protect1
3 13.1MB 25.2MB 12.1MB ext4 protect2
4 25.2MB 41.9MB 16.8MB ext4 ltalabel
5 41.9MB 83.9MB 41.9MB fotakernel
6 83.9MB 84.4MB 524kB para
7 84.4MB 94.9MB 10.5MB expdb
8 94.9MB 95.9MB 1049kB frp
9 95.9MB 96.2MB 262kB ppl
10 96.2MB 130MB 33.6MB ext4 nvdata
11 130MB 163MB 33.6MB metadata
12 163MB 168MB 4456kB ext4 persist
13 168MB 168MB 262kB seccfg
14 168MB 176MB 8389kB oemkeystore
15 176MB 180MB 3146kB proinfo
16 180MB 205MB 25.2MB md1img
17 205MB 210MB 4981kB md1dsp
18 210MB 214MB 4194kB md1arm7
19 214MB 219MB 5243kB md3img
20 219MB 224MB 5243kB nvram
22 225MB 226MB 1049kB lk2
23 226MB 268MB 41.9MB boot
24 268MB 277MB 8389kB logo
25 277MB 282MB 5243kB tee1
26 282MB 287MB 5243kB tee2
27 287MB 294MB 6291kB secro
28 294MB 302MB 8389kB keystore
29 302MB 319MB 16.8MB ext4 apps_log
30 319MB 336MB 16.8MB ext4 diag
31 336MB 646MB 310MB ext4 oem
32 646MB 856MB 210MB ext4 cache
33 856MB 881MB 25.2MB ext4 Qnovo
21 881MB 11.1GB 10.2GB ext4
35 12.0GB 15.6GB 3613MB ext4 system
36 15.6GB 15.6GB 16.8MB flashinfo

(parted) s
(parted) remo
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) rm 21
Error: Partition(s) 34 on /dev/block/mmcblk0 have been written, but we have been
unable to inform the kernel of the change, probably because it/they are in use.
As a result, the old partition(s) will remain in use. You should reboot now
before making further changes.
Ignore/Cancel? cancel
(parted) print
Model: MMC Q313MB (sd/mmc)
Disk /dev/block/mmcblk0: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 524kB 2621kB 2097kB ta
2 2621kB 13.1MB 10.5MB ext4 protect1
3 13.1MB 25.2MB 12.1MB ext4 protect2
4 25.2MB 41.9MB 16.8MB ext4 ltalabel
5 41.9MB 83.9MB 41.9MB fotakernel
6 83.9MB 84.4MB 524kB para
7 84.4MB 94.9MB 10.5MB expdb
8 94.9MB 95.9MB 1049kB frp
9 95.9MB 96.2MB 262kB ppl
10 96.2MB 130MB 33.6MB ext4 nvdata
11 130MB 163MB 33.6MB metadata
12 163MB 168MB 4456kB ext4 persist
13 168MB 168MB 262kB seccfg
14 168MB 176MB 8389kB oemkeystore
15 176MB 180MB 3146kB proinfo
16 180MB 205MB 25.2MB md1img
17 205MB 210MB 4981kB md1dsp
18 210MB 214MB 4194kB md1arm7
19 214MB 219MB 5243kB md3img
20 219MB 224MB 5243kB nvram
22 225MB 226MB 1049kB lk2
23 226MB 268MB 41.9MB boot
24 268MB 277MB 8389kB logo
25 277MB 282MB 5243kB tee1
26 282MB 287MB 5243kB tee2
27 287MB 294MB 6291kB secro
28 294MB 302MB 8389kB keystore
29 302MB 319MB 16.8MB ext4 apps_log
30 319MB 336MB 16.8MB ext4 diag
31 336MB 646MB 310MB ext4 oem
32 646MB 856MB 210MB ext4 cache
33 856MB 881MB 25.2MB ext4 Qnovo
35 12.0GB 15.6GB 3613MB ext4 system
36 15.6GB 15.6GB 16.8MB flashinfo

(parted) mkpart
Partition name? []? lk
File system type? [ext2]?
Start? 224MBB
Start? 224MB
End? 225MB
Error: Partition(s) 34 on /dev/block/mmcblk0 have been written, but we have been
unable to inform the kernel of the change, probably because it/they are in use.
As a result, the old partition(s) will remain in use. You should reboot now
before making further changes.
Ignore/Cancel? ,
Ignore/Cancel? CA
Ignore/Cancel? can
(parted) mkpart
Partition name? []? userdata
File system type? [ext2]? ext4
Start? 881MB
End? 12.0GB
(parted) print
Model: MMC Q313MB (sd/mmc)
Disk /dev/block/mmcblk0: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 524kB 2621kB 2097kB ta
2 2621kB 13.1MB 10.5MB ext4 protect1
3 13.1MB 25.2MB 12.1MB ext4 protect2
4 25.2MB 41.9MB 16.8MB ext4 ltalabel
5 41.9MB 83.9MB 41.9MB fotakernel
6 83.9MB 84.4MB 524kB para
7 84.4MB 94.9MB 10.5MB expdb
8 94.9MB 95.9MB 1049kB frp
9 95.9MB 96.2MB 262kB ppl
10 96.2MB 130MB 33.6MB ext4 nvdata
11 130MB 163MB 33.6MB metadata
12 163MB 168MB 4456kB ext4 persist
13 168MB 168MB 262kB seccfg
14 168MB 176MB 8389kB oemkeystore
15 176MB 180MB 3146kB proinfo
16 180MB 205MB 25.2MB md1img
17 205MB 210MB 4981kB md1dsp
18 210MB 214MB 4194kB md1arm7
19 214MB 219MB 5243kB md3img
20 219MB 224MB 5243kB nvram
21 224MB 225MB 1049kB ext2
22 225MB 226MB 1049kB lk2
23 226MB 268MB 41.9MB boot
24 268MB 277MB 8389kB logo
25 277MB 282MB 5243kB tee1
26 282MB 287MB 5243kB tee2
27 287MB 294MB 6291kB secro
28 294MB 302MB 8389kB keystore
29 302MB 319MB 16.8MB ext4 apps_log
30 319MB 336MB 16.8MB ext4 diag
31 336MB 646MB 310MB ext4 oem
32 646MB 856MB 210MB ext4 cache
33 856MB 881MB 25.2MB ext4 Qnovo
34 881MB 12.0GB 11.1GB ext4
35 12.0GB 15.6GB 3613MB ext4 system
36 15.6GB 15.6GB 16.8MB flashinfo

(parted) help
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) name 34 userdfa
(parted) name 34 da
(parted) name 4 3x
Partition name? [protect2]? no
(parted) pa r
Model: MMC Q313MB (sd/mmc)
Disk /dev/block/mmcblk0: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 524kB 2621kB 2097kB ta
2 2621kB 13.1MB 10.5MB ext4 protect1
3 13.1MB 25.2MB 12.1MB ext4 no
4 25.2MB 41.9MB 16.8MB ext4 ltalabel
5 41.9MB 83.9MB 41.9MB fotakernel
6 83.9MB 84.4MB 524kB para
7 84.4MB 94.9MB 10.5MB expdb
8 94.9MB 95.9MB 1049kB frp
9 95.9MB 96.2MB 262kB ppl
10 96.2MB 130MB 33.6MB ext4 nvdata
11 130MB 163MB 33.6MB metadata
12 163MB 168MB 4456kB ext4 persist
13 168MB 168MB 262kB seccfg
14 168MB 176MB 8389kB oemkeystore
15 176MB 180MB 3146kB proinfo
16 180MB 205MB 25.2MB md1img
17 205MB 210MB 4981kB md1dsp
18 210MB 214MB 4194kB md1arm7
19 214MB 219MB 5243kB md3img
20 219MB 224MB 5243kB nvram
21 224MB 225MB 1049kB ext2
22 225MB 226MB 1049kB lk2
23 226MB 268MB 41.9MB boot
24 268MB 277MB 8389kB logo
25 277MB 282MB 5243kB tee1
26 282MB 287MB 5243kB tee2
27 287MB 294MB 6291kB secro
28 294MB 302MB 8389kB keystore
29 302MB 319MB 16.8MB ext4 apps_log
30 319MB 336MB 16.8MB ext4 diag
31 336MB 646MB 310MB ext4 oem
32 646MB 856MB 210MB ext4 cache
33 856MB 881MB 25.2MB ext4 Qnovo
34 881MB 12.0GB 11.1GB ext4 da
35 12.0GB 15.6GB 3613MB ext4 system
36 15.6GB 15.6GB 16.8MB flashinfo

(parted) p
Model: MMC Q313MB (sd/mmc)
Disk /dev/block/mmcblk0: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 524kB 2621kB 2097kB ta
2 2621kB 13.1MB 10.5MB ext4 protect1
3 13.1MB 25.2MB 12.1MB ext4 no
4 25.2MB 41.9MB 16.8MB ext4 ltalabel
5 41.9MB 83.9MB 41.9MB fotakernel
6 83.9MB 84.4MB 524kB para
7 84.4MB 94.9MB 10.5MB expdb
8 94.9MB 95.9MB 1049kB frp
9 95.9MB 96.2MB 262kB ppl
10 96.2MB 130MB 33.6MB ext4 nvdata
11 130MB 163MB 33.6MB metadata
12 163MB 168MB 4456kB ext4 persist
13 168MB 168MB 262kB seccfg
14 168MB 176MB 8389kB oemkeystore
15 176MB 180MB 3146kB proinfo
16 180MB 205MB 25.2MB md1img
17 205MB 210MB 4981kB md1dsp
18 210MB 214MB 4194kB md1arm7
19 214MB 219MB 5243kB md3img
20 219MB 224MB 5243kB nvram
21 224MB 225MB 1049kB ext2
22 225MB 226MB 1049kB lk2
23 226MB 268MB 41.9MB boot
24 268MB 277MB 8389kB logo
25 277MB 282MB 5243kB tee1
26 282MB 287MB 5243kB tee2
27 287MB 294MB 6291kB secro
28 294MB 302MB 8389kB keystore
29 302MB 319MB 16.8MB ext4 apps_log
30 319MB 336MB 16.8MB ext4 diag
31 336MB 646MB 310MB ext4 oem
32 646MB 856MB 210MB ext4 cache
33 856MB 881MB 25.2MB ext4 Qnovo
34 881MB 12.0GB 11.1GB ext4 da
35 12.0GB 15.6GB 3613MB ext4 system
36 15.6GB 15.6GB 16.8MB flashinfo

(parted) name 234
Error: Partition doesn't exist.
(parted) name 34 userdata
(parted) name 21 lk
(parted) print
Model: MMC Q313MB (sd/mmc)
Disk /dev/block/mmcblk0: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 524kB 2621kB 2097kB ta
2 2621kB 13.1MB 10.5MB ext4 protect1
3 13.1MB 25.2MB 12.1MB ext4 no
4 25.2MB 41.9MB 16.8MB ext4 ltalabel
5 41.9MB 83.9MB 41.9MB fotakernel
6 83.9MB 84.4MB 524kB para
7 84.4MB 94.9MB 10.5MB expdb
8 94.9MB 95.9MB 1049kB frp
9 95.9MB 96.2MB 262kB ppl
10 96.2MB 130MB 33.6MB ext4 nvdata
11 130MB 163MB 33.6MB metadata
12 163MB 168MB 4456kB ext4 persist
13 168MB 168MB 262kB seccfg
14 168MB 176MB 8389kB oemkeystore
15 176MB 180MB 3146kB proinfo
16 180MB 205MB 25.2MB md1img
17 205MB 210MB 4981kB md1dsp
18 210MB 214MB 4194kB md1arm7
19 214MB 219MB 5243kB md3img
20 219MB 224MB 5243kB nvram
21 224MB 225MB 1049kB ext2 lk
22 225MB 226MB 1049kB lk2
23 226MB 268MB 41.9MB boot
24 268MB 277MB 8389kB logo
25 277MB 282MB 5243kB tee1
26 282MB 287MB 5243kB tee2
27 287MB 294MB 6291kB secro
28 294MB 302MB 8389kB keystore
29 302MB 319MB 16.8MB ext4 apps_log
30 319MB 336MB 16.8MB ext4 diag
31 336MB 646MB 310MB ext4 oem
32 646MB 856MB 210MB ext4 cache
33 856MB 881MB 25.2MB ext4 Qnovo
34 881MB 12.0GB 11.1GB ext4 userdata
35 12.0GB 15.6GB 3613MB ext4 system
36 15.6GB 15.6GB 16.8MB flashinfo

(parted) mount /datqa
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted) exit
align-check TYPE N check partition N for TYPE(min|opt)
alignment
help [COMMAND] print general help, or help on
COMMAND
mklabel,mktable LABEL-TYPE create a new disklabel (partition
table)
mkpart PART-TYPE [FS-TYPE] START END make a partition
name NUMBER NAME name partition NUMBER as NAME
print [devices|free|list,all|NUMBER] display the partition table,
available devices, free space, all found partitions, or a particular
partition
quit exit program
rescue START END rescue a lost partition near START
and END
resizepart NUMBER END resize partition NUMBER
rm NUMBER delete partition NUMBER
select DEVICE choose the device to edit
disk_set FLAG STATE change the FLAG on selected device
disk_toggle [FLAG] toggle the state of FLAG on selected
device
set NUMBER FLAG STATE change the FLAG on partition NUMBER
toggle [NUMBER [FLAG]] toggle the state of FLAG on partition
NUMBER
unit UNIT set the default unit to UNIT
version display the version number and
copyright information of GNU Parted
(parted)
C:\Program Files (x86)\Minimal ADB and Fastboot>

Now, it looks like this :

(parted) print
Model: MMC Q313MB (sd/mmc)
Disk /dev/block/mmcblk0: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 524kB 2621kB 2097kB ta
2 2621kB 13.1MB 10.5MB ext4 protect1
3 13.1MB 25.2MB 12.1MB ext4 protect2
4 25.2MB 41.9MB 16.8MB ext4 ltalabel
5 41.9MB 83.9MB 41.9MB fotakernel
6 83.9MB 84.4MB 524kB para
7 84.4MB 94.9MB 10.5MB expdb
8 94.9MB 95.9MB 1049kB frp
9 95.9MB 96.2MB 262kB ppl
10 96.2MB 130MB 33.6MB ext4 nvdata
11 130MB 163MB 33.6MB metadata
12 163MB 168MB 4456kB ext4 persist
13 168MB 168MB 262kB seccfg
14 168MB 176MB 8389kB oemkeystore
15 176MB 180MB 3146kB proinfo
16 180MB 205MB 25.2MB md1img
17 205MB 210MB 4981kB md1dsp
18 210MB 214MB 4194kB md1arm7
19 214MB 219MB 5243kB md3img
20 219MB 224MB 5243kB nvram
21 224MB 225MB 1049kB lk
22 225MB 226MB 1049kB lk2
23 226MB 268MB 41.9MB boot
24 268MB 277MB 8389kB logo
25 277MB 282MB 5243kB tee1
26 282MB 287MB 5243kB tee2
27 287MB 294MB 6291kB secro
28 294MB 302MB 8389kB keystore
29 302MB 319MB 16.8MB ext4 apps_log
30 319MB 336MB 16.8MB ext4 diag
31 336MB 646MB 310MB ext4 oem
32 646MB 856MB 210MB ext4 cache
33 856MB 881MB 25.2MB ext4 Qnovo
34 881MB 12.0GB 11.1GB ext4 userdata
35 12.0GB 15.6GB 3613MB ext4 system
36 15.6GB 15.6GB 16.8MB flashinfo

Could somepony help me please?

PS. Sorry for my english if it's really bad.