Help resizing the root partitiion
padraic last edited by
when trying to install the new browser I ran into a problem with not having enough space in /var/cache/apt/archives
I thought this might have been because I did something foolish with my device (BQ M10 FHD - freiza) but I can see other people having the same problem.
Looking around the forum I can see that people recommend a couple of things:
sudo apt autoremoveor
sudo apt-get clean
- Resizing the root partition
The solutions in 1. don't free up enough space.
For resizing I can see this script being mentioned - https://github.com/timsueberkrueb/plasma-phone-dev-setup/blob/master/usr/bin/resize-root-partition
Has anyone successfully used it? Is there an alternative?
Is there a recommended size to change to?
matteo last edited by
to resize the rootfs there is a tool called ATU which can be useful for you at the scope. I can redirect you to the page where there are the steps to be followed and the file to download:
@matteo Hi, I just installed this tool, but I cant press on anything
tera last edited by tera
/userdata/system-data//var/cache/apt/archives /var/cache/apt/archives none bind 0 0
Issue then a
sudo mount -aand retry installing...
@tera Can you briefly explain what you have done here?
@tera I also did not understand if there was a mistake in the characters //?
tera last edited by tera
@baruchiro Adding this line will allow you to mount that /var/cache/.. folder inside the larger /userdata partition so there is space available to perform the package installation (double slashes are expected, check similar existing lines in /etc/fstab and note it's a bind mount)
Not sure if such change should be made persistant or only considered as a workaround...
@tera It did not work, with the following error:
mount: special device /userdata/system-data//var/cache/apt/archives does not exist
But yesterday I somehow managed to make it work, but then I reinstalled and now I can not.
tera last edited by
@baruchiro You may have to create the folders in /userdata/system-data/var/cache/... i do not recall if i did or not on my side
jezek last edited by jezek
You can bind
mount -o bindcommand.
# create dir in userdata space $ sudo mkdir -p /userdata/system-data/var/cache/apt/archives # mount - bind $ sudo mount -o bind /userdata/system-data/var/cache/apt/archives /var/cache/apt/archives/
/var/cache/apt/archiveshas more space until reboot.
myii last edited by myii
This has worked for numerous users: https://forums.ubports.com/post/13645.
I've found running these commands works more reliably from fastboot mode.