[GUIDE] Expand the system partition on Pixel XL/Pixel

Search This thread

Wonderlooo

Member
May 7, 2020
10
10
Because the area is too small to flash GSIs,and I try to expand the system partition 。
The tutorial is as follows
1.flash twrp,into twrp
2.Connecting to a computer,in cmd input “
Code:
adb shell
"
3.input
Code:
sgdisk --delete=33 /dev/block/sda

sgdisk --delete=34 /dev/block/sda

sgdisk --delete=35 /dev/block/sda

and then

Pixel (XL)32G input
Code:
sgdisk --new=33:227142:1275716 --change-name=33:system_a --typecode=33:EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 /dev/block/sda

sgdisk --new=34:1275717:2324291 --change-name=34:system_b --typecode=34:77036CD4-03D5-42BB-8ED1-37E5A88BAA34 /dev/block/sda

sgdisk --new=35:2324292:7785285 --change-name=35:userdata --typecode=35:EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 /dev/block/sda
Pixel (XL)128G input
Code:
sgdisk --new=33:227142:1537862 --change-name=33:system_a --typecode=33:77036CD4-03D5-42BB-8ED1-37E5A88BAA34 /dev/block/sda

sgdisk --new=34:1537863:2848582 --change-name=34:system_b --typecode=34:EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 /dev/block/sda

sgdisk --new=35:2848583:31215429 --change-name=35:userdata --typecode=35:EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 /dev/block/sda

4.reboot bootloader
input
Code:
fastboot -w
5.reboot

My English is not very good. I hope you can understand it

{Mod edit}
 
Last edited by a moderator:

djared704

Senior Member
Jul 12, 2018
116
78
Los Pringles, California
I'd reckon someone destroying their entire phone due to repartitioning Have you actually tried it yourself to make sure its safe? Plus why would we need to use GSI's anyway, pixel's are loved for custom firmware, and it's extremely easy to build new roms.
 

Wonderlooo

Member
May 7, 2020
10
10
I'd reckon someone destroying their entire phone due to repartitioning Have you actually tried it yourself to make sure its safe? Plus why would we need to use GSI's anyway, pixel's are loved for custom firmware, and it's extremely easy to build new roms.


Ok guys
I'm using this method myself, and I've told my friends that they're using it, too. So don't worry about it.

As for GSI, some people like MIUI, OOS, etc., so there will always be someone who will use it.
 
  • Like
Reactions: martinchaine

madsurgeon

Senior Member
Jan 30, 2013
413
260


---------- Post added at 11:25 PM ---------- Previous post was at 11:21 PM ----------

there is nobody that likes miui

Sorry, beg to differ. Been using a mi pad4, and the only reason i switched to gestures on 10 was because of the way MIUI had implemented it. It's got tons more features than stock 10. The file manager is brilliant, 3 finger swipe to screenshot, and not to mention quickball. So yeah, I'd gladly extend space for system, like i did on my Nexus 5 to use lineage. I'm glad someone's taken the initiative to do this. Good job OP.
 

Gmobilize

Senior Member
Oct 31, 2011
648
307
Riga
The command fastboot -w issues following userdata related error:
CreateProcess failed: The system cannot find the file specified. (2)
error: Cannot generate image for userdata
 

Riyaddl

New member
Aug 4, 2019
3
0
can you please explain. i flashed pixel experience re-partitioning and now i want to revert back cause the system is taking to much space (10 GB) but i don't know how.
 

GizmoTheGreen

Senior Member
  • Jun 13, 2010
    347
    50
    i9100
    Ouya
    is there an updated way to do this? used latest twrp and commands were succesful but when trying fastboot-w it gives this

    Code:
    Erasing 'userdata'                                 OKAY [  1.453s]
    CreateProcess failed: The system cannot find the file specified. (2)
    fastboot: error: Cannot generate image for userdata
     

    Top Liked Posts

    • There are no posts matching your filters.
    • 2
      Because the area is too small to flash GSIs,and I try to expand the system partition 。
      The tutorial is as follows
      1.flash twrp,into twrp
      2.Connecting to a computer,in cmd input “
      Code:
      adb shell
      "
      3.input
      Code:
      sgdisk --delete=33 /dev/block/sda
      
      sgdisk --delete=34 /dev/block/sda
      
      sgdisk --delete=35 /dev/block/sda

      and then

      Pixel (XL)32G input
      Code:
      sgdisk --new=33:227142:1275716 --change-name=33:system_a --typecode=33:EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 /dev/block/sda
      
      sgdisk --new=34:1275717:2324291 --change-name=34:system_b --typecode=34:77036CD4-03D5-42BB-8ED1-37E5A88BAA34 /dev/block/sda
      
      sgdisk --new=35:2324292:7785285 --change-name=35:userdata --typecode=35:EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 /dev/block/sda
      Pixel (XL)128G input
      Code:
      sgdisk --new=33:227142:1537862 --change-name=33:system_a --typecode=33:77036CD4-03D5-42BB-8ED1-37E5A88BAA34 /dev/block/sda
      
      sgdisk --new=34:1537863:2848582 --change-name=34:system_b --typecode=34:EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 /dev/block/sda
      
      sgdisk --new=35:2848583:31215429 --change-name=35:userdata --typecode=35:EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 /dev/block/sda

      4.reboot bootloader
      input
      Code:
      fastboot -w
      5.reboot

      My English is not very good. I hope you can understand it

      {Mod edit}
      2
      As for GSI, some people like MIUI

      there is nobody that likes miui
      1
      I'd reckon someone destroying their entire phone due to repartitioning Have you actually tried it yourself to make sure its safe? Plus why would we need to use GSI's anyway, pixel's are loved for custom firmware, and it's extremely easy to build new roms.


      Ok guys
      I'm using this method myself, and I've told my friends that they're using it, too. So don't worry about it.

      As for GSI, some people like MIUI, OOS, etc., so there will always be someone who will use it.
      1
      @xicib81757 it does work I followed the guide and successfully changed the partition size. Following the original post creates a 5G+ partition. I did later adjust this down to 3GB. Worked flawlessly.