maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Mount SD script at startup (https://talk.maemo.org/showthread.php?t=94380)

wormdrummer 2014-12-29 23:41

Mount SD script at startup
 
Hello!

I was hoping for a little help.

I have a command to mount the SDCard to the android partition, which I currently have to run every time I boot up so that android apps can read the SDcard:

devel-su
mount -o bind /media/sdcard/16FA-111F /home/nemo/android_storage/SDCARD

Just wondering how I can automate this process on startup of the phone?

pichlo 2014-12-30 03:58

Re: Mount SD script at startup
 
Would a symlink not achieve the same thing?

wormdrummer 2014-12-30 04:18

Re: Mount SD script at startup
 
Quote:

Originally Posted by pichlo (Post 1454340)
Would a symlink not achieve the same thing?

How would I go about that?

juiceme 2014-12-30 04:35

Re: Mount SD script at startup
 
Quote:

Originally Posted by wormdrummer (Post 1454342)
How would I go about that?

ln -s /media/sdcard/16FA-111F /home/nemo/android_storage/SDCARD

But first remove the empty mount-point SDCARD.

wormdrummer 2014-12-30 05:34

Re: Mount SD script at startup
 
hmmm tried that and I get a "function not implemented" error?

juiceme 2014-12-30 06:06

Re: Mount SD script at startup
 
Quote:

Originally Posted by wormdrummer (Post 1454351)
hmmm tried that and I get a "function not implemented" error?

??? what?
It does not even need to be root to create a softlink inside your own home directory tree...

How did you do it exactly?

wormdrummer 2014-12-30 06:38

Re: Mount SD script at startup
 
I tried both root and none root methods typing directly in to the shell window

Leinad 2014-12-30 08:47

Re: Mount SD script at startup
 
have a look here:
http://talk.maemo.org/showthread.php?t=92449

step 6 is what you're searching for

Schturman 2014-12-30 10:54

Re: Mount SD script at startup
 
@wormdrummer, @juiceme - symlink to android directory stopped to work since jolla changed android directory to /home/nemo/android_storage :( I wrote it on TJC (https://together.jolla.com/question/...torage-folder/).

@wormdrummer, for your question it possible to create .service file that will run your command automaticaly after reboot.

P.S. Can you share you script please ? Because I can't create symlink I also want this possibility to see jolla folders from android app...

pichlo 2014-12-30 11:11

Re: Mount SD script at startup
 
Hang on, are you saying that symlinks created by Sailfish are not honoured by Alien Dalvik? That would be most unusual. (Luckily I do not use Android so I cannot check.)


All times are GMT. The time now is 11:07.

vBulletin® Version 3.8.8