Repartition internal memory (Data+SDCard0)→more space for apps

So, here is how it goes for our Xperia L:

Open a command window: CMD, then get into shell:
adb shell

Once in shell, type:
umount /storage
parted /dev/block/mmcblk0
print


This prints out the partition information of your phone's memory chip
You will see the partition numbers in the first column, partition names in the last one,
in between you have the start/end memory index and the partition size
------start---end---size
...
31---1795---3506---1711---userdata
32---3506---7818---4312---sdcard
In the above output, consider the values indicated in italic as not to be changed !

Now calculate (open a spreadsheed if you like) the new value for the end of the userdata partition,
and use the same value for the start of the sdcard partition
On your sheet it should look something like this if you added 2048 to the userdata size
------start---end---size
31---1795---5554---3759---userdata
32---5554---7818---2264---sdcard
Remove userdata and sdcard partitions:
rm 31
rm 32


Create the new userdata and sdcard partitions:
mkpartfs logical ext2 1795 5554
name 31 userdata

mkpartfs logical fat32 5554 7818
name 32 sdcard


Exit parted to go to the adb shell again:
quit


userdata partition (31) needs to have ext4 file system
The following will do the ext2->ext4 conversion:
cd /storage/sdcard1/fs-utils
tune2fs -j /dev/block/mmcblk0p31
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p31
e2fsck -fpDC0 /dev/block/mmcblk0p31


Now you can go to recovery and format the sdcard partition (default)
Then you can restore the backup you made before all this or do a clean install

Postingan terkait:

Belum ada tanggapan untuk "Repartition internal memory (Data+SDCard0)→more space for apps"

Post a Comment