olegos2 / mobox

2.87k stars 127 forks source link

External sdd support #87

Open thefcraft opened 9 months ago

thefcraft commented 9 months ago

Not showing external SSD

thefcraft commented 9 months ago

How to use pendrive or external SSD/HDD

hisham2630 commented 9 months ago

I wrote a script that will allow mobox to use external drive but it's not ideal and might not working on all devices

thefcraft commented 9 months ago

Give the script

hisham2630 commented 9 months ago

root access is needed

here's my script use it as your own risk, I'm not responsible of data lost or something bad happen!

script should be copied to

/data/data/com.termux/files/home

script shouldn't be run as root

you have to insert your usb ssd or flash drive before runscript

then in termux write:

./usb.sh

after that run mobox you will find a new drive called h: which should list all of the usb storage files.

`su -c setenforce 0 su -c chmod 777 /mnt/media_rw/ su -c mkdir /mnt/media_rw/usb_rw su -c mkdir /data/data/com.termux/files/usr/usb_rw su -c umount /mnt/media_rw/- su -c mount /dev/block/vold/public* /mnt/media_rw/usb_rw

cd .. ln -s /mnt/media_rw/usb_rw usr/glibc/wine-ge-custom/.wine/dosdevices/h:`

you can save this commands to usb.sh inside /data/data/com.termux/files/home

then chmod 775 usb.sh

after that ./usb.sh

MaxSnes commented 5 months ago

Can you tell more about script???

genrogameryt commented 5 months ago

o cara vai falar mais oque o script esta ai e so usar