Advertisement
metalx1000

Delete Partitions on Android with Parted and TWRP

Dec 3rd, 2022
1,373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. # Delete Partitions on Android with Parted and TWRP
  2.  
  3. #get parted
  4. https://archive.org/details/parted_20221204
  5.  
  6.  
  7. adb push /path/to/parted /sbin/parted
  8. adb shell
  9. chmod 777 /sbin/parted
  10. parted /dev/block/mmcblk0
  11.  
  12. #view all partitions - might want to keep a log of this
  13. p free
  14.  
  15. #delete partition with rm command in parted
  16.  
  17. rm 42
  18. rm 41
  19. rm 40
  20. rm 39
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement