proot-me / proot

chroot, mount --bind, and binfmt_misc without privilege/setup for Linux
https://proot-me.github.io
GNU General Public License v2.0
1.96k stars 369 forks source link

Mount Disk Images (Rehashed) #334

Open AZMCode opened 2 years ago

AZMCode commented 2 years ago

I'm aware this issue has been posited here before, but I have an answer to the question that closed it. There is a use for this.

In Termux (the Android Terminal Emulator) proot is used often to run a full Linux distro with simulated root privileges. However, due to some of Termux's and Android's limitations, it cannot be installed to an SD card. Namely, the filesystem on the SD card does not support the needed features. This in turn limits the user to the comparatively small internal storage if they don't have root privileges.

Unless proot could somehow emulate mounting a file system image internally, and run inside it. Considering Proot's entire thing is intercepting syscalls, including the ones to read and write files, I imagine this could be done.

In fact, there's many requests for this on the Internet if you Google around.

AZMCode commented 2 years ago

In fact, the ability to mount and dismount partitions and files you have permissions for within the proot could be very useful nonetheless

AZMCode commented 2 years ago

By "Posted Here Already" I'm referring to #101 BTW

m13253 commented 1 year ago

I use proot in an academic lab environment, where NFS is painfully slow on small files (3 hours of pacman -Syu) and I have no access to FUSE.

I'm also interested in whether we can have image mounting features in proot.