termux-ubuntu
termux-ubuntu copied to clipboard
sdcard
cannot access sdcard.
That's an android limitation in newer versions. Accessing an external sdcard requires using the storage access framework, which plain unix tools don't support.
See https://wiki.termux.com/index.php?search=Storage for information about storage in Termux. To setup storage see https://wiki.termux.com/wiki/Termux-setup-storage 😀
Just for info, after setting up termux storage, modify the start.sh script so that termux home path is bind inside chroot environment.
Hi, how can I use bind directory to attach dirs outside the chroot?
Sorry my ignorance, I thought I should put a symlink or a dir inside binds folder but it didn't work. And mount --bind, I have no experience on it, is not installed on my termux and requests if I want to use hmount instead.
@orlleite Sorry, the bind dir functionality isn't really well documented. The start.sh script just sources any files that is inside this directory at a certain point. So to bind a new directory you can simply create a file inside the binds folder (with any name) and put something like the following in it:
command+=" -b $HOME/drive"
command+=" -b /sdcard"
command+=" -b $HOME/downloads"
Hi, I can't bind termux home directory from Ubuntu with the way of you mentioned. Can you please explain it more detailed? Thanks for your attention.
zcatav. Create a text editor file with any name (for example, like me : hak). Write a command like this and put it in the binds folder. Start Ubuntu and the sdcard folder will appear.
command+=" -b $HOME/sdcard"
Hi... I already make an file with those line inside binds folder... But i got this line instead... "./ubuntu: line 11: ubuntu-binds/k: Permission denied"
hi, I also experienced the same problem, but I installed ubuntu via the TermuxOS script tool from www.sideload.id so I went directly to the ubuntu-binds directory and I added a new file without formatting with nano, for example: nano acc
I initially filled with
command + = "-b $ HOME / sdcard"
and found the sdcard location error on /data/data/com.termux/files/home/ubuntu-fs
even though the sdcard should be on /data/data/com.termux/files/sdcard
so I changed the order command + = "-b $ HOME / sdcard"
Becomes:
command + = "-b / sdcard"
zcatav. Create a text editor file with any name (for example, like me : hak). Write a command like this and put it in the binds folder. Start Ubuntu and the sdcard folder will appear.
command+=" -b $HOME/sdcard"
The folder does not appear in my home directory.
I have created a file -> BindsUbunuTermux in ubuntu-binds/ folder. The program does source it, yet does not show any folder when starting ubuntu via ./start-ubuntu.sh
Please let me know where things went wrong.
Contents of BindsUbuntuTermux are
command+=" -b $HOME/storage/dcim"
command+=" -b $HOME/storage/downloads"
command+=" -b $HOME/printer" # a directory in my termux home folder
Sorry, but I don't use anymore GNU/Linux inside Termux. Only Termux is sufficient for me.
Zeki Çatav zekicatav.com
20 Mar 2020 Cum 06:11 tarihinde Abhishek Tripathi [email protected] şunu yazdı:
zcatav. Create a text editor file with any name (for example, like me : hak). Write a command like this and put it in the binds folder. Start Ubuntu and the sdcard folder will appear.
command+=" -b $HOME/sdcard"
The folder does not appear in my home directory.
I have created a file -> BindsUbunuTermux in ubuntu-binds/ folder. The program does source it, yet does not show any folder when starting ubuntu via ./start-ubuntu.sh
Please let me know where things went wrong.
Contents of BindsUbuntuTermux are
command+=" -b $HOME/storage/dcim" command+=" -b $HOME/storage/downloads" command+=" -b $HOME/printer" # a directory in my termux home folder
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Neo-Oli/termux-ubuntu/issues/13#issuecomment-601506696, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGADUXZF6APQSA7324EJTTTRILNEXANCNFSM4D6TRYVA .
hi, I also experienced the same problem, but I installed ubuntu via the TermuxOS script tool from www.sideload.id so I went directly to the ubuntu-binds directory and I added a new file without formatting with nano, for example: nano acc
I initially filled with
command + = "-b $ HOME / sdcard"
and found the sdcard location error on /data/data/com.termux/files/home/ubuntu-fs
even though the sdcard should be on /data/data/com.termux/files/sdcard
so I changed the order command + = "-b $ HOME / sdcard"
Becomes:
command + = "-b / sdcard"
Thanks a lot
I created a text file in ubuntu-binds/ and wrote on it:
command+=" -b sdcard:/sdcard"
command+=" -b .ssh:/root/.ssh"