Warning
- Do this at your own risk!
- This might brick your device. Backup before proceeding.
- Avoid PMing me if you have questions.
- Extract Files:
- Place the extracted files in
/sbin
and set permissions to755
.
- Place the extracted files in
-
Launch Parted:
parted /dev/block/mmcblk0 # or /dev/block/sda, depending on your device
-
List Partitions:
p
- Take pictures of this list for reference.
-
Remove System Partition:
rm x # replace x with the system partition number (e.g., rm 13)
-
Remove Data Partition:
rm 67 # replace 67 with the actual data partition number
-
List Partitions Again:
p
- Confirm that the partitions have been removed.
-
Create New System Partition:
mkpart system ext4 xMB yMB # x: endpoint of last partition, y: desired size (nGB*1024+x)
-
List Partitions Again:
p
- Check the endpoint of the new system partition.
-
Create New Userdata Partition:
mkpart userdata yMB zGB # z: should match the size from the first list
-
Final Partition List:
p
-
Quit Parted:
q
- Reboot to Recovery.
- Format the New Partitions:
- For System: Change Filesystem to ext4.
- For Data: Select Format Data.
If formatting fails, try restarting recovery.