proot icon indicating copy to clipboard operation
proot copied to clipboard

Mount Disk Images (Rehashed)

Open AZMCode opened this issue 2 years ago • 3 comments

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 avatar May 19 '22 15:05 AZMCode

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

AZMCode avatar May 19 '22 16:05 AZMCode

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

AZMCode avatar May 20 '22 03:05 AZMCode

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.

m13253 avatar Dec 26 '22 18:12 m13253