0% found this document useful (0 votes)
495 views7 pages

Poco Partition 128gb

This document provides instructions for repartitioning the storage on a Poco F1 device to increase the system partition size to 5GB. It involves using ADB commands to rename partitions, remove the userdata partition, recreate it and a new system partition of the desired sizes, and then formatting the partitions. The process risks bricking the device if not followed carefully according to the specific device storage sizes. Backup of data is recommended before attempting.

Uploaded by

Ikan Tawar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
495 views7 pages

Poco Partition 128gb

This document provides instructions for repartitioning the storage on a Poco F1 device to increase the system partition size to 5GB. It involves using ADB commands to rename partitions, remove the userdata partition, recreate it and a new system partition of the desired sizes, and then formatting the partitions. The process risks bricking the device if not followed carefully according to the specific device storage sizes. Backup of data is recommended before attempting.

Uploaded by

Ikan Tawar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

GUIDE TO RE-PARTITION (RAPE) POCO AND MAKE 5GB SYSTAM

NOTE: NOT RECOMMENDED FOR 64GB VARIENTS 128AND UP IS GOOD.


WE (DANISH RAZA and POCO OS TEAM) ARE NOT RESPONSIBLE IF YOUR DEVICE
GET'S BRICKED OR SOMETHING HAPPENS, PROCEED ON YOUR OWN RISK!
BACKUP YOUR INTERNAL STORAGE COZ ALL THE USER DATA WILL GET WIPED.
TEXT ENTERED IN GREEN COLOUR ARE COMMANDS REST YOU WILL
UNDERSTAND.
TEXT IN RED COLOUR ARE ERRORS, CONFIRMATIONS, MUST AND SHOULD
READ.
Install universal adb driver in pc with different location other than disk C: To
avoid confusion
Extract the given zip in pc and copy those files to adb directory
Boot to latest stable ofox recovery and make sure your system,vendor are of
EXT4 partition type
Now connect phone to pc in recovery mode, open cmd with admin rights(RUN
AS ADMINISTRATOR)
Now type the following commands.
Type your disk letter in which you installed adb driver and put : then hit enter.
adb devices
Check your device is connected or not

adb push parted /sbin

adb shell

chmod 777 /sbin/parted


In Poco F1 device system and userdata partition is in two different block of
emmc.
So first we need to rename system partition so here we go by using below
command

parted /dev/block/sde

unit b print

Here you will get the table of partitions see weather your system vendor and
other are there and you can see there is System partition so first of all we need
to convert and say name reserve by command

name 48 reserve
(here my system partition was given no 48 so I entered 48 to change name you
must see yours and type the number)
Now recheck list by the command
print
(after entering this above command the list appears and now see weather the
given name is changed or not)
Now quit
quit

Now go to another emmc block by command


parted /dev/block/sda
unit b print

here again like above image a list of partitions appears

Now copy and paste line of userdata into any text editor such as notepad for
safe keeping.

In parted commands .. ‘rm’ command is use for remove partition.


So first we need to remove userdata partition so in above image userdata at 21
number..( you need to put according to your list)
so enter command
rm 21

you may get this confirmation every where just type yes and hit enter.
Warning: Partition /dev/block/sda21 is being used. Are you sure you want to
continue?
Yes/No?
Yes

You may get this warning if your internal storage is used by something in pc
close it if there is nothing then type ignore and move to next command.
Error: Partition(s) 21 on /dev/block/sda 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

print
HERE COMES THE REAL TIME WHERE YOU HAVE TO BE VERY CAREFULL
DIFFERENT DEVICES HAVE DIFFERENT SIZES YOU MUST PROCEED ACCORDING
TO YOUR DEVICE ONLY.
Here I am using 128gb varient device
And this tutorial is for increasing system upto 5 gb you can set any as per your
need
To recreate the partitions that has just been removed, use the command below
But first need guide below the command
mkpart userdata ext4 1610612736 117666983935

 mkpart is the command for creating a new partition


 Here userdata is the partition name
 ext4 is the file system (if the partition has no fs, then use an empty space. So there
will be spaces in between the partition name and the start_length
 start_length is the end_length of the last partition (check using the print command)
 end_length is start_length + the partition_size (unless you're resizing a partition,
use the sizes from the values you pasted into notepad)

For exmaple :- in above image you can see my last partition is cache partition and it’s end
length is similar to userdata start length only just increase by 1.

5Gb = 5368709120 bytes

minus this values from end length of userdata (values you pasted into notepad)

So you will get 123035693055-5368709120=117666983935

Here answer value is your userdata end length

Rename the new partition you've just created using the command below

name 21 userdata
Now create system partition similar process as above mention
mkpart system ext4 117666983936 123035693055
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? ignore
Ignore
Rename the new partition you've just created using the command below
name 22 system
Now recheck list for above changes of partition are created perfectly or not by
using command
print
Now quit parted by using command
quit
Now do a reboot your device into recovery in phone
You will get mount error of partition in recovery so we need to fix then by
formating partition
adb push mkfs.ext4 /sbin

adb shell

chmod 777 /sbin/parted

chmod 777 /sbin/mkfs.ext4

mkfs.ext4 /dev/block/by-name/userdata
mke2fs 1.44.1 (24-Mar-2018)
/dev/block/by-name/userdata contains a ext4 file system
last mounted on /data on Sun Apr 17 10:57:31 2022
Proceed anyway? (y,N) y ?
y

mkfs.ext4 /dev/block/by-name/system

mkfs.ext4 /dev/block/by-name/reserve
mke2fs 1.44.1 (24-Mar-2018)
/dev/block/by-name/reserve contains a ext4 file system
last mounted on Sun Apr 17 11:36:45 2022
Proceed anyway? (y,N)
y
NOW DO A REBOOT TO RECOVERY IN PHONE.
AND WIPE EVERYTHING SYSTEM,VENDOR etc
FLASH ROM OF YOUR CHOISE.

BY: DANISH RAZA&POCO OS TEAM

You might also like