From a2719156c236c8be02403ef028490f001d393d8e Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Thu, 28 May 2015 09:44:41 -0500 Subject: Add resize2fs and ability to run resize2fs via GUI Note: Only works on ext2/3/4 partitions. Only tested on ext4. We can use this in some cases to resize the data partition if an incorrect fstab caused recovery to not reserve the 16KB for a crypto footer. Sometimes the BoardConfig for a custom ROM does not have the correct size for the system partition and if the ROM flashes a raw system image, that image will not take up the full block device. Running resize2fs can fix the size and may allow more room in the system partition for customizations like busybox or a larger gapps package. Sometimes flashing a factory image may flash userdata with an image with a file system that does not take up the full size of the block device (e.g. factory images for the Nexus 6 will flash userdata with a ~24GB userdata image, wasting ~30GB of space). Using resize2fs we can easily fix this issue without having to do a full format data. Change-Id: I631f5c6f567bbc6a9241e5dd95f1e435820a1b13 --- gui/devices/watch/res/watch.xml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gui/devices/watch/res') diff --git a/gui/devices/watch/res/watch.xml b/gui/devices/watch/res/watch.xml index f0f383dcb..a8535c659 100644 --- a/gui/devices/watch/res/watch.xml +++ b/gui/devices/watch/res/watch.xml @@ -1095,6 +1095,25 @@ Backup Size: %tw_partition_backup_size%MB + + + + Resize + + tw_back=partitionoptions + tw_action=resize + tw_action_param=%tw_partition_mount_point% + tw_has_action2=1 + tw_action2=getpartitiondetails + tw_text1=Resize %tw_partition_name%? + tw_text2= + tw_action_text1=Resizing... + tw_complete_text1=Resize Complete + tw_slider_text=Swipe to Resize + confirm_action + + + -- cgit v1.2.3