Coder Social home page Coder Social logo

Comments (10)

gixousiyq avatar gixousiyq commented on September 22, 2024 1

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.

gixousiyq avatar gixousiyq commented on September 22, 2024

Try
su -c mount -o remount,dev,suid /data
Then login to Arch

from chroot-distro.

matejdro avatar matejdro commented on September 22, 2024

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.

jjkola avatar jjkola commented on September 22, 2024

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.

jjkola avatar jjkola commented on September 22, 2024

Reopening this to document the problem and solutions so that others can avoid this.

from chroot-distro.

gixousiyq avatar gixousiyq commented on September 22, 2024

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.

jjkola avatar jjkola commented on September 22, 2024

@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.

jjkola avatar jjkola commented on September 22, 2024

@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.

gixousiyq avatar gixousiyq commented on September 22, 2024

Sorry didnt see it :)

from chroot-distro.

jjkola avatar jjkola commented on September 22, 2024

No problem.

from chroot-distro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.