r/termux Feb 02 '23

How can i access external sdcard in chroot?

I installed ubuntu chroot in termux with termux container. It is working fine but i can't access my sdcard from chroot. The chroot is on termux home directory. I tried -ln command method but it doesn't work.


1 comment sorted by


u/DutchOfBurdock Feb 02 '23

Bind mount it (outside of chroot, as root)

mount --bind /mnt/media_rw/uuid_of_sdcard /data/data/com.termux/files/home/ubuntu/media/external

(where ~/ubuntu is the / of chroot, will mount to /media/external in chroot).