Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !!!WARNING!!!
- <<< THIS GUIDE IS NOT COMPLETE >>>
- FOR REFERENCE ONLY
- Resize Partition on Android
- 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.
- WARNING: Back up all the important data before proceeding.
- Make sure you put your android device in USB debugging mode
- Boot your android device into recovery mode
- adb shell
- parted /dev/block/mmcblk0
- unit s
- print
- write down the partition table (all starts and stops, you WANT to save this for reference)
- rm 26 (current cache location, this will delete it)
- rm 27 (old tombstones/preload location, this will also delete it, freeing up equivalent of about 250MB)
- 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)
- mkpart
- choose logical
- Use the end sector from 25 as the start sector. (parted will tell you if this ok)
- 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
- enter ext2 (partition type)
- print
- mkpart
- choose logical
- Use the end sector of 26 as the start sector. (parted will tell you if this ok)
- use the start sector of 27 as your end sector
- enter ext2 (partition type)
- print
- reboot into recovery
- format /cache
- reboot
- WARNING!!!
- <<< THIS GUIDE IS NOT COMPLETE >>>
Advertisement
Add Comment
Please, Sign In to add comment