Comments (10)
Sorry for the late response
su -c remounts /data for the running proccess that invoked it only E.g termux
To remount /data for all the system you have to add -mm to the command to force it into global mount space
su -mm -c mount...
from chroot-distro.
Try
su -c mount -o remount,dev,suid /data
Then login to Arch
from chroot-distro.
Yes, that worked, thanks!
Although I feel it is a bad idea to do a global remount since that affects the entire Android instead of just the chroot instance. Presumably there is no better solution?
from chroot-distro.
My solution to this was to format external sd card with ext4 and then transfer files/folders from /data/local/chroot-distro
to newly formatted SD card, and then mounting it at that folder with Termux:boot (unfortunately it sometimes does not work, and I have to manually run the scripts). This has the added benefit of not taking space from internal storage. If this solution is used then you can't allow android to format the SD card and you will not be able to access it from android side. As I will not be using the android side at all (other than for administrating the tablet) this is perfectly okay with me, but your mileage may wary.
from chroot-distro.
Reopening this to document the problem and solutions so that others can avoid this.
from chroot-distro.
I think a better way to solve this problem is to make the script run su -c mount -o remount,dev,suid /data every mount, This should fix the problem without needing to use external storage or any workaround's
By the way you can also make a virtual disk and format it as ext4 and mount it into /data/local/chroot-distro
by running these:
su -c truncate -S 15G /data/local/distros.img
The above will create a disk image in /data/local
with the size 15 Gigabyte's, Change it to the size you want
su -c mke2fs -t ext4 /data/local/distros.img
The above will put a ext4 filesystem on our virtual disk
su -c mount /data/local/distros.img /data/local/chroot-distro
The above will mount our disk image to /data/local/chroot-distro
, Now our distros are housed in a ext4 filesystem separate from our main filesystem
But keep in mind that this will take space from internal storage and it may be complicated to resize this disk image, Just an idea I wanted to share.
from chroot-distro.
@gixousiyq Thanks for the pointers. I'll create a PR for this and would like it if you could help reviewing it.
from chroot-distro.
@gixousiyq Any chance of reviewing the change? If you can't comment on the PR then could you please add your comments here so I can finish this? Also, if you don't want or can't review the change can you notify about it so that I will know not to wait for your comments.
from chroot-distro.
Sorry didnt see it :)
from chroot-distro.
No problem.
from chroot-distro.
Related Issues (20)
- I have newbie doubts HOT 4
- Error installing distribution HOT 21
- Alpine Linux download link no longer valid HOT 1
- Unable to download most distros HOT 18
- Ubuntu 24.04 HOT 5
- Restore restores distro to wrong directory HOT 5
- Code license HOT 14
- Adb shell: uninstalling breaks at least termux HOT 13
- Release process HOT 7
- Automatic updates HOT 3
- CentOS fails to install HOT 4
- Document how to create a development version of chroot-distro
- Adb shell: Installing a distro fails
- --as-is doesn't work HOT 4
- Login Command not working HOT 1
- Inaccessible userdata after using chroot-distro HOT 10
- getopt: inaccessible or not found HOT 9
- can't install ubuntu HOT 4
- Unable to use sudo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chroot-distro.