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.)

Schturman 2014-12-30 11:27

Re: Mount SD script at startup
 
You just can't create it in /home/nemo/android_storage...

Symlink was a simple way to see all jolla files (home and sdcard) in android app, but now it's impossible...

juiceme 2014-12-30 18:36

Re: Mount SD script at startup
 
Quote:

Originally Posted by Schturman (Post 1454394)
You just can't create it in /home/nemo/android_storage...

Symlink was a simple way to see all jolla files (home and sdcard) in android app, but now it's impossible...

Is that directory somehow different from normal filesystem, then?
Like, a virtual mount or something, seen only in the context of the android subsystem?

Schturman 2015-01-02 14:13

Re: Mount SD script at startup
 
Quote:

Originally Posted by juiceme (Post 1454443)
Is that directory somehow different from normal filesystem, then?
Like, a virtual mount or something, seen only in the context of the android subsystem?

From my test.. If Dalvik closed you can create here symlink, but when you start Dalvik you can't see this.. And if you try to create symlink when Dalvik work, you just can't do that.

equeim 2015-01-02 21:29

Re: Mount SD script at startup
 
Android apps run as separated users for each one, so that android storage mounts without support of file permissions through FUSE filesystem. It seems that is doesn't support symlinks too.


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

vBulletin® Version 3.8.8