rukusx7

Untitled

Feb 13th, 2014
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. !!!WARNING!!!
  2. <<< THIS GUIDE IS NOT COMPLETE >>>
  3. FOR REFERENCE ONLY
  4.  
  5. Resize Partition on Android
  6. When you installed a custom rom on your android phone/tablet, the default partition allocated to maximize storing data. Sometimes you want to resize a partition because its too small, or remove it because its no longer required. In this case, you will remove two partitions, and create a new larger /cache partition in that space.
  7.  
  8. WARNING: Back up all the important data before proceeding.
  9.  
  10. Make sure you put your android device in USB debugging mode
  11. Boot your android device into recovery mode
  12. adb shell
  13. parted /dev/block/mmcblk0
  14. unit s
  15. print
  16. write down the partition table (all starts and stops, you WANT to save this for reference)
  17. rm 26 (current cache location, this will delete it)
  18. rm 27 (old tombstones/preload location, this will also delete it, freeing up equivalent of about 250MB)
  19. print (This is where you will see your changes, and now you are going to use the free space between block 25 and 26 for your new /cache partition)
  20. mkpart
  21. choose logical
  22. Use the end sector from 25 as the start sector. (parted will tell you if this ok)
  23. Take the start sector from 26 and subtract about 2-5MB of sectors (to get an idea of size, each sector is 512 bytes) This will leave enough space for a mmcblk27 placeholder, to maintain partition layout
  24. enter ext2 (partition type)
  25. print
  26. mkpart
  27. choose logical
  28. Use the end sector of 26 as the start sector. (parted will tell you if this ok)
  29. use the start sector of 27 as your end sector
  30. enter ext2 (partition type)
  31. print
  32. reboot into recovery
  33. format /cache
  34. reboot
  35.  
  36. WARNING!!!
  37. <<< THIS GUIDE IS NOT COMPLETE >>>
Advertisement
Add Comment
Please, Sign In to add comment