how to create container on micro-sd? #27
-
Good evening, good morning, good afternoon, sir. how are u? well, I have a question, can I mount/create this script on the micro-sd? I have root, and I have a modified kernel and custom rom (I already used docker lol) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The script can't use micro-sd directly, you have to do some changes of it by yourself. Here's the way to do that(using termux-container v8): Preparation:If your phone has a micro-sd installed, there will be a device called mmcblkxx, on my phone, it's /dev/block/mmcblk0, and /dev/block/mmcblk0p1 is the first partition of it. Then, mount the micro-sd to your system:
If the command doesn't work,you can try to mount it as loop device:
Edit the script:If the container path already exists, termux-container will cancel the installation of container, but you can't mount micro-sd without an existing mountpoint,so you need to edit the script:
Then you can run termux-container and use the path "test" to create the container. Edit the script to mount micro-sd automatically before running the container:Find the following line:
and add these lines after it:
|
Beta Was this translation helpful? Give feedback.
The script can't use micro-sd directly, you have to do some changes of it by yourself. Here's the way to do that(using termux-container v8):
Preparation:
If your phone has a micro-sd installed, there will be a device called mmcblkxx, on my phone, it's /dev/block/mmcblk0, and /dev/block/mmcblk0p1 is the first partition of it.
If the partition isn't using ext4 filesystem, it's recommended to format it to ext4 by mkfs first.
Then, mount the micro-sd to your system: