FORUMS

Switchroot Android - How to mount FAT32 partition in Android (Easy)

106 posts
Thanks Meter: 13
 
By luxmen, Senior Member on 14th December 2019, 06:48 AM
Post Reply Email Thread
7th May 2020, 10:45 AM |#11  
Junior Member
Thanks Meter: 1
 
More
Hello i finally found tasker and begin this tutotrial but i have an issue at the task 2 "mkdir /mnt/switch-sd" when i launch the task tester in tasker.



I confirmed Root & Global Namespace are activated.





Any idea ?
16th May 2020, 08:53 PM |#12  
Member
Thanks Meter: 4
 
More
For those that don't want to pay for/use Tasker, you can run a script in Terminal instead.

Creating a script file in Android OS:
In X-plore (or use what ever file manger you want), go to Internal shared storage "/sdcard". Make sure you are on the root of the sdcard.
In the middle option pane touch "New text file" and a file namer will pop up. Save name as "switchsd.sh" (without the quotations).
Enter the following:

#!/system/bin/sh
mkdir /mnt/switch_sd
chmod 777 /mnt/switch_sd
mount -o bind /dev/block/mmcblk0p1 /mnt/switch_sd
mount -o remount,rw /dev/block/mmcblk0p1 /mnt/switch_sd
echo "Fat32 mounted"

Hit save in the upper right and exit app. (This will be the script file)


Go to the built in LineageOS Terminal emulator and type the following commands.

su
mount -o rw,remount /system
cp sdcard/switchsd.sh /system/bin/switchsd
chmod 555 /system/bin/switchsd

This moves the file to your system/bins folder so you can easily run the script without entering a path.

Now in Terminal emulator run the script by typing, "su" to change user. Then type "switchsd" to run the script, wait a sec and it should now say "Fat32 mounted".
Walla! Enjoy. Do this every time you boot into Android.



Credit:
https://www.pctips4u.com/2016/03/wri...n-android.html
21st May 2020, 02:41 PM |#13  
Junior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by Karcus


Go to the built in LineageOS Terminal emulator and type the following commands.

su
mount -o rw,remount /system
cp sdcard/switchsd.sh /system/bin/switchsd
chmod 555 /system/bin/switchsd

It sounds great but i didn't find any LineageOS Terminal emulator in SwitchRoot
30th May 2020, 09:42 AM |#14  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by keriam

It sounds great but i didn't find any LineageOS Terminal emulator in SwitchRoot

LineageOS by default does not enable the Terminal app.

If you haven't already, enable developer options.

Then, if you go into the Settings app and search for 'terminal', there will be a "Local terminal" option which says "Enable terminal app that offers local shell access".

However, by many accounts the built-in terminal app is awful, so you may prefer to use another terminal app from the Play Store. (I use this one, but Termux looks like a more popular option lately.)
2nd June 2020, 07:49 AM |#15  
Junior Member
Thanks Meter: 0
 
More
Hello and thank you for the helpful information.
I found a solution to automatically mount the partition on startup. I use the App App2SdPro. Whit this app you can start a Script as su on boot. Works great for me and the App is free.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes