-
System: Ubuntu Touch for Xiaomi6; Ubuntu 16lts
With a few python packages installed in /opt, I ran out of space and found out with " df -h " that the root directory was full, but /userdata had 50GB space left, so I wanted to split 25GB from here to the root directory.
I first shrinked the /userdata mounted partition "/dev/sda17" with "parted resizepart", and then tried " Sudo resize2fs /dev/sda17" to indicate that /home is already mounted on /dev/sda17, but the umount command didn't work, and eventually I used "fuser -ck /home". Finally, my phone shut down, and I can't reboot.
Anyone knows how to fix it?
If not, how can I set the partition size when reinstalling the system?
-
@reeered
https://forums.ubports.com/topic/9226/resize-expand-2gb-rootFor fixing your device reinstall using ubports installer.
-
-
Hi @reeered and welcome
I was going to refer you to the link Keneda already sent (damn he's fast).
So I would avoid messing with the partition size as you risk bricking your device with an update.
The best course of action is to use the userdata partition and to make it work.You can link folder in /opt to /userdata
But when someone asks question about this stuff it's often because this is above their skill-set.
So my advice is not to try anything that can make it worse.Trying to hack the OS this way is a dangerous endeavor. Be sure that you understand what you're doing.
-
@Keneda It seems has been bricked , ubports didn't work. It may because I use " parted " to delete userdata partition
-
This post is deleted! -
@reeered
If there is a Xiaomi rescue tool use it to reinstall the right android for installing UT then reinstall UT using ubports installer.I can't say much more as partitioning is above my skills.
Maybe wait for more skilled users to give you advices before doing anything
-
@Keneda NEVER TRY PARTITION!!!!!!!!!!!!!
-
@reeered when you get your device back to a working condition, about all those Python packages installed in /opt. Is it possible to install them locally in your home folder?
-
@arubislander ok, I will hava a try to store Python in /userdata if I could reboot my device
-
@reeered
I don't know if it works for python, but maybe you could ask to @Fuseteam that devs this tool, take a look at this : https://forums.ubports.com/topic/6283/snap-crackle-and-pop-readwrite-rootfs-is-overrated?_=1691694874642 -
@Keneda Thank you. But now I have resolve my problem by partitioning haha
-
@reeered
That is not to solve your problem.
That is to install some command line tools or apps in a way you don't have to mess with root FS or partitioning on an Ubuntu Touch device. -
@reeered start by restoring your device with Xiaomi's tool: https://forum.xda-developers.com/t/miflash-guide-use-xiaomi-flash-tool.4262425/