Open stekalb opened 6 years ago
please use code tags around the df -h, and/or format it, so it is readable
done
Mine does the same thing ( before this version also) M10 fhd 2018-07-15
Its a pity on frieza that the device /dev/loop0 is chosen that small. Since it contains a lot of android image parts, i believe, the most important thing is to remove these large fragments.
In the meantime you can try this way: sudo mount -o rw,remount /
sudo rm -r /var/cache/apt
sudo tune2fs -m 0 /dev/loop0
sudo apt update sudo apt install anbox-ubuntu-touch
sudo rm -r /var/cache/apt
sudo mount -o r,remount /
If you don't have too many other additional software on your device, this will work. However, if the anbox packet is too large, you may need to install dependencies manually, each time deleting the apt cache!
On the nexus 7 I apply the following hack to enlarge the root file system. I expect that it works on every device that has the rootfs mounted from /dev/loop0 and not for the actual system partition
boot to recovery connect with adb mount /data cd /data resize2fs system.img 3G
system.img is mounted as the root file system (you can check with losetup -a
). The steps above make it 3 GB instead of the normal size of 3GB
thanks doniks, that works. I think it's a valid workaround, but it should be fixed generally.
2GB is actually about the maximum size we can use for the image file. It provides the best balance between accounting for the size of the root filesystem that can be handled by updates and not taking up a ton of the user's space.
The most important factor that feeds into the current size, though, is the system-image update service's limitations. system-image stores updates to be applied on the Android cache partition. This partition ranges from about 400 to 600MB, depending on the device. We need to compress the whole Ubuntu Touch image down to the size of the cache partition for the device or else updates can't be downloaded and applied. Right now we employ xz
with maximum compression settings to manage this. Accounting for that, we're about at the maximum size of the image and the cache partition at the same time (in other words, an update that fills the cache partition is nearing the top of the 2GB image).
This is a bit of a design feature and flaw in system-image. It can be fixed, but I can't tell you how likely that would be to happen.
Do you have some more tips what can be deleted safely from /dev/loop0
to free up some space?
Yes, you can probably mount a tmpfs over /var/cache/apt/archives to get enough space to install. Try
sudo mount -t tmpfs tmpfs /var/cache/apt/archives
On the nexus 7 I apply the following hack to enlarge the root file system. I expect that it works on every device that has the rootfs mounted from /dev/loop0 and not for the actual system partition
boot to recovery connect with adb mount /data cd /data resize2fs system.img 3G
system.img is mounted as the root file system (you can check with
losetup -a
). The steps above make it 3 GB instead of the normal size of 3GB
I have a 64gb oneplus one with ubports, can we use this command to resize to system.img to near full space without destroying my setup, what percentage of space would you suggest at max? Multirom ubtouch install previously did not face this issue but the app won't update any longer with the options to install it. Got it to 6gb using hoh61's tips but then I filled that up again.
Tried to mount /data command but device or resource is busy
Steps to reproduce
Clean install of 16.04 on frieza. Follow the documentation of howto install anbox:
Expected behavior
Anbox installs
Actual behavior
Installation fails:
Logfiles and additional information