answered
2019-03-15 11:49:49 +0300
What I do and works some years now, even when all other solutions like sympoblic link weren't working (currently my SailfishX is version 2.2.1.18 Nurmonjoki - XperiaX):
I have a symbolic link from the actual mounted path of the SD ( /run/media/nemo/XXXXXXXX-XXXX-XXXX-XXXXXXX ) to the /home/nemo/mysd . Not sure if it was automatically generated or I did it. If there isn't you can try create it using from terminal the following command:
ln -s /run/media/nemo/XXXXXXXX-XXXX-XXXX-XXXXXXX /home/nemo/mysd
You only do that once, and it works after that for the same SD card. Replace the XXXXXXXX-XXXX-XXXX-XXXXXXX with the directory name you will find in the directory /run/media/nemo - or doing in terminal
mount | grep /dev/mmcblk1p1
Then, let's say you have the dir MOVIES in your SD-card and you want it appear in the android, run from command line:
mount -o bind /home/nemo/mysd/MOVIES/ /home/nemo/android_storage/sdcard/
if directory /home/nemo/android_storage/sdcard/ does not exist, create it.
Have in mind, android support must be up and running in order this to work.
You do that once every boot. I suppose you could make it happen automatically on every boot, but I prefer to do it manually (last phone uptime was ~130 days for me , so I am ok with that). This is how I do it:
I have installed the application "ShellEx" , I think it is in jolla store, and even it hasn't been updated for years, it still works! I created a shell script as the following:
systemctl start aliendalvik.service
sh -c "echo ROOTPASS | devel-su -c mount -o bind /home/nemo/mysd/MOVIES/ /home/nemo/android_storage/sdcard/ ; "
and then I created a command in ShellEx which I call this shell script. Keep in mind the above solution it is not very secure friendly (your root pass is saved in a bash script in your device), - I am aware of the risks and I am fine with that, but feel free to change the bash script so it can ask for root password in the fly - ShellEx supports that.
I find it simpler than terminal and run the command from there. Any other suggestions / improvements are welcome.
One limitation that I don't understand some years now: vlc can't see the full files bigger than 2.1~2.4 Gb. It plays it up to this limit it stucks. I don't know if it has to do with the way I do the above...
Hi, could you be a bit more specific e.g. what phone/OS version (Sailfish X for Xperia X or Xperia XA2-variants...or the mighty "old" Jolla1 or JollaC/IntexAF)? Have you encrypted your SD-card, what kind of card and format? I guess you use Android version of VLC-player, right? These infos would be helpful to help you :-)
Marti Masa K ( 2019-03-14 19:31:07 +0300 )editsorry Marti, just added the infos
francko ( 2019-03-14 20:29:28 +0300 )editi remember the same happening ... for me, symlinking individual files worked, but clearly thats not a solution!
pigg ( 2019-03-14 21:18:11 +0300 )edit