[Tutorial+Video] How to Re-partition Nokia X/XL (Increase System & Data size)

Search This thread

abhijit1998

Senior Member
Jan 21, 2016
333
333
City- UNKNOWN!!!!
I have been thinking that I will tell but I forgot all time. After partition, I flashed stock Rom by flasher. But when I boot into software I saw that the storage is same as old ones. But I have modified the partitions. In some time later I backed up system by TWRP. When I restore the back up files, I saw that the system storage is as my partition. Other storage like data and internal storage are same as my partitions. Only this happens for system partitions.
 
Last edited:

abhijit1998

Senior Member
Jan 21, 2016
333
333
City- UNKNOWN!!!!
Some Questions

1. Our device has 100MB cache partition. It is almost free all time ( when I check it only some MBs were used only). I want to use some of it's size to other partition, like I want to reduce cache partition's size so I can use it in another partitions.
Will it effect the phone?
2. Do you have any way to disable internal storage? I mean p21?

Hoping reply will come soon.:rolleyes::p
 

yshalsager

Recognized Developer
1. Our device has 100MB cache partition. It is almost free all time ( when I check it only some MBs were used only). I want to use some of it's size to other partition, like I want to reduce cache partition's size so I can use it in another partitions.
Will it effect the phone?
2. Do you have any way to disable internal storage? I mean p21?

Hoping reply will come soon.:rolleyes::p

It's better to let cache bigger than 50m
To disable internal, you can edit fstab file in boot.img easily and remove its mount line
 
  • Like
Reactions: abhijit1998

abhijit1998

Senior Member
Jan 21, 2016
333
333
City- UNKNOWN!!!!

Sofiane omega

Senior Member
Feb 20, 2015
298
128
Redmi 9 Power
Xiaomi Poco F3
Bro help mee!!!!
 

Attachments

  • 2017-05-27.png
    2017-05-27.png
    64.5 KB · Views: 81

kero149

New member
May 29, 2017
1
0
انا كل مارجع للبيك اب بيقولي unmount لكل حاجه البيرلود والكاش وكله
 

Mirak97

Member
Oct 3, 2017
41
9
Nokia x partition table

can someone make me a partition table for nokia x my phone is completly dead cuz i accedantly erased partitions so if some one do it with the provided partition info that would be great the file would be and xml file cuz im planin to flash the phone with Qfil so plz help
 

Lord Z

Member
Nov 8, 2014
12
0
Dhaka
Storage shows 0 mb

I was following you video instructions but my phone initiated restart in the middle of the process now twrp shows storages are 0 mb. I tried again by following your tutorial now this shows up:

How can I fix it?


C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell
adb server version (26) doesn't match this client (39); killing...
* daemon started successfully
~ # fdisk -l /dev/block/mmcblk0
Omitting empty partition (21)

Disk /dev/block/mmcblk0: 3909 MB, 3909091328 bytes
1 heads, 16 sectors/track, 477184 cylinders
Units = cylinders of 16 * 512 = 8192 bytes

Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 * 1 3 20 4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2 3 34 250 45 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3 34 6434 51200 c Win95 FAT32 (LBA)
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4 6434 477184 3766001+ 5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5 8193 8448 2048 46 Unknown
/dev/block/mmcblk0p6 8449 8832 3072 58 Unknown
/dev/block/mmcblk0p7 8833 9216 3072 4a Unknown
/dev/block/mmcblk0p8 9217 9600 3072 4b Unknown
/dev/block/mmcblk0p9 9601 9856 2048 5d Unknown
/dev/block/mmcblk0p10 9857 10368 4096 90 Unknown
/dev/block/mmcblk0p11 10369 10496 1024 63 GNU HURD or SysV
/dev/block/mmcblk0p12 10497 10592 768 47 Unknown
/dev/block/mmcblk0p13 10593 10976 3072 59 Unknown
/dev/block/mmcblk0p14 10977 12673 13576 60 Unknown
/dev/block/mmcblk0p15 12674 13953 10240 91 Unknown
/dev/block/mmcblk0p16 13954 15233 10240 83 Linux
/dev/block/mmcblk0p17 15234 16930 13576 48 Unknown
/dev/block/mmcblk0p18 469797 477184 59099+ 83 Linux
/dev/block/mmcblk0p19 16932 75810 471032 83 Linux
/dev/block/mmcblk0p20 75812 88610 102392 4c Unknown

Partition table entries are not in disk order
~ # dd if=/dev/block/mmcblk0p20 of=/sdcard/mmcblk0p20.img
204784+0 records in
204784+0 records out
104849408 bytes (100.0MB) copied, 2.850988 seconds, 35.1MB/s
~ # dd if=/dev/block/mmcblk0p23 of=/sdcard/mmcblk0p23.img
dd: can't open '/dev/block/mmcblk0p23': No such file or directory
~ # 
C:\Program Files (x86)\Minimal ADB and Fastboot>
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9


    Ultimate Guide to Re-partition Nokia X/XL
    (Increase System & Data size)
    Code:
    #include 
    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    */

    Disclaimer:
    By doing this, of course your warranty is now void, This method is VERY ADVANCED, I don't recommend newbies & beginners to do it, You may BRICK your device !
    FIRST read to the end then do it !! I am not responsible for the "BRICKs".
    If you have any question before doing this method i'll be happy to answer you in comments below.


    Before doing anything make sure to do FULL DD Backup of your mobile, to restore it if anything went wrong.
    Check @mdfzhi Guide Here

    Part 1: Information:
    Nokia X/XL have 3.9 GB EMMC Storage (26 Partition), System is 560 MB , Data is 1.1 GB and Internal Storage is 1.2 GB.
    Nokia X Partitions & Blocks:
    gZTZHcH.png

    Nokia XL Partitions & Blocks:
    T6cm80g.png


    by looking to this table, we don't know about These Partitions (p1-p2-p4-p5-p6-p7-p8-p9-p10-p11-p12-p13-p15-p20-p24-p26) Mounts, So before doing anything YOU HAVE TO BACKUP Them.

    The Main idea of Re-partitioning:
    Increasing some partitions size by decreasing some others, WITHOUT dealing with any partition we don't know.
    So you can control size of: System - Cache -Data - Storage - Preload

    Open my Partitions Table Here and look:
    Choose your mobile then Read :D
    I have two MODs:
    1- 2.30 GB Data With 150MB.
    2- 950 MB System + 2.30 GB Data With 150MB.
    In these MODs i didn't changed any partition size except ones i have marked.



    How to Calculate Size of Any partition?

    End - Start = Total (Number of blocks)
    Total * 8 = Blocks (Size in Blocks)
    Blocks / 1024 = Size in MB


    Editing Partitions Sizes:
    In order to edit any partition size you need to delete all partitions before it.
    Ex. To edit Storage (p21) i have to delete partitions from p26 to p21.
    Then you'll create them again with modified sizes.
    The next step is set each partition ID like table (YOU CAN'T CHANGE ANY ID)
    Final step is Syncing Partitions table & Apply changes.
    Lets GO !


    You'll need to:
    - Many spare times to read and follow this tutorial.
    - Your phone with battery not below 50%.
    - Any Custom Recovery as long as it can unmount all partitions & use adb (Make Sure Recovery won't reboot suddenly)
    I have done it with TWRP 3.0.2-0 Recovery - I think Miui Recovery is good choice also.
    Download Miui Recovery Here
    - A reliable PC with Nokia X/XL Drivers & ADB installed.
    Drivers on Windows/Linux/Mac Here
    Download ADB & Fastboot Here
    - A reliable USB cable.
    - About 700 MB Free space in SD Card.
    - Choose MOD you'll do as you like. (But READ the two before DOING ANYTHING)


    Part 2: Re-Partitioning:
    Copy All Commands & Sizes From My Excel Sheet :D

    MOD 1: Increase System To 950 MB & Data Size to 2.30 GB (The Best !)

    Nokia XL
    EYcizum.png

    Nokia X
    http://i.imgur.com/EYcizum.png

    We'll Re-partition all partitions from p18 to p26) with sizes in above picture, to make System 950 MB - Data 2.30 GB - Internal Storage 150 MB & Preload 30 MB - Check Page 3 in Partition Table.

    A-Preparing:
    1- Copy whole data from Internal Storage to SD Card or PC
    2- Boot to Custom Recovery then Unmount all partitions except SD Card.
    unmount.png

    3- Connect phone to PC via USB cable then open ADB tools (Shift + Right Click in ADB Folder - select Open CMD.
    clipimage.jpg

    4- Type
    Code:
    adb shell
    you'll see # sign, Now type
    Code:
    fdisk -l /dev/block/mmcblk0
    5- You'll see your partitions table, make sure it's like "First Page in Partition Table"
    Nokia XL
    2.jpg

    Nokia X
    5jKCp6q.png



    B-Backing Up Unknown Partitions :
    1- Backup Partitions from 23 to 26, type:
    Code:
    dd if=/dev/block/mmcblk0p20 of=/sdcard/mmcblk0p20.img
    dd if=/dev/block/mmcblk0p23 of=/sdcard/mmcblk0p23.img
    dd if=/dev/block/mmcblk0p24 of=/sdcard/mmcblk0p24.img
    dd if=/dev/block/mmcblk0p25 of=/sdcard/mmcblk0p25.img
    dd if=/dev/block/mmcblk0p26 of=/sdcard/mmcblk0p26.img
    2- Make sure this backup stored in SD Card not Internal Storage.


    C-Re-Partitioning-Deleting Partitions:
    1- Continue in ADB, type:
    Code:
    busybox fdisk /dev/block/mmcblk0
    3.jpg

    2- We'll use "d" command to delete partitions from 26 to 21
    Type each line command below then hit enter after every command
    Code:
    d
    26
    d
    25
    d
    24
    d
    23
    d
    22
    d
    21
    d
    20
    d
    19
    d
    18
    4.jpg


    D-Re-Partitioning-Creating New Partitions:
    1- Now we'll use "n" command to create new partitions with modified sizes, command usage:
    n - Enter: To start creating new partition.
    Start block - Enter: First cylinder of partition.
    End block- Enter: Last cylinder of partition.

    2- Continue in ADB After last command, type:
    Code:
    n
    16931
    134688
    n
    134690
    147487
    n
    147489
    147491
    n
    147493
    166690
    n
    166692
    452514
    n
    452516
    464674
    n
    464676
    465954
    n
    465956
    469794
    n
    469796
    477184
    5.jpg


    E-Re-Partitioning-Set New Partitions Type:
    1- Now we'll use "t" command to set new partitions type as (Original Partition Table) with modified sizes, command usage:
    t - Enter: Start Partition Type Modification.
    Partition Number - Enter: Choose Partition.
    Type ID - Enter: Set Partition ID.

    2- Continue in ADB After last command, type:
    Code:
    t
    18
    83
    t
    19
    83
    t
    20
    4c
    t
    21
    c
    t
    22
    83
    t
    23
    83
    t
    24
    7d
    t
    25
    83
    t
    26
    83

    F-Re-Partitioning-Apply Modifications And Saving:
    Till now we haven't done any real changes, you can cancel these changes by Closing ADB Window.
    To Apply Changes:
    1- use "p" command to sync new partitions to table, type:
    Code:
    p
    then press Enter.
    2- You'll see Modified Partition Table, Make sure all changes is OK.
    3- Type
    Code:
    w
    to save New Partition Table, then Wait till changes.
    xD5Ig1F.png



    G-Restoring Unknown Partitions Backup:
    We are finished Re-Partitioning, it's time to restore backup we made in step "b".

    1- Type:
    Code:
    dd if=/sdcard/mmcblk0p20.img of=/dev/block/mmcblk0p20
    dd if=/sdcard/mmcblk0p23.img of=/dev/block/mmcblk0p23
    dd if=/sdcard/mmcblk0p24.img of=/dev/block/mmcblk0p24
    dd if=/sdcard/mmcblk0p25.img of=/dev/block/mmcblk0p25
    dd if=/sdcard/mmcblk0p26.img of=/dev/block/mmcblk0p26
    2- Now Exit ADB, type:
    Code:
    exit
    then
    Code:
    adb reboot



    H-The last step:

    In order to use New Partitions we need to wipe it through Custom Recovery.
    Boot to Custom Recovery and Wipe all partitions except SD Card.
    wipe.png

    Congratulations ! you have done it successfully, Now Flash any ROM / Restore Custom Recovery Backup to use your phone.


    MOD 2: Increase Data Size to 2.30 GB

    0OLhUmb.png

    We'll Re-partition (p21 & p22) with sizes in above picture, to make Data 2.30 GB & Internal Storage 150 MB - Check Page 2 in Partition Table.

    A-Preparing:
    1- Copy whole data from Internal Storage to SD Card or PC
    2- Boot to Custom Recovery then Unmount all partitions except SD Card.
    unmount.png

    3- Connect phone to PC via USB cable then open ADB tools (Shift + Right Click in ADB Folder - select Open CMD.
    clipimage.jpg

    4- Type
    Code:
    adb shell
    you'll see # sign, Now type
    Code:
    fdisk -l /dev/block/mmcblk0
    5- You'll see your partitions table, make sure it's like "First Page in Partition Table"
    Nokia XL
    2.jpg

    Nokia X
    5jKCp6q.png



    B-Backing Up Unknown Partitions :
    1- Backup Partitions from 23 to 26, type:
    Code:
    dd if=/dev/block/mmcblk0p23 of=/sdcard/mmcblk0p23.img
    dd if=/dev/block/mmcblk0p24 of=/sdcard/mmcblk0p24.img
    dd if=/dev/block/mmcblk0p25 of=/sdcard/mmcblk0p25.img
    dd if=/dev/block/mmcblk0p26 of=/sdcard/mmcblk0p26.img
    2- Make sure this backup stored in SD Card not Internal Storage.


    C-Re-Partitioning-Deleting Partitions:
    1- Continue in ADB, type:
    Code:
    busybox fdisk /dev/block/mmcblk0
    3.jpg

    2- We'll use "d" command to delete partitions from 26 to 21
    Type each line command below then hit enter after every command
    Code:
    d
    26
    d
    25
    d
    24
    d
    23
    d
    22
    d
    21
    4.jpg


    D-Re-Partitioning-Creating New Partitions:
    1- Now we'll use "n" command to create new partitions with modified sizes, command usage:
    n - Enter: To start creating new partition.
    Start block - Enter: First cylinder of partition.
    End block- Enter: Last cylinder of partition.

    2- Continue in ADB After last command, type:
    Code:
    n
    101413
    120613
    n
    120613
    406437
    n
    406437
    418597
    n
    418597
    419877
    n
    419877
    469797
    n
    469797
    477184
    5.jpg


    E-Re-Partitioning-Set New Partitions Type:
    1- Now we'll use "t" command to set new partitions type as (Original Partition Table) with modified sizes, command usage:
    t - Enter: Start Partition Type Modification.
    Partition Number - Enter: Choose Partition.
    Type ID - Enter: Set Partition ID.

    2- Continue in ADB After last command, type:
    Code:
    t
    21
    c
    t
    22
    83
    t
    23
    83
    t
    24
    7d
    t
    25
    83
    t
    26
    83

    F-Re-Partitioning-Apply Modifications And Saving:
    Till now we haven't done any real changes, you can cancel these changes by Closing ADB Window.
    To Apply Changes:
    1- use "p" command to sync new partitions to table, type:
    Code:
    p
    then press Enter.
    2- You'll see Modified Partition Table, Make sure all changes is OK.
    3- Type
    Code:
    w
    to save New Partition Table, then Wait till changes.


    G-Restoring Unknown Partitions Backup:
    We are finished Re-Partitioning, it's time to restore backup we made in step "b".

    1- Type:
    Code:
    dd if=/sdcard/mmcblk0p23.img of=/dev/block/mmcblk0p23
    dd if=/sdcard/mmcblk0p24.img of=/dev/block/mmcblk0p24
    dd if=/sdcard/mmcblk0p25.img of=/dev/block/mmcblk0p25
    dd if=/sdcard/mmcblk0p26.img of=/dev/block/mmcblk0p26
    2- Now Exit ADB, type:
    Code:
     exit
    then
    Code:
    adb reboot



    H-The last step:

    In order to use New Partitions we need to wipe it through Custom Recovery.
    Boot to Custom Recovery and Wipe all partitions except SD Card.
    wipe.png

    Congratulations ! you have done it successfully, Now Flash any ROM / Restore Custom Recovery Backup to use your phone.


    Video Tutorial


    Notes:
    1- If you get "Warning" Error in Step F-3. Check Partitions using "p" command, if changes can't be done then Change Custom Recovery then do Steps again.
    2- If Custom Recovery rebooted suddenly, don't worry do Steps again.
    3- If TWRP couldn't wipe New Partitions, boot to ClockWorkMod Recovery 6.0.4.8 and Wipe them.
    4- Nokia X doesn't have p26 partition.

    Final Result :D
    12_52_1330upper.png

    Screenshot_27-08-2016_23.58.11.png

    Screenshot_27-08-2016_23.58.22.png

    Screenshot_27-08-2016_23.58.29.png


    - Data Only:
    Screenshot_27-08-2016_23.58.00.png


    Thanks:
    netware @ 4pda For helping me doing this on Nokia XL
    @ani00 For testing on Nokia X
    Me :cool: For Testing and writing this guide
    Don't Forget To make BACKUP And Hit Thanks :good:
    2
    Guide has been updated !
    Add Nokia X Partitions & Instructions
    Thanks @ani00
    1
    With this good news in hand, will there be any rom development coming on Nokia X/XL?
    1
    my phone won't re-partition with any method and dose the dd backup content the stock partition